gtksink: rendering problems with some cdg files
To reproduce:
- build the cdg plugin
- Run the pipeline with this file: bug.cdg
$ gst-launch-1.0 filesrc location=bug.cdg ! cdgparse ! cdgdec ! videoconvert ! gtksink -v
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstCdgParse:cdgparse0.GstPad:src: caps = video/x-cdg, width=(int)300, height=(int)216, framerate=(fraction)0/1, parsed=(boolean)true
/GstPipeline:pipeline0/GstCdgDec:cdgdec0.GstPad:sink: caps = video/x-cdg, width=(int)300, height=(int)216, framerate=(fraction)0/1, parsed=(boolean)true
/GstPipeline:pipeline0/GstCdgDec:cdgdec0.GstPad:src: caps = video/x-raw, format=(string)RGBA, width=(int)300, height=(int)216, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)sRGB, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)300, height=(int)216, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)0/1, format=(string)BGRA, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstGtkSink:gtksink0.GstPad:sink: caps = video/x-raw, width=(int)300, height=(int)216, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)0/1, format=(string)BGRA, colorimetry=(string)sRGB
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)RGBA, width=(int)300, height=(int)216, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)sRGB, framerate=(fraction)0/1
See how to rendering is wrong:
It's properly rendered using other sinks such as ximagesink
or gtkglsink
:
I also reproduced the problem using gtk4paintablesink
in non-GL mode. So maybe it's a problem during the video conversion?