GStreamer - Question about Decodebin pad linking and NOFORMAT error condition
F455
florian.delaunay at free.fr
Tue Jun 13 07:10:58 UTC 2017
Hi everyone,
I'm using GStreamer 1.10.4 in order to perform raw video streaming playback
in a Java application.
This this the command I'm using for the video playback outside my Java app:
It works fine
Now, I need to implement this pipeline in my Java app. So I'm using:
- the jna-4.4.0.jar
- the gst1-java-core-0.9-161201.jar GStreamer java wrapper
- the SimpleVideoComponent.java class, part of gstreamer-java, in order to
embed the video sink in a JFrame UI object
I am able to construct simple pipelines in Java (like videotestsrc !
autovideosink) that are correctly displayed in my UI.
However, things get harder when I'm building my raw streaming decoding
pipeline as described in command-line above.
The problem is that I can't link the decodebin's src0 pad to the videobox's
sink pad : I get a NOFORMAT error
Here is the relevant code I'm using for the pipeline construction :
Here is the output of the inspect(pipeline) function in the padAdded
callback, after the linking attempt:
The way I'm programming this pipeline is very close to other examples I
found on the web
<https://github.com/gstreamer-java/gstreamer-java/blob/master/gstreamer-java/src/org/gstreamer/example/DecodeBinPlayer.java>
. I don't understand why I'm getting a NOFORMAT error between these two
elements as the same pipeline works fine both:
- in command-line mode
- in java when passing the entire pipeline string to the GStreamer binding
(but this is not a appropriate solution as I need to have control on the
pipeline elements)
I also tried to link the decodebin directly to the videosink element (not
using the videobox), but I get the same result.
I don't find any precise information about the NOFORMAT error condition on
the web. Any idea about any tricky thing I may have forgotten in my code ?
How could I go deeper and see what happens during the elements pads
negociations ?
Thank you for your help
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/GStreamer-Question-about-Decodebin-pad-linking-and-NOFORMAT-error-condition-tp4683322.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list