SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
710 stars 98 forks source link

Poor downscaling quality #342

Open valery-kirichenko opened 1 year ago

valery-kirichenko commented 1 year ago

Playing 4K video on a 1440p monitor results in an unstable and pixelated/blurry image (pixelated in motion, blurry in static?). Side by side comparison of a still frame vs MPC-BE Comparison in motion YouTube does reduce the effect a bit but you can still see the difference

SuRGeoNix commented 1 year ago

MPC-BE uses a lot of different and better down scalers in general if I remember right. Not sure if it an issue with the 'default' Direct3D 11 down scaler or the sampler's configuration. I will try to include other options for the down scaling, in the meantime send me some details of the video you tried (codec/pixel format/video processor). Try to change the Video Processor to see if there is any difference (eg. if it is FlyleafVP change it to D3D11VP or visa versa). If it an HDR video thought it will not properly work with the colors with D3D11VP but at least you can check if it still blurs). Check also an HDR/non-HDR and let me know if the issue persists

valery-kirichenko commented 1 year ago

Flyleaf video processor looks a lot better. Also, turns out MPC-BE by default is just as bad 😅, I was using madVR when did these demos. Compared to madVR in this window size, FlyleafVP is a bit blurrier and unstable but still miles better than D3D11VP or stock MPC-BE. If the window size is small, there's still room for improvement. Here's video info: image Interestingly, even though it uses 10 bpc, it has bt709 color space, so it's not HDR

SuRGeoNix commented 1 year ago

I should set the default VP to FlyleafVP instead of D3D11VP. I still didn't do a proper performance comparison between those two. The only reason that I've D3D11VP is for de-interlaced and extra video filters. I will review in the future better down scaling options.