llkadigital.blogg.se

Ffmpeg scale down
Ffmpeg scale down











ffmpeg scale down

Notice that there is a set of formats (containers) accepted by browsers (most admit mp4, some also webm. $ ffmpeg -i INPUT -s 320x240 -c:a copy -c:v vp9 OUT.webm Vp9 will provide nearly 50% extra bandwidth saving, but only for supported browsers (Firefox/Chrome), and the encoding will much slower compared to libx264 (that itself is much slower that v:c copy):

ffmpeg scale down

$ ffmpeg -i INPUT -s 320x240 -threads 4 -c:a copy -c:v libx264 OUT.mp4 The libx264 is recommended if you want compatibility with all browsers. Notice that once you start decoding-filtering-encoding (i.e., no copy) the process will be much slower (x100 time slower or even more). Video copy will ignore the video filter chain of ffmpeg, so no scaling is available (man ffmpeg is a great source of information that you will not find on Google).













Ffmpeg scale down