Created
November 4, 2012 00:42
-
-
Save NapoleonWils0n/4009612 to your computer and use it in GitHub Desktop.
ffmpeg: mediastreamsegmenter 1080p streaming
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/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