Created
August 21, 2018 04:06
-
-
Save tuan3w/2dd000f81dcac883cd1ed88b0444f9b9 to your computer and use it in GitHub Desktop.
Adding elapsed time to video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f video4linux2 -input_format mjpeg -s 1280x720 -i /dev/video0 \ | |
-vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: \ | |
text=\'%{pts\:gmtime\:0\:%M\\\:%S}\': [email protected]: x=7: y=7: fontsize=24" -vcodec libx264 \ | |
-preset veryfast -f mp4 -pix_fmt yuv420p -y output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment