Nevcairiel / LAVFilters

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

Huge PNG crashes LAVVideo.ax #549

Closed motion-rocket closed 1 year ago

motion-rocket commented 1 year ago

Sals Post CF size: 35,281 x 5,346 (W x H)

v0lt commented 1 year ago

Are you sure that it is the LAVVideo.ax that is crashing?

Perhaps the problem is in the video renderer, which cannot create a texture with a side size greater than 16384.

v0lt commented 1 year ago

I recommend MPC Image Source.

motion-rocket commented 1 year ago

I use a custom video renderer which transfers the data into a Dirext3D RGBA texture. In this case it will be split in bands to fill up the max size of supported texture on the 3d device. we do this for very long but narrow images for the fascia displays with adds at stadiums.

If you drop the file in graphstudionext64.exe the filter will fail to build. I think it is possible to debug the source if in graphstudio you attach to the process.

motion-rocket commented 1 year ago

I recommend MPC Image Source.

Thanks for the recommendation, It looks very promising.

motion-rocket commented 1 year ago

You were right the problem is in the custom video renderer, in the IBaseFilter code where pin connection is made. My tests came to max pixel sizeof an image < 8192x8192 (not equal). also if width is > 16384 there are more problems. As far as MPC Image Source - implemented that in the code but even the graphbuilder succeeds at certain sizes there are problems.

motion-rocket commented 1 year ago

no problem with LAVVideo.ax, Direct3D at some images will run out of memory and has to be reinitialized. You can close the issue. Thanks for your help.