Sunday, 15 February 2015

ffmpeg video compression / specifc file size -


Currently I have 80 MB movies, which I want to use the FMPG so that below 10 MB or 15 MB Say in I know that there will be a quality loss but they will need sound what I've ever done before, plus there is no way to specify file size or high compression

  ffmpeg -i movie Mp4 -b 2255k -s 1280x720 movie.hd.ogv  

They are currently 25 MB one piece

If you are targeting a certain output, the best way to file size H.264 and two-pass encoding Is to use.

Here's a great example but its copy is too big - Paste:

You can calculate your target bitrate by bitrate = file size / duration And you launch ffmpeg twice: analyzes a nearby media and the other does the actual encoding:

  ffmpeg -y -i input -c : V libx264 -preset medium -b: v 555k -pass 1 -c: a libfdk_aac -b: a 128k -f mp4 / dev / null & amp; Amp; \ Ffmpeg -i Input -C: v-libx264 -preset Medium-B: V 555k -pass 2 -c: a libfdk_aac -b: a 128k output.mp4  

Edit: H .265 (HEVC) is better in compression (in some cases 50% of H.264 size), but so far the support is not yet comprehensive, so now paste it with H.264.


No comments:

Post a Comment