Skip to content

Instantly share code, notes, and snippets.

@MaverickTse
Created September 22, 2017 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaverickTse/d6946baadf315b5e6aa305c3074eedd9 to your computer and use it in GitHub Desktop.
Save MaverickTse/d6946baadf315b5e6aa305c3074eedd9 to your computer and use it in GitHub Desktop.
Webcam recording using FFmpeg(need zeranoe or with text/font libs included)
cd "D:\ffmpeg-z"
./ffmpeg.exe -y -s 640x480 -framerate 25 -rtbufsize 100MB -f dshow -i video="Logitech HD Webcam C525":audio="Microphone (HD Webcam C525)" -vf "drawtext=expansion=strftime:fontfile=arial.ttf:text='%a %d\.%m\.%Y / %H\:%M\:%S':x=10:y=10:fontcolor=white: box=1: boxcolor=0x00000000@0.7" -vcodec h264 -acodec aac -t 00:58:00 $("D:/"+(Get-Date -UFormat "%Y%m%d%-%H%M").ToString()+".mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment