gtksink is not rendering my video (black screen)
pisymbol .
pisymbol at gmail.com
Sat Jun 8 05:26:18 UTC 2019
If I do the following on the command line:
gst-launch-1.0 filesrc
location="/mnt/storage/2cam/20190608_050606Z_00000000.mkv" ! matroskademux
name=demux demux.video_0 ! h264parse ! avdec_h264 ! videoconvert ! gtksink
I see the video in the Cairo window.
However, if I do the exact same thing in Python:
on_realize():
53 self.pipeline = Gst.Pipeline()
54 factory = self.pipeline.get_factory()
55 gtksink = factory.make('gtksink')
56 self.pipeline.add(gtksink)
57 self.pipeline.add(self.bin) # self.bin =
Gst.parse_bin_from_dsecription(pipeline above)
58 self.bin.link(gtksink)
59 self.pack_start(gtksink.props.widget, True, True, 0)
60 self.pipeline.set_state(Gst.State.PLAYING)
61 gtksink.props.widget.show_all()
It pops open a dialog with a black screen.
HOWEVER, if I simply make my pipline above just 'videotestsrc' it plays the
test stream without issue in my window.
Why does 'videotestsrc' work but my custom pipeline above does not?
-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190608/ec62d912/attachment.html>
More information about the gstreamer-devel
mailing list