ffmpeg - encode video for Youtube



Re-encode the video and stream copy the audio. The output should be a similar quality as the input and will hopefully be a more manageable size.

ffmpeg -i input.avi -c:v libx264 -preset slow -crf 18 -c:a copy -pix_fmt yuv420p output.mkv

credits: trac.ffmpeg.org/wiki/EncodeforYouTube

Last update:
2014-05-04 17:21
Author:
Daniel
Revision:
1.0
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.