Changes between Version 2 and Version 3 of EncodeforYouTube
- Timestamp:
- 01/29/2013 09:05:26 PM (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EncodeforYouTube
v2 v3 8 8 Re-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. 9 9 {{{ 10 ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a copy output.mkv10 ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a copy -pix_fmt yuv420p output.mkv 11 11 }}} 12 12 13 13 Same as above, but also re-encode the audio instead of copying it: 14 14 {{{ 15 ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a libvorbis -q:a 5 output.mkv15 ffmpeg -i input -c:v libx264 -preset slow -crf 18 -c:a libvorbis -q:a 5 -pix_fmt yuv420p output.mkv 16 16 }}} 17 17 18 18 Create a video with a still image (`input.png`) and an audio file (`audio.ogg`): 19 19 {{{ 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.mkv20 ffmpeg -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 21 21 }}} 22 22


