$ ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4
$ ffmpeg -i input.mp4 \
-c:v libx264 -preset medium -tune film -crf 22 -vf scale=-1:720 \
-c:a copy \
output.mp4
$ ffmpeg -i input.mp4 \
-c:v libx264 -preset medium -tune film -crf 22 -vf scale=-1:720 \
-c:a libfdk_aac -b:a 128k \
output.mp4
Set the encoding speed to compression ratio. Faster compression yields a larger file.
- ultrafast
- superfast
- veryfast
- faster
- fast
- medium
- slow
- slower
- veryslow
$ ffmpeg -i input.mov \
-ss 00:00:05.00 \
-to 00:23:25.17 \
-c copy \
-avoid_negative_ts 1 \
clip.mov
# files.txt
file 'clip1.mov'
file 'clip2.mov'
file 'clip3.mov'
$ ffmpeg -f concat -i files.txt -c copy output.mov
- FFmpeg and H.264 Encoding Guide
- How can I convert a 1080p wmv video to a 720p video?
- FFmpeg: Concatenate - Check out the
mmcat
script at the bottom of the page.