|
|
| strange problem with two sink elements
in a pipeline |

|
2007-01-26 11:04:06 |
|
|
Hi,
I encounter a strange behaviour of gstreamer with some custom elements
written in Python. I have a custom element which acts as a demuxer and
has one sink pad and two source pads. I want to attach each of those
source pads to a custom sink element.
I observe the following behaviour:
- when I add only one sink element to the pipeline, everything works
fine (buffers flow as intended)
- when I add two sink elements as intended, things get messy ; buffers
get to the custom "demuxer" element but, when fed to one of the source
pads, they aren't transmitted to the linked sink element
I attach a Python program which reproduces this behaviour.
"python gst-bug.py 0" works fine.
"python gst-bug.py 1" exhibits the bug: nothings gets at the sink.
Regards
Antoine.
|
Approximate file size 2531 bytes |
| Re: strange problem with two sink
elements in a pipeline |

|
2007-01-26 11:53:56 |
|
On 1/26/07, Antoine Pitrou wengo.com> wrote:
>
> Hi,
>
> I encounter a strange behaviour of gstreamer with some custom elements
> written in Python. I have a custom element which acts as a demuxer and
> has one sink pad and two source pads. I want to attach each of those
> source pads to a custom sink element.
>
> I observe the following behaviour:
> - when I add only one sink element to the pipeline, everything works
> fine (buffers flow as intended)
> - when I add two sink elements as intended, things get messy ; buffers
> get to the custom "demuxer" element but, when fed to one of the source
> pads, they aren't transmitted to the linked sink element
>
> I attach a Python program which reproduces this behaviour.
> "python gst-bug.py 0" works fine.
> "python gst-bug.py 1" exhibits the bug: nothings gets at the sink.
The problem is just that you need queues between your demuxer and sinks.
One comment though: your demuxer chain function should return the
return value from the push
Edward
>
> Regards
>
> Antoine.
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
--
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
|
| Re: strange problem with two sink
elements in a pipeline |

|
2007-01-29 07:03:22 |
Le vendredi 26 janvier 2007 à 18:53 +0100, Edward Hervey a
écrit :
> > I attach a Python program which reproduces this
behaviour.
> > "python gst-bug.py 0" works fine.
> > "python gst-bug.py 1" exhibits the bug:
nothings gets at the sink.
>
> The problem is just that you need queues between your
demuxer and sinks.
>
> One comment though: your demuxer chain function
should return the
> return value from the push
Thanks for your answer !
However, it still doesn't work. I attach the updated Python
script.
Regards
Antoine.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
|
|
|
| Re: strange problem with two sink
elements in a pipeline |

|
2007-02-02 04:08:36 |
Sorry to insist, but no news on this one ?
I suppose there's a way to make this function with
gst-python, however
as of now I haven't found the solution...
Thanks
Antoine.
Le lundi 29 janvier 2007 à 14:03 +0100, Antoine Pitrou a
écrit :
> Le vendredi 26 janvier 2007 à 18:53 +0100, Edward
Hervey a écrit :
> > > I attach a Python program which reproduces
this behaviour.
> > > "python gst-bug.py 0" works fine.
> > > "python gst-bug.py 1" exhibits the
bug: nothings gets at the sink.
> >
> > The problem is just that you need queues between
your demuxer and sinks.
> >
> > One comment though: your demuxer chain function
should return the
> > return value from the push
>
> Thanks for your answer !
> However, it still doesn't work. I attach the updated
Python script.
>
> Regards
>
> Antoine.
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
|
|
| Re: strange problem with two sink
elements in a pipeline |

|
2007-02-02 05:20:41 |
On Mon, 2007-01-29 at 14:03 +0100, Antoine Pitrou wrote:
> Le vendredi 26 janvier 2007 Ã 18:53 +0100, Edward
Hervey a écrit :
> > > I attach a Python program which reproduces
this behaviour.
> > > "python gst-bug.py 0" works fine.
> > > "python gst-bug.py 1" exhibits the
bug: nothings gets at the sink.
> >
> > The problem is just that you need queues between
your demuxer and sinks.
> >
> > One comment though: your demuxer chain function
should return the
> > return value from the push
>
> Thanks for your answer !
> However, it still doesn't work. I attach the updated
Python script.
You are not pushing data on the video pad, so the videosink
will never
preroll.
Wim
>
> Regards
>
> Antoine.
>
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys - and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
gstreamer-devel mailing list gstreamer-devel lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
|
|
| Re: strange problem with two sink
elements in a pipeline |

|
2007-02-02 04:20:56 |
On 2/2/07, Antoine Pitrou <antoine.pitrou wengo.com> wrote:
>
> Sorry to insist, but no news on this one ?
> I suppose there's a way to make this function with
gst-python, however
> as of now I haven't found the solution...
Look deeper at your demuxer chain function... look at
where you're
sending the buffers.
Edward
>
> Thanks
>
> Antoine.
>
>
> Le lundi 29 janvier 2007 Ã 14:03 +0100, Antoine Pitrou
a écrit :
> > Le vendredi 26 janvier 2007 Ã 18:53 +0100, Edward
Hervey a écrit :
> > > > I attach a Python program which
reproduces this behaviour.
> > > > "python gst-bug.py 0" works
fine.
> > > > "python gst-bug.py 1" exhibits
the bug: nothings gets at the sink.
> > >
> > > The problem is just that you need queues
between your demuxer and sinks.
> > >
> > > One comment though: your demuxer chain
function should return the
> > > return value from the push
> >
> > Thanks for your answer !
> > However, it still doesn't work. I attach the
updated Python script.
> >
> > Regards
> >
> > Antoine.
>
>
>
>
>
------------------------------------------------------------
-------------
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
>
--
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
|
|
| Re: strange problem with two sink
elements in a pipeline |

|
2007-02-02 04:41:37 |
Le vendredi 02 février 2007 à 11:20 +0000, Wim Taymans a
écrit :
> > Thanks for your answer !
> > However, it still doesn't work. I attach the
updated Python script.
>
> You are not pushing data on the video pad, so the
videosink will never
> preroll.
But is it the reason why the audio sink never receives the
data that's
been pushed to it?
(that's what my problem is about)
Thanks
Antoine.
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
|
|
| Re: strange problem with two sink
elements in a pipeline |

|
2007-02-02 06:27:20 |
On Fri, 2007-02-02 at 11:41 +0100, Antoine Pitrou wrote:
> Le vendredi 02 février 2007 à 11:20 +0000, Wim
Taymans a écrit :
> > > Thanks for your answer !
> > > However, it still doesn't work. I attach the
updated Python script.
> >
> > You are not pushing data on the video pad, so the
videosink will never
> > preroll.
>
> But is it the reason why the audio sink never receives
the data that's
> been pushed to it?
> (that's what my problem is about)
>
What makes you think the sink did not receive the data? The
do_render
method will only be called when *all* sinks in the pipeline
are
prerolled. If you implement do_preroll in your element,
you'll see that
it prerolls fine but never goes to playing.
Wim
> Thanks
>
> Antoine.
>
>
>
>
------------------------------------------------------------
-------------
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
|
|