Help! a very simple question..

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

Help! a very simple question..

Yue Li-2
Hi,

I'm new to Gstreamer and this mail list. So I know maybe my question
is too stupid.
But I really couldn't find the answer and need your help.

I just tried to decode a mpeg file like below:

gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux video_00!
{ queue ! mpeg2dec ! xvideosink }

but got the error message :

WARNING: erroneous pipeline: no element "video_00"

Then I tried:

gst-launch filesrc location=mpeg2.mpg ! mpegdemux ! fakesink

and got:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /pipeline0/filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/filesrc0:
streaming task paused, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
FREEING pipeline ...

I know this question may be too simple to you but please help me...

Thank you!
Yue Li

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help! a very simple question..

Kalle Vahlman
2008/2/27, Yue Li <[hidden email]>:
> Hi,

Hi!

>  I just tried to decode a mpeg file like below:
>
>  gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux video_00!
>  { queue ! mpeg2dec ! xvideosink }

1. You don't need to specify the pad name (video_00)
2. xvideosink doesn't exist, it's xvimagesink.
3. the {} notation isn't necessary
4. when decoding just the video, the queue isn't neccessary (and seems
like it fails to link with mpeg2dec)

So try this instead:

gst-launch -v filesrc location=mpeg2.mpg ! mpegdemux ! mpeg2dec ! xvimagesink

With audio:
gst-launch -v filesrc location=mpeg2.mpg ! mpegdemux name=demux !
mpeg2dec ! queue ! xvimagesink  demux. ! mad ! queue ! audioconvert !
alsasink

(for some reason the queues do not work if they are before the decoder
elements, I wonder why...?)

Hope this helps.

--
Kalle Vahlman, [hidden email]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help! a very simple question..

Manish Rana
In reply to this post by Yue Li-2
Hi Yue,

Please check the answers below.
I have tried my best to give the answers, but apologies for any wrong arguments.. :)

On Wed, Feb 27, 2008 at 12:13 PM, Yue Li <[hidden email]> wrote:
Hi,

I'm new to Gstreamer and this mail list. So I know maybe my question
is too stupid.
But I really couldn't find the answer and need your help.

I just tried to decode a mpeg file like below:

gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux video_00!
{ queue ! mpeg2dec ! xvideosink }

but got the error message :

WARNING: erroneous pipeline: no element "video_00"
The currect pipeline for this should be :
gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux { demux.video_00 ! queue ! mpeg2dec ! xvideosink }
as the demuxer is a parent of the video_00 pad.
 

Then I tried:

gst-launch filesrc location=mpeg2.mpg ! mpegdemux ! fakesink

and got:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /pipeline0/filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/filesrc0:
streaming task paused, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
FREEING pipeline ...
I am not very much sure of this, as this should have worked fine.
Please try giving the caps filter ( not a good practice.) before mpeg2demux.

Hope this will help you.......

I know this question may be too simple to you but please help me...

Thank you!
Yue Li

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Manish Rana
Software Engg.
Handset Technology Solution,
Sasken Comm. Tech.
Bangalore,India
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help! a very simple question..

Yue Li-2
Hi Kalle and Manish,

Thank you very much!  The pipeline works now :)

For the problem of
gst-launch filesrc location=mpeg2.mpg ! mpegdemux ! fakesink
I found
gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux
demux.video_00 ! fakesink
works well.

It seems that pad name is required to run mpegdemux.
Maybe because it comes from gst-plugin-ugly.


On Wed, Feb 27, 2008 at 4:17 PM, Manish Rana <[hidden email]> wrote:

> Hi Yue,
>
> Please check the answers below.
> I have tried my best to give the answers, but apologies for any wrong
> arguments.. :)
>
>
> On Wed, Feb 27, 2008 at 12:13 PM, Yue Li <[hidden email]> wrote:
>
> > Hi,
> >
> > I'm new to Gstreamer and this mail list. So I know maybe my question
> > is too stupid.
> > But I really couldn't find the answer and need your help.
> >
> > I just tried to decode a mpeg file like below:
> >
> > gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux video_00!
> > { queue ! mpeg2dec ! xvideosink }
> >
> > but got the error message :
> >
> > WARNING: erroneous pipeline: no element "video_00"
> The currect pipeline for this should be :
>  gst-launch filesrc location=mpeg2.mpg ! mpegdemux name=demux {
> demux.video_00 ! queue ! mpeg2dec ! xvideosink }
> as the demuxer is a parent of the video_00 pad.
>
> >
> > Then I tried:
> >
> > gst-launch filesrc location=mpeg2.mpg ! mpegdemux ! fakesink
> >
> > and got:
> >
> > Setting pipeline to PAUSED ...
> > Pipeline is PREROLLING ...
> > ERROR: from element /pipeline0/filesrc0: Internal data flow error.
> > Additional debug info:
> > gstbasesrc.c(2099): gst_base_src_loop (): /pipeline0/filesrc0:
> > streaming task paused, reason not-linked (-1)
> > ERROR: pipeline doesn't want to preroll.
> > Setting pipeline to NULL ...
> > FREEING pipeline ...
> >
> I am not very much sure of this, as this should have worked fine.
> Please try giving the caps filter ( not a good practice.) before mpeg2demux.
>
> Hope this will help you.......
> >
> >
> > I know this question may be too simple to you but please help me...
> >
> > Thank you!
> > Yue Li
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
>
>
>
> --
> Manish Rana
> Software Engg.
> Handset Technology Solution,
> Sasken Comm. Tech.
> Bangalore,India

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel