Skip to content

Instantly share code, notes, and snippets.

@STrRedWolf
Created May 6, 2013 03:10
Show Gist options
  • Save STrRedWolf/5523168 to your computer and use it in GitHub Desktop.
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!)
#!/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