-
-
Save zhaiduo/c00c75737adae5ac68f28c96c528b0ec to your computer and use it in GitHub Desktop.
RTMP to M3U8
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 -re -i "rtmp://example.com/path/file live=1" -hls_time 10 -hls_wrap 7 -hls_list_size 3 -f hls play.m3u8 | |
ffmpeg multiple rtsp cameras into sigle stream to youtube | |
ffmpeg | |
-i "rtsp://xxxxxx:[email protected]/live2.sdp" | |
-i "rtsp://xxxxxx:[email protected]/live2.sdp" | |
-f lavfi -i anullsrc | |
-filter_complex " | |
[0:v] setpts=PTS-STARTPTS,scale=800x448,setsar=1[upperleft]; | |
[1:v] setpts=PTS-STARTPTS, scale=800x448,setsar=1[upperright]; | |
[upperleft][upperright]hstack[base]" | |
-map [base] -map 2 -f flv "rtmp://a.rtmp.youtube.com/live2/xxx-xxxx-xxxx-xxxx" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment