Hi,
Could someone explain how to describe multi path streams in gst-launch syntax, I want to test a multi-stream (hardware) audio decoder with an inbuilt mixer, the gst component has 2 input pads and 3 outputs pads. There are 2 scenarios I want to test: 1) connect 2 filesrc’s to the input pads (0 & 1) and alsasink to the mixed output pad (pad1) 2) connect 2 filesrc’s to the input pad (0 & 1), alsa sink to the mixed output pad (pad 1) and 2 filesinks to the other 2 pads (0 and 1). The component looks like: ____ ________ _____ |SRC0|_____|Decoder0|_______________|SINK0| |____| |________| | |_____| | _____ _____ ---|MIXER|___|SINK1| ---|_____| |_____| ____ ________ | _____ |SRC1|_____|Decoder1|__|____________|SINK2| |____| |________| |_____| Cheers for the help, Neil _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
so something like:
gst-launch-0.10 filesrc ! decoder ! mixer name=mix ! sink filesrc ! decoder ! mix. notice the lack of "!" between sink and second filesrc, equivalent to: gst-launch-0.10 filesrc ! decoder ! mixer name=mix ! sink \ filesrc ! decoder ! mix. Luis On 17 May 2012 10:18, Neil Jones <[hidden email]> wrote: > Hi, > > Could someone explain how to describe multi path streams in gst-launch syntax, > I want to test a multi-stream (hardware) audio decoder with an inbuilt mixer, > the gst component has 2 input pads and 3 outputs pads. > > There are 2 scenarios I want to test: > > 1) connect 2 filesrc’s to the input pads (0 & 1) and alsasink to the > mixed output pad (pad1) > > 2) connect 2 filesrc’s to the input pad (0 & 1), alsa sink to the > mixed output pad (pad 1) and 2 filesinks to the other 2 pads (0 and > 1). > > The component looks like: > > ____ ________ _____ > |SRC0|_____|Decoder0|_______________|SINK0| > |____| |________| | |_____| > | _____ _____ > ---|MIXER|___|SINK1| > ---|_____| |_____| > ____ ________ | _____ > |SRC1|_____|Decoder1|__|____________|SINK2| > |____| |________| |_____| > > > Cheers for the help, > > Neil > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Cheers,
I have given this a try, my decoder and mixer are a single component so my pipeline looks like: gst-launch-0.10 filesrc ! decoder_and_mix ! sink filesrc ! decoder_and_mix the syntax seems to work, but I get 2 seperate calls to the init and change_state functions as If gstreame rhas created 2 seprate decode_and_mix components, I would have only expected 1 call to both of these functions ? Cheers Neil On Fri, May 18, 2012 at 12:58 PM, Luis de Bethencourt <[hidden email]> wrote: > so something like: > > gst-launch-0.10 filesrc ! decoder ! mixer name=mix ! sink filesrc ! > decoder ! mix. > > notice the lack of "!" between sink and second filesrc, equivalent to: > > gst-launch-0.10 filesrc ! decoder ! mixer name=mix ! sink \ > filesrc ! decoder ! mix. > > Luis > > On 17 May 2012 10:18, Neil Jones <[hidden email]> wrote: >> Hi, >> >> Could someone explain how to describe multi path streams in gst-launch syntax, >> I want to test a multi-stream (hardware) audio decoder with an inbuilt mixer, >> the gst component has 2 input pads and 3 outputs pads. >> >> There are 2 scenarios I want to test: >> >> 1) connect 2 filesrc’s to the input pads (0 & 1) and alsasink to the >> mixed output pad (pad1) >> >> 2) connect 2 filesrc’s to the input pad (0 & 1), alsa sink to the >> mixed output pad (pad 1) and 2 filesinks to the other 2 pads (0 and >> 1). >> >> The component looks like: >> >> ____ ________ _____ >> |SRC0|_____|Decoder0|_______________|SINK0| >> |____| |________| | |_____| >> | _____ _____ >> ---|MIXER|___|SINK1| >> ---|_____| |_____| >> ____ ________ | _____ >> |SRC1|_____|Decoder1|__|____________|SINK2| >> |____| |________| |_____| >> >> >> Cheers for the help, >> >> Neil >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Ah I see what im doing wrong I need to name my element and use that
name for the 2nd stream eg: gst-launch-0.10 filesrc ! decoder_and_mix name=mix ! sink filesrc ! mix. Neil On Wed, May 23, 2012 at 10:42 AM, Neil Jones <[hidden email]> wrote: > Cheers, > > I have given this a try, my decoder and mixer are a single component > so my pipeline looks like: > > gst-launch-0.10 filesrc ! decoder_and_mix ! sink filesrc ! decoder_and_mix > > the syntax seems to work, but I get 2 seperate calls to the init and > change_state functions as If gstreame rhas created 2 seprate > decode_and_mix components, I would have only expected 1 call to both > of these functions ? > > Cheers > > Neil > > > On Fri, May 18, 2012 at 12:58 PM, Luis de Bethencourt > <[hidden email]> wrote: >> so something like: >> >> gst-launch-0.10 filesrc ! decoder ! mixer name=mix ! sink filesrc ! >> decoder ! mix. >> >> notice the lack of "!" between sink and second filesrc, equivalent to: >> >> gst-launch-0.10 filesrc ! decoder ! mixer name=mix ! sink \ >> filesrc ! decoder ! mix. >> >> Luis >> >> On 17 May 2012 10:18, Neil Jones <[hidden email]> wrote: >>> Hi, >>> >>> Could someone explain how to describe multi path streams in gst-launch syntax, >>> I want to test a multi-stream (hardware) audio decoder with an inbuilt mixer, >>> the gst component has 2 input pads and 3 outputs pads. >>> >>> There are 2 scenarios I want to test: >>> >>> 1) connect 2 filesrc’s to the input pads (0 & 1) and alsasink to the >>> mixed output pad (pad1) >>> >>> 2) connect 2 filesrc’s to the input pad (0 & 1), alsa sink to the >>> mixed output pad (pad 1) and 2 filesinks to the other 2 pads (0 and >>> 1). >>> >>> The component looks like: >>> >>> ____ ________ _____ >>> |SRC0|_____|Decoder0|_______________|SINK0| >>> |____| |________| | |_____| >>> | _____ _____ >>> ---|MIXER|___|SINK1| >>> ---|_____| |_____| >>> ____ ________ | _____ >>> |SRC1|_____|Decoder1|__|____________|SINK2| >>> |____| |________| |_____| >>> >>> >>> Cheers for the help, >>> >>> Neil >>> _______________________________________________ >>> gstreamer-devel mailing list >>> [hidden email] >>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |