Reducing video size with same format and reducing frame size

前端 未结 6 2305
眼角桃花
眼角桃花 2020-12-04 06:55

This question might be very basic

Is there a way to reduce the frame size/rate of Lossy compressed (WMV, MPEG) format, to get a smaller video, of lesser size, with s

6条回答
  •  Happy的楠姐
    2020-12-04 07:14

    I found myself wanting to do this too recently, so I created a tool called Shrinkwrap that uses FFmpeg to transcode videos, while preserving as much of the original metadata as possible (including file modification timestamps).

    You can run it as a docker container:

    docker run -v /path/to/your/videos:/vids bennetimo/shrinkwrap \
    --input-extension mp4 --ffmpeg-opts crf=22,preset=fast /vids
    

    Where:

    • /path/to/your/videos/ is where the videos are that you want to convert
    • --input-extension is the type of videos you want to process, here .mp4
    • --ffmpeg-opts is any arbitrary FFmpeg options you want to use to customise the transcode

    Then it will recursively find all of the video files that match the extension and transcode them all into files of the same name with a -tc suffix.

    For more configuration options, presets for GoPro etc, see the readme.

    Hope this helps someone!

提交回复
热议问题