gBroutin / gstreamer-java

Automatically exported from code.google.com/p/gstreamer-java
0 stars 0 forks source link

Request for pipeline/bin/element persistence #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gstreamer has support for saving and loading elements, bins, and pipelines.
Would like to see this supported in gstreamer-java!

Original issue reported on code.google.com by frostfr...@gmail.com on 15 Apr 2008 at 11:45

GoogleCodeExporter commented 8 years ago
Argh, not sure how to change to 'enhancement'

Original comment by frostfr...@gmail.com on 15 Apr 2008 at 12:03

GoogleCodeExporter commented 8 years ago
Change to Type-Enhancement

Original comment by wmeiss...@gmail.com on 15 Apr 2008 at 12:07

GoogleCodeExporter commented 8 years ago
Just had a look at the gst_xml api.  Its pretty awful.

Would an api something like:

java.io.File f = new java.io.File("/tmp/foo.xml");
GstXML xml = new GstXML(f);
Pipeline pipe = (Pipeline) xml.loadElement("pipe");

and

java.io.File f = new java.io.File("/tmp/foo.xml");
GstXML xml = new GstXML(f);
xml.saveElement(pipe);

Be sufficient for what you need?

Original comment by wmeiss...@gmail.com on 15 Apr 2008 at 12:24

GoogleCodeExporter commented 8 years ago
Update to the latest source from mercurial and try out the GstXML class.

Its pretty much as described in the previous comment.

Let me know if its what you wanted.

Original comment by wmeiss...@gmail.com on 15 Apr 2008 at 2:26

GoogleCodeExporter commented 8 years ago
I seem to be getting "GStreamer-CRITICAL **: pad sink is not a source pad" when 
I try
to load, but I am sure that's a gstreamer problem, not a gstreamer-java problem.

Barring that, this is exactly what the doctor ordered.

Thanks very much!

Original comment by frostfr...@gmail.com on 15 Apr 2008 at 4:49

GoogleCodeExporter commented 8 years ago
Can you post some sample code that reproduces that error?

I want to confirm if it is gstreamer itself or something I've done thats 
causing it.

Original comment by wmeiss...@gmail.com on 15 Apr 2008 at 11:51

GoogleCodeExporter commented 8 years ago
No need, I have successfully saved and loaded a simple pipeline.

Unfortunately, I have been looking at the gstreamer mailing lists, and it would 
seem
that the gst xml is broken??? Well, at least, according to this post:
http://sourceforge.net/mailarchive/message.php?msg_id=20080411081406.89AA423F519
%40label.gnome.org

Original comment by frostfr...@gmail.com on 16 Apr 2008 at 12:47

GoogleCodeExporter commented 8 years ago
Marking as done

Original comment by wmeiss...@gmail.com on 27 Apr 2008 at 5:19