unable to load pipeline from XML

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

unable to load pipeline from XML

Ottaviano Vasselli
Hello,
I'm having trouble with gst-xmllaunch. When I launch that simple
pipeline with gst-launch, everything goes fine:

   gst-launch-0.10 filesrc location=$SRC_FILE ! decodebin name=decode decode. \
   ! queue ! theoraenc ! oggmux name=mux  decode. ! queue !
audioconvert ! vorbisenc \
   ! mux.  mux. ! filesink location=$DST_FILE

(with $SRC_FILE and $DST_FILE existing file names)

so I added "-o saved_pipe.xml" obtaining an xml file looking valid.
But when I run gst-xmllaunch -vvv saved_pipe.xml , transcoding does
not start and pipeline terminates with following output:

   (gst-launch-0.10:3746): GStreamer-CRITICAL **: pad sink_563092733
is not a source pad

   (gst-launch-0.10:3746): GStreamer-WARNING **: Name fakesink is not
unique in bin decode, not adding

   (gst-launch-0.10:3746): GStreamer-WARNING **: Name typefind is not
unique in bin decode, not adding
   francesco@helium:/tmp$ gst-xmllaunch-0.10 -vvv test.xml

   (gst-launch-0.10:3758): GStreamer-CRITICAL **: pad sink_563092733
is not a source pad

   (gst-launch-0.10:3758): GStreamer-WARNING **: Name fakesink is not
unique in bin decode, not adding

   (gst-launch-0.10:3758): GStreamer-WARNING **: Name typefind is not
unique in bin decode, not adding

   (gst-launch-0.10:3758): GStreamer-CRITICAL **:
gst_pad_load_and_link: assertion `pad != NULL' failed
   Setting pipeline to PAUSED ...
   /pipeline0/decode/typefind.src: caps = video/x-msvideo
   Pipeline is PREROLLING ...
   ...


Also tried adding filesrc0.location="..." filesink0.location="..."
with real files specified, but no change.
Does somebody have any clue about?


Thank you for your attention, bye

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: unable to load pipeline from XML

Stefan Sauer
hi,

Ottaviano Vasselli schrieb:

> Hello,
> I'm having trouble with gst-xmllaunch. When I launch that simple
> pipeline with gst-launch, everything goes fine:
>
>    gst-launch-0.10 filesrc location=$SRC_FILE ! decodebin name=decode decode. \
>    ! queue ! theoraenc ! oggmux name=mux  decode. ! queue !
> audioconvert ! vorbisenc \
>    ! mux.  mux. ! filesink location=$DST_FILE
>
> (with $SRC_FILE and $DST_FILE existing file names)
>
> so I added "-o saved_pipe.xml" obtaining an xml file looking valid.
> But when I run gst-xmllaunch -vvv saved_pipe.xml , transcoding does
> not start and pipeline terminates with following output:
>  

xml serialisation has some limmitations and is not widley used. In the
above case it might fail to handle the dynamic pads. You could use
G_DEBUG=fatal_warnings gdb --args gst-xmllaunch -vvv saved_pipe.xml
and break on the error. Get the backtrace, figure a fix, report
problem+backtrace+patch to bugzilla.

Stefan

>    (gst-launch-0.10:3746): GStreamer-CRITICAL **: pad sink_563092733
> is not a source pad
>
>    (gst-launch-0.10:3746): GStreamer-WARNING **: Name fakesink is not
> unique in bin decode, not adding
>
>    (gst-launch-0.10:3746): GStreamer-WARNING **: Name typefind is not
> unique in bin decode, not adding
>    francesco@helium:/tmp$ gst-xmllaunch-0.10 -vvv test.xml
>
>    (gst-launch-0.10:3758): GStreamer-CRITICAL **: pad sink_563092733
> is not a source pad
>
>    (gst-launch-0.10:3758): GStreamer-WARNING **: Name fakesink is not
> unique in bin decode, not adding
>
>    (gst-launch-0.10:3758): GStreamer-WARNING **: Name typefind is not
> unique in bin decode, not adding
>
>    (gst-launch-0.10:3758): GStreamer-CRITICAL **:
> gst_pad_load_and_link: assertion `pad != NULL' failed
>    Setting pipeline to PAUSED ...
>    /pipeline0/decode/typefind.src: caps = video/x-msvideo
>    Pipeline is PREROLLING ...
>    ...
>
>
> Also tried adding filesrc0.location="..." filesink0.location="..."
> with real files specified, but no change.
> Does somebody have any clue about?
>
>
> Thank you for your attention, bye
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: unable to load pipeline from XML

Ottaviano Vasselli
In reply to this post by Ottaviano Vasselli
Hi,

Stefan Kost wrote:
> xml serialisation has some limmitations and is not widley used. In the
> above case it might fail to handle the dynamic pads. You could use
> G_DEBUG=fatal_warnings gdb --args gst-xmllaunch -vvv saved_pipe.xml
> and break on the error. Get the backtrace, figure a fix, report
> problem+backtrace+patch to bugzilla.

thanks for the addressing... so could you confirm that problem is just
loading xml, while gst-launch -o "..." does correctly save?

Bye

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: unable to load pipeline from XML

Stefan Sauer
Ottaviano Vasselli schrieb:

> Hi,
>
> Stefan Kost wrote:
>> xml serialisation has some limmitations and is not widley used. In the
>> above case it might fail to handle the dynamic pads. You could use
>> G_DEBUG=fatal_warnings gdb --args gst-xmllaunch -vvv saved_pipe.xml
>> and break on the error. Get the backtrace, figure a fix, report
>> problem+backtrace+patch to bugzilla.
>
> thanks for the addressing... so could you confirm that problem is just
> loading xml, while gst-launch -o "..." does correctly save?
>
As I said the feature is hardly used, for one reason becasue if its limitations.
 If you'd like to use it, you would need to invest some energy here. You could
e.g. write some unit-tests (see tests/check/) to get a status-quo.

Stefan

> Bye
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel