[Libav-user] Video scaling
stefasab at gmail.com
Mon Dec 22 15:15:39 CET 2014
On date Monday 2014-12-22 15:11:56 +0100, Arnaud Bienner encoded:
> Looking at the examples provided with ffmpeg (2.5) there are two examples
> to scale an image if I'm right: scaling_video.c but also filtering_video.c,
> which filter is "scale=78:24" so I assumed it is also doing some scaling.
> I believe that once the filter will be parsed and interpreted, this will
> lead to same underlying code being executed, but I just wanted to be sure.
> Or is there any reason to prefer on method over the other, regarding
> performance/features available? (except that filters are probably more
> convenient to use, but here I'm really interested in performance issues, or
> features missing when using filters and vice versa).
The scale filter provides a high-level wrapper around libswscale. If
you don't want/need to use other filters, e.g. to build complex
filtergraphs, then probably it's better to use libswscale directly, to
not incur in the libavfilter filtering (relatively small) overhead.
FFmpeg = Fundamentalist Formidable Mean Prodigious Exciting Gem
More information about the Libav-user