Changes between Version 60 and Version 61 of Encode/H.264


Ignore:
Timestamp:
Mar 7, 2017, 10:36:50 PM (3 weeks ago)
Author:
llogan
Comment:

changed a new x264opts incidence with x264-params. various nits.

Legend:

Unmodified
Added
Removed
Modified
  • Encode/H.264

    v60 v61  
    6868}}} 
    6969 
    70 You can also forgo the bitrate calculation if you already know what final (average) bitrate you need for clip. 
     70You can also forgo the bitrate calculation if you already know what final (average) bitrate you need. 
    7171 
    7272=== Two-Pass Example === 
     
    9696== Lossless H.264 == 
    9797 
    98 You can use `-crf 0` to encode a lossless output. Two useful presets for this are `ultrafast` or `veryslow` since either a fast encoding speed or best compression are usually the most important factors. Most non-FFmpeg based players will not be able to decode lossless (but !YouTube can), so if compatibility is an issue you should not use lossless. 
    99  
    100 Note that lossless output files will likely be huge. 
     98You can use `-crf 0` to encode a lossless output. Two useful presets for this are `ultrafast` or `veryslow` since either a fast encoding speed or best compression are usually the most important factors. 
    10199 
    102100=== Lossless Example (fastest encoding) === 
     
    113111}}} 
    114112 
     113Note that lossless output files will likely be huge, and most non-FFmpeg based players will not be able to decode lossless, so if compatibility or file size issues you should not use lossless. If you're looking for an output that is roughly "visually lossless" but not technically lossless use a `-crf` value of around 17 or 18 (you'll have to experiment to see which value is acceptable for you). It will likely be indistinguishable from the source and not result in a huge, possibly incompatible file like true lossless mode. 
     114 
    115115---- 
    116116 
     
    139139 
    140140{{{ 
    141 ffmpeg -i input.mp4 -c:v libx264 -x264opts "nal-hrd=cbr" -b:v 1M -minrate 1M -maxrate 1M -bufsize 2M output.ts 
     141ffmpeg -i input.mp4 -c:v libx264 -x264-params "nal-hrd=cbr" -b:v 1M -minrate 1M -maxrate 1M -bufsize 2M output.ts 
    142142}}} 
    143143