isidrogar Wrote:@Voyager-xbmc, @thespecialist:
Thank you for your help here.
It seems the problem is more complicated. I have tested a DVD with a still menu image and when you navigate into DVD menu pages the background is mixed with last and new page.
This is because the processor is trying to deinterlace with totally different backward reference frames. The same occurs in your videos but in that case the "last page" doesn't exit and a black image is shown.
With this information any solution based in pts==0 will not always work. The a11559's patch is probably working because it defaults to "none" deinterlacing method or you have this selected. Can you please confirm the framerate is not doubled pressing "O" in still menu? Can you also confirm a11559's behavior with a forced deinterlacing method to "Best available" (you must have double framerate in this case)?
To avoid the problem in my code for now you can select "Auto" deinterlacing method as it will properly deinterlace when needed. Anyway I will keep working in a solution for the case you have forced deinterlacing.
Thanks for this. A couple of comments: the a11559 patch wouldn't actually do anything when playing software decoded (dvd) materials. The unfortunate thing about "auto" is that it doesn't always work correctly with some dvd material that incorrectly reports its frame interlacing type. I have tested my problem dvd with "auto" and "best available". The only difference I notice is a bit of flickering (because of my own code change re. pts==0 I proposed above). Pressing O shows fr:25.000 each time (so also with "best avail").
Regarding pts==0 as an indication of stills, I'm curious why wouldn't it always work?