va: i965 driver show garbled output when deinterlacing with raw frames.
This pipeline display garbled frames with i965 driver:
$ gst-launch-1.0 filesrc location=interlaced.mpg ! parsebin ! vampeg2dec ! vadeinterlace ! xvimagesink
To fix it vapostproc
should be added:
$ gst-launch-1.0 filesrc location=interlaced.mpg ! parsebin ! vampeg2dec ! vadeinterlace ! vapostproc ! xvimagesink
In my understanding the problem is the decoder negotiates a color format which is not "native", because i965 driver insert an internal vpp for those non-native colors. But that produces wrong interlaced frames. The hack for that should be removed: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/blob/master/sys/va/gstvacaps.c#L227