Skip to content

Instantly share code, notes, and snippets.

@bigfreak85
Created June 12, 2019 10:06
Show Gist options
  • Select an option

  • Save bigfreak85/f4a3a709ed0bd264173f19635fa0938f to your computer and use it in GitHub Desktop.

Select an option

Save bigfreak85/f4a3a709ed0bd264173f19635fa0938f to your computer and use it in GitHub Desktop.

Revisions

  1. bigfreak85 created this gist Jun 12, 2019.
    14 changes: 14 additions & 0 deletions camrec.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    @echo off


    cd C:\s4y\Videoueberwachung\ffmpeg\bin


    start ffmpeg ^
    -i "http://192.168.178.26/videostream.cgi?user=USER&pwd=PWD" ^
    -i "http://192.168.178.27/videostream.cgi?user=USER&pwd=PWD" ^
    -filter_complex "[0]drawtext=box=1:boxcolor=black:boxborderw=2:fontcolor=white:text='CAM1 %%{localtime}':fontsize=14[c1];[1]drawtext=box=1:boxcolor=black:boxborderw=2:fontcolor=white:text='CAM2 %%{localtime}':fontsize=14[c2]" ^
    -vcodec libx264 -preset slow -f mp4 ^
    -map "[c1]" "C:\s4y\Videoueberwachung\Tagekomplett\CAM1_%date%.mp4" ^
    -map "[c2]" "C:\s4y\Videoueberwachung\Tagekomplett\CAM2_%date%.mp4"
    REM 2>C:\s4y\Videoueberwachung\recordlog.txt