- 
      
- 
        Save brookemckim/1015107 to your computer and use it in GitHub Desktop. 
    Roku Recommended FFMPEG h264 Preset
  
        
  
    
      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
    
  
  
    
  | ffmpeg -i <inputFile> -f mpegts -acodec libfaac -vcodec libx264 \ -vpre roku -crf 15 -threads 0 ~/OneTransportStreamFile3200.ts | 
  
    
      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
    
  
  
    
  | 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 | |
| flags2=+wpred+mixed_refs+dct8x8+fastpskip | 
  
    
      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
    
  
  
    
  | ffmpeg -i <InputFile> -acodec libfaac –ab 128 -vcodec libx264 \ -vpre roku -crf 15 -threads 0 ~/outputFile.mp4 | 
Also, I had to read manpages to determine that this is necessary for ffpmeg to find the preset:
mkdir -p ~/.ffmpeg
cp libx264-roku.ffpreset ~/.ffpmeg
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
I had to change
directpred=todirect-pred=for use with ffpmeg 3.3.6:There's probably a variation on
flags2=which works now? Instead, I just commented theflags2param and the videos seemed to work on a fairly recent Roku.And also, with Linux, I had to change the
mp4switch from-acodec libflaacto-acodec aac: