[FFmpeg-devel] [PATCH] zscale video filter performance optimization 4x

Victoria Zhislina niva213 at gmail.com
Thu Feb 10 13:33:43 EET 2022


Yes,yes,yes, moreover the graph should be rebuilt if some other parameters
change - interpolation method etc, also when a single input splitted by
zscaling to 2 different resolution streams.

So I've submitted a new patch version that fixes everything. It has a lot
of checks inside but they are absolutely necessary. They save 30-60% of
performance in a single threading case!

On Wed, Feb 9, 2022 at 12:38 PM Guillaume POIRIER <poirierg at gmail.com>
wrote:

> Hello Victoria,
>
> On Sun, 6 Feb 2022 at 16:12, Victoria Zhislina <niva213 at gmail.com> wrote:
>
> > I wasn't aware of the cases where width/height can change between frames
> -
> > never seen them in real life, but right you are,  iI will change my code
> > accordingly - to make re-init if some change happened.
>
>
> If you want to create such a sample, take 2 short HEVC clips with
> different resolutions, extract the ES, and concat them together:
>
> ffmpeg -i INPUT1.mp4 -codec copy -bsf:v hevc_mp4toannexb OUTPUT1.265
> ffmpeg -i INPUT2.mp4 -codec copy -bsf:v hevc_mp4toannexb OUTPUT2.265
>
> cat OUTPUT1.265 OUTPUT2.265 > mixed_res.265
>
> Guillaume
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list