Changes between Version 2 and Version 3 of Encode/YouTube


Ignore:
Timestamp:
Jan 29, 2013, 10:05:26 PM (6 years ago)
Author:
llogan
Comment:

add -pix_fmt yuv420p to examples

Legend:

Unmodified
Added
Removed
Modified
  • Encode/YouTube

    v2 v3  
    88Re-encode the video and copy the audio. The output should be a similar quality as the input and will hopefully be a more manageable size. 
    99{{{ 
    10 ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a copy output.mkv 
     10ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a copy -pix_fmt yuv420p output.mkv 
    1111}}} 
    1212 
    1313Same as above, but also re-encode the audio instead of copying it: 
    1414{{{ 
    15 ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a libvorbis -q:a 5 output.mkv 
     15ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a libvorbis -q:a 5 -pix_fmt yuv420p output.mkv 
    1616}}} 
    1717 
    1818Create a video with a still image (`input.png`) and an audio file (`audio.ogg`): 
    1919{{{ 
    20 ffmpeg -loop 1 -r 2 -i input.png -i audio.ogg -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest output.mkv 
     20ffmpeg -loop 1 -r 2 -i input.png -i audio.ogg -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv 
    2121}}} 
    2222