Changes between Version 67 and Version 68 of Encode/H.264


Ignore:
Timestamp:
Jul 30, 2018, 10:36:42 PM (7 months ago)
Author:
slhck
Comment:

note that -an can be used in first pass

Legend:

Unmodified
Added
Removed
Modified
  • Encode/H.264

    v67 v68  
    120120* In pass 1, output to a null file descriptor, not an actual file. (This will generate a logfile that ffmpeg needs for the second pass.)
    121121* In pass 1, you need to specify an output format (with `-f`) that matches the output format you will use in pass 2.
    122 * In pass 1, specify the audio codec used in pass 2; in many cases, `-an` in pass 1 will not work.
     122* In pass 1, you can leave audio out by specifying `-an`.
    123123
    124124For example:
    125125
    126126{{{
    127 ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -c:a aac -b:a 128k -f mp4 /dev/null && \
     127ffmpeg -y -i input -c:v libx264 -b:v 2600k -pass 1 -an -f mp4 /dev/null && \
    128128ffmpeg -i input -c:v libx264 -b:v 2600k -pass 2 -c:a aac -b:a 128k output.mp4
    129129}}}