-
-
Save g0053/65b54e84f7cee992c4c416bbcf4c58db to your computer and use it in GitHub Desktop.
ffmpeg timelapse and rtsp streaming
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
# rename jpegs to be datetime based | |
jhead -n%Y%m%d-%H%M%S **/**.jpg | |
# timelapse from jpegs. r = fps | |
ffmpeg -r 15 -pattern_type glob -i '*.jpg' -s hd720 -vcodec libx264 -crf 25 OUTPUT.MP4 | |
# rtsp stream to youtube | |
ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp://<source> -tune zerolatency -vcodec copy -b 12000000 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<key> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment