Skip to content

Instantly share code, notes, and snippets.

@HarrisonJackson
Forked from jamesjennings/gist:6613083
Created September 18, 2013 22:54
Show Gist options
  • Save HarrisonJackson/6616885 to your computer and use it in GitHub Desktop.
Save HarrisonJackson/6616885 to your computer and use it in GitHub Desktop.
HandBrakeCLI --input tears_of_steel_720p.mkv --output 5000.mp4 --encoder x264 -b 5000 --srt-file TOS-en.srt --x264-preset ultrafast
HandBrakeCLI --input tears_of_steel_720p.mkv --output 500.mp4 --encoder x264 -b 500 --srt-file TOS-en.srt --x264-preset ultrafast
HandBrakeCLI --input tears_of_steel_720p.mkv --output 50.mp4 --encoder x264 -b 50 --srt-file TOS-en.srt --x264-preset ultrafast
HandBrakeCLI --input tears_of_steel_720p.mkv --output 5.mp4 --encoder x264 -b 5 --srt-file TOS-en.srt --x264-preset ultrafast
mkdir 5000Kbps
mediafilesegmenter -t 10 -f 5000Kbps/ -I 5000.mp4
mkdir 500Kbps
mediafilesegmenter -t 10 -f 500Kbps/ -I 500.mp4
mkdir 50Kbps
mediafilesegmenter -t 10 -f 50Kbps/ -I 50.mp4
mkdir 5Kbps
mediafilesegmenter -t 10 -f 5Kbps/ -I 5.mp4
variantplaylistcreator -o final.m3u8 50Kbps/prog_index.m3u8 50.plist -iframe-url 50Kbps/iframe_index.m3u8 \
5000Kbps/prog_index.m3u8 5000.plist -iframe-url 5000Kbps/iframe_index.m3u8 \
500Kbps/prog_index.m3u8 500.plist -iframe-url 500Kbps/iframe_index.m3u8 \
5Kbps/prog_index.m3u8 5.plist -iframe-url 5Kbps/iframe_index.m3u8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment