[gst-devel] Are there Anything else needed between 'filesrc'and 'rtpmp4vpay' ?
Michal Benes
michal.benes at itonis.tv
Mon Sep 4 11:45:04 CEST 2006
Hello,
> Yes, qtdemux works well.
>
> But let's see the following command:
>
> gst-launch filesrc location=/home/Dell.mp4 ! qtdemux ! decodebin !
> alsasink
the reason is that decodebin links to the first pad created by qtdemux
(which is probably video in your case). You can try
gst-launch playbin uri=file:///home/Dell.mp4
If your really want to try decodebin, then no qtdemux is needed
gst-launch filesrc location=/home/Dell.mp4 ! decodebin name=d \
d. ! alsasink \
d. ! xvimagesink
or better
gst-launch filesrc location=/home/Dell.mp4 ! decodebin name=d \
d. ! audioconvert ! alsasink \
d. ! ffmpegcolorspace ! xvimagesink
This will connect both decodebin pads (audio and video) to appropriate
sinks.
Best regards,
Michal
> Why not I can hear the voice ? And decodebin's src & sink caps is
> "video/...."? We lost the Audio ?
>
> Thanks again !
>
> ----- Original Message -----
> From: "Michal Benes" <michal.benes at xeris.cz>
> To: "Fu Hao" <fu585 at oki.com>
> Sent: Monday, September 04, 2006 5:16 PM
> Subject: Re: [gst-devel] Are there Anything else needed between 'filesrc'and
> 'rtpmp4vpay' ?
>
>
> > Hello,
> >
> > >
> > > Then, I want to change the 'videotestsrc' to 'filesrc', and set
> > > the 'location' of 'filesrc' as a '*.mp4'.
> > >
> > > The command looks like this:
> > >
> > > gst-launch filesrc location=/home/Dell.mp4 ! rtpmp4vpay !
> > > rtpmp4vdepay ! ffdec_mpeg4 ! xvimagesink
> > >
> >
> > try this one
> >
> > gst-launch filesrc location=/home/Dell.mp4 ! qtdemux ! rtpmp4vpay !
> > rtpmp4vdepay ! ffdec_mpeg4 ! xvimagesink
> >
> > Michal
>
More information about the gstreamer-devel
mailing list