Closed jugurthab closed 3 years ago
gst-launch-1.0 filesrc location=test.mkv ! decodebin ! imxvideoconvert_ipu ! tee name=tee-test-raw tee-test-raw. ! queue max-size-buffers=2 leaky=downstream silent=false ! imxv4l2sink name=imxv4l2sink-rear device=/dev/OUT
You are using the NXP imx-gst1.0-plugin package. This project here is gstreamer-imx - an entirely different set of plugins. I cannot support the NXP package, since it is not my code. Please ask in the NXP forums about this.
Or, you can try if gstreamer-imx works for you. The equivalents would be: imxvideoconvert_ipu -> imxipuvideotransform ; imxv4l2sink -> imxv4l2videosink . But please note that having both imx-gst1.0-plugin and gstreamer-imx installed on the same platform is not guaranteed to work well.
Closing this for now since this involves other plugins (not gstreamer-imx). Reopen if this issue persists when using gstreamer-imx instead of imx-gst1.0-plugin .
Hi,
I have the following gst-launch command which works well :
and produces the following output (video file shown on the screen) :
However, when I implement the same setting in python, the pipline never go to prerolling. The python code is shown below : ` class Capture(Gst.Pipeline): def init(self, camera_settings): Gst.Pipeline.init(self, name=camera_name) self.sourceVideoCapsFilter = None self.camera_name = camera_name self.src = Gst.ElementFactory.make('filesrc') self.src.set_property('location', 'test.mkv') self.sourceVideoCapsFilter = Gst.ElementFactory.make('decodebin') self.src_convert = Gst.ElementFactory.make('imxvideoconvert_ipu') self.tee = Gst.ElementFactory.make("tee") self.tee.set_property("allow-not-linked", True) self.queue = Gst.ElementFactory.make("queue") self.queue.set_property("max-size-buffers", 2) self.queue.set_property("leaky", "downstream") self.queue.set_property("silent", False) self.video_preview_sink = Gst.ElementFactory.make("imxv4l2sink") self.video_preview_sink.set_property("device", "/dev/OUT")
self.add(self.src) self.add(self.sourceVideoCapsFilter) self.add(self.src_convert) self.add(self.tee) self.add(self.queue) self.add(self.video_preview_sink) self.src.link(self.sourceVideoCapsFilter) self.sourceVideoCapsFilter.link(self.src_convert) self.src_convert.link(self.tee) self.tee.link(self.queue) self.queue.link(self.video_preview_sink)
GObject.type_register(Capture) gstelementfactory = (("capture", Gst.Rank.NONE, Capture),("videopreview", Gst.Rank.NONE, VideoPreview))
pipeline = Gst.Pipeline.new()
camera_test = Capture("test_cam") pipeline.add(camera_test) pipeline.set_state(Gst.State.PLAYING)
bus = pipeline.get_bus()
g_loop = GLib.MainLoop() g_loop.run() `
which produces only the following output (and the video is never read):
Any help will be appreciated.
Thanks