-
Notifications
You must be signed in to change notification settings - Fork 67
Description
In 3.9.4 on tvOS MrMC now supports 4:2:2 h.264 interlaced playback - which is great. Thanks so much for this! (Combined with W3FDIF this is a brilliant development in MrMC)
However I noticed that this appears to have chroma artefacts very similar to those you get with ffmpeg's default 4:2:2->4:2:0 conversion. These chroma artefacts mean that, when deinterlaced to field-rate (i.e. a 2x deinterlace / full rate deinterlace), very saturated picture content (you see this particularly on saturated reds and blues on interlaced entertainment shows) appears to judder at frame rate, whereas less saturated content is fluid with field rate motion. (Performers wearing bright red clothing, fast moving saturated blue light beams judder, but performers wearing white, grey or black clothing, and white light beams are fluid)
I first spotted these artefacts when offline ffmpeg converting 4:2:2 1080i25 h.264 to 4:2:0 1080i25 h.264 to allow for playback on 4:2:0-only devices. Without an interlaced aware scale filter you get judder on highly saturated chroma (Even though there isn't a resolution scale with 1080i->1080i conversion, I guess there is a chroma vertical subsample that needs to be interlaced aware)
To get ffmpeg to convert correctly you need a -filter:v scale=interl=1 or similar filter in the video pipeline - which will then correctly subsample the chroma in an interlaced aware fashion.
Is MrMC doing 4:2:2->4:2:0 chroma subsample in the interlaced domain, and then deinterlacing the 4:2:0 result? ISTR that if you deinterlace 4:2:2 1080i to 4:2:0 1080p directly you don't get the same artefacts (I guess because you are going to progressive subsampled chroma, rather than interlaced).