GNOME Bugzilla – Bug 675305
playbin: Add force-deinterlaced mode to playbin
Last modified: 2018-11-03 11:21:16 UTC
Hello, I have some interlaced video files, which are however marked as non-interlaced. It would be very useful to add a force-deinterlaced mode to playbin2, in order to be able to play back these files correctly. I am attaching one example.
Oops - couldn't attach the example. You can get one of the files from http://micro.autom.teithe.gr/~vivia/oldmovies/
The decoder should notice and signal the change IMHO. I have a DVD menu where the first headers say non-interlaced, and then it changes, but it's not detected/picked up properly (IIRC). Works fine if I hack mpeg2dec to detect it and change caps.
Err, that was just meaning to raise the possibility that the interlacing actually changes. I haven't looked at the file yet, so don't know if that's what's happening here.
There is no indication whatsoever in that file that the content is interlaced, not in the container (qt) nor in the codec (h264). The only solution is to add a force-deinterlace flag to playbin (or repurpose the current deinterlace flag)
It should be a new flag then.
Do we want to keep using GstPlayFlags as it in playbin3? If not this could be a good chance to fix this. We could have an enum property 'interlace' with: - AUTOMATIC: GST_PLAY_FLAG_DEINTERLACE set on playsink + deinterlace mode=auto - DISABLED: GST_PLAY_FLAG_DEINTERLACE not set on playsink - FORCED: GST_PLAY_FLAG_DEINTERLACE set on playsink + deinterlace mode=interlaced
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/65.