Created
September 30, 2012 04:52
-
-
Save fernyb/3805886 to your computer and use it in GitHub Desktop.
ffmpeg transcode to mpegts and segment
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
# | |
# Transcode video for iOS streaming | |
# | |
/usr/local/ffmpeg-1.0/bin/ffmpeg -i video-source.flv -re -g 250 -keyint_min 25 -bf 0 -me_range 16 \ | |
-sc_threshold 40 -cmp 256 -coder 0 -trellis 0 -subq 6 -refs 5 -r 25 -c:a libfaac -ab:a 256k \ | |
-async 1 -ac:a 2 -c:v libx264 -profile baseline -s:v 640x360 -b:v 768k -aspect:v 16:9 -map 0 -ar 44100 \ | |
-vbsf h264_mp4toannexb -flags -global_header -f segment -segment_time 10 \ | |
-segment_list_type flat -segment_list_type m3u8 -segment_list playlist.m3u8 \ | |
-segment_format mpegts parts/stream256ios%09d.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment