Created
May 6, 2013 03:10
-
-
Save STrRedWolf/5523168 to your computer and use it in GitHub Desktop.
This is how to stream live video and transmux it to HTTP Live Streaming. Requires ffmpeg 1.2 or greater (no forked libav crap, it must be genuine original ffmpeg. Compile it yourself on Debian & Ubuntu!)
This file contains hidden or 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
#!/bin/bash | |
rtmpdump -r 'rtmp://wolf.tv.macrophile.com/oflaDemo/wolftv' -v -q | \ | |
ffmpeg -i pipe: -bsf h264_mp4toannexb -codec copy -map 0 -f ssegment \ | |
-segment_list test.m3u8 -segment_time 4 -segment_wrap 24 \ | |
-segment_format mpegts -segment_list_type hls stream%05d.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment