1046Resizing & Compressing Movies with ffmpeg

Resizing Movies with ffmpeg

Scaling down Full HD from 1920x1080 to 960x540:

ffmpeg -i input.mp4 -s 960x540 -c:a copy output.mp4

-i ... input
-s ... scale
-c ... codec

Compressing with H.2645

ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4

crf ... video quality, lower value means better quality

1030Concatenating Videos with ffmpeg

Concatenating videos with the Quicktime Player requires unnecessary decoding/encoding, with takes time and computational resources.


Using ffmpeg

  1. Create a list: mylist.txt

    file '/path/to/file1.mp4'
    file '/path/to/file2.mp4'
    file '/path/to/file3.mp4'
  2. Run ffmpeg ffmpeg -f concat -i mylist.txt -c copy output.mp4