Nevcairiel / LAVFilters

LAV Filters - Open-Source DirectShow Media Splitter and Decoders
GNU General Public License v2.0
7.36k stars 789 forks source link

Output RGB fps 60 → 26 #431

Closed 28598519a closed 2 years ago

28598519a commented 3 years ago

When a 4K video is processed by LAV filiters, the FPS of the movie changes from 60 to 26, and the video changes into slow motion.

YV12、NV12 was tested and OK, only occurs in RGB32 and RGB24 when the video is more than 4096*2160.

PS. CPU usage less than 35%

clsid2 commented 3 years ago

That is not a bug. Converting colorspace costs performance and afaik it isn't multi-threaded.

clsid2 commented 3 years ago

LAV does not do any HDR conversion. That is left to the renderer to do.

It also doesn't use swscale for all conversions. It actually has its own code for some of the most common conversions.

Nevcairiel commented 2 years ago

LAV is designed for as-is output, conversions are only supported for convenience and testing, but any video processing should ideally be done on the graphics card, as those are specifically designed for processing images.