Skip to content

Instantly share code, notes, and snippets.

@Jwsonic
Forked from brookemckim/hls
Created September 6, 2012 19:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jwsonic/3659577 to your computer and use it in GitHub Desktop.
Save Jwsonic/3659577 to your computer and use it in GitHub Desktop.
Roku Recommended FFMPEG h264 Preset
ffmpeg -i <inputFile> -f mpegts -acodec libfaac -vcodec libx264 \ -vpre roku -crf 15 -threads 0 ~/OneTransportStreamFile3200.ts
coder=1
flags=+loop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=umh
subq=8
me_range=16
g=250
keyint_min=25
sc_threshold=40
i_qfactor=0.71
b_strategy=2
qcomp=0.6
qmin=10
qmax=51
qdiff=4
bf=4
refs=4
directpred=3
trellis=1
weightb=1
mixed-refs=1
8x8dct=1
fast-pskip=1
ffmpeg -i <InputFile> -acodec libfaac -ab 128 -vcodec libx264 -vpre roku -crf 15 -threads 0 ~/outputFile.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment