Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 4, 2012 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save NapoleonWils0n/4009612 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4009612 to your computer and use it in GitHub Desktop.
ffmpeg: mediastreamsegmenter 1080p streaming
#!/bin/sh
# streaming 1080p h264 to the ipad
# vod style program
ffmpeg -i infile.mkv -acodec libfaac -ac 2 -ar 48000 -ab 160k -vcodec copy -vbsf h264_mp4toannexb -f mpegts - | mediastreamsegmenter -f /Users/username/Sites/video/stream -t 30 -p
# delete files to save space
ffmpeg -i infile.mkv -acodec libfaac -ac 2 -ar 48000 -ab 160k -vcodec copy -vbsf h264_mp4toannexb -f mpegts - | mediastreamsegmenter -f /Users/username/Sites/video/stream -t 30 -s 4 -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment