Last active
March 16, 2020 23:43
-
-
Save max-mapper/3501352c2f01be4ed03479a75bca1a18 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