[maemo-developers] [maemo-developers] problem with gstreamer
From: Patrice Tisserand patrice.tisserand at free.frDate: Sun Aug 20 22:16:38 EEST 2006
- Previous message: [maemo-developers] problem with gstreamer
- Next message: [maemo-developers] Problem with installing a converted .deb package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sunday 20 August 2006 11:10, Pavan Krishnamurthy wrote:
> Hi,
> I did try on x86 linux box only. The same file plays very well under
> $gst-launch filesrc location=tada.wav ! wavparse ! osssink
> command. But when I tried to create similar pipeline inthe " Helloworld "
> eg program, it hangs
> in the main loop.
>
> Is there any need to have a dynamic sink pad add handler as in case of Ogg
> player eg.?
Hello,
I have implemented a simple wav player in python and I found that with
wavparse, you need a dynamic sink pad add like the Ogg player example.
source i s my filesrc, parser is my wavparse and sink is the dsppcmsink.
Here is the revelant line of python code.
source.link(parser)
parser.connect('pad-added', new_pad, sink)
# and the message handler
def new_pad(element, pad, sink):
print "New pad created"
sinkpad = sink.get_pad('sink')
pad.link(sinkpad)
Bye,
Patrice.
>
> Regards,
> Pavan
>
> On 8/20/06, Stefan Kost <ensonic at hora-obscura.de> wrote:
> > hi,
> >
> > Pavan Krishnamurthy wrote:
> > > Hi,
> > >
> > > Firstly excuse me if I am reporting this problem in a wrong group. But
> > > since there are people who have worked on gstreamer in this group I am
> > > posting this problem.
> > >
> > > I tried to run the "helloworld" program given in the gstreamer-10.8
> > > documentation on my linux machine. It played back the .ogg file
> > > without any problem.
> > >
> > > But I needed to play a wave file. So I modified the helloworld code as
> > > follows:
> > > 1. instead of oggdemux and vorbis parser elements, I created wavparse
> > > element.
> > > 2. Added "filesrc", "wavparse", "alsasink" to the pipeline and linked
> > > them.
> >
> > for some file you might need to have "audioconvert" between wavparse and
> > alsasink/dsppcmsink
> >
> > As already suggested install gstreamer-tools and try with gst-launch
> > first. It might be also worth to make the pipeline run on x86 linux and
> > then try on the device.
> >
> > > Now when I ran the program, it doesnt output the sound, it hangs in
> > > the gmainloop and never returns from it.
> > >
> > > Can anybody pls tell me whats wrong with this.
> > >
> > > Thanks and Regards,
> > > Pavan
> >
> > Stefan
- Previous message: [maemo-developers] problem with gstreamer
- Next message: [maemo-developers] Problem with installing a converted .deb package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
