FLV demuxing and decoding

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

FLV demuxing and decoding

Darren Staples
FLV demuxing and decoding Hi again,

As an experiment I’ve been trying to get flash video (.flv) files to play in an x-window.
I can get a video-test signal to display using: “gst-launch-0.10 videotestsrc ! Ximagesink”, so I know the basic infra-structure is working :)

As for getting .flv files to play I’ve tried variations on: “gst-launch-0.10 filesrc location=file.flv ! flv_demux ! ffdec_flv ! ximagesink”.
But I keep getting an internal data stream error at the flvdemux element.

I have the base, bad and FFMPEG plugins installed.

Is this basic pipeline correct or am I doing something stupid ?

Thanks in advance !

Darren

 

*** FRIEND MTS LIMITED EMAIL CONFIDENTIALITY ***

This email message and any attachments may contain information which is confidential or privileged and is intended for the sole use of the person to whom it is addressed.  If you are not the intended recipient, be aware that any disclosures, copying, distribution or use of the contents is prohibited.  If you have received this email message in error, please notify our office by telephone (+44 (0)121 633 2000) or email ([hidden email]) immediately.  Thank you.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: FLV demuxing and decoding

Sudarshan Bisht
Hi ,,
         Use gst-launch filesrc location=file.flv ! decodebin ! ffmpegcolorspace ! ximagesink , here decodebin automatically links the required plugins .
 


 
On Wed, Jan 7, 2009 at 4:36 PM, Darren Staples <[hidden email]> wrote:
Hi again,

As an experiment I've been trying to get flash video (.flv) files to play in an x-window.
I can get a video-test signal to display using: "gst-launch-0.10 videotestsrc ! Ximagesink", so I know the basic infra-structure is working :)

As for getting .flv files to play I've tried variations on: "gst-launch-0.10 filesrc location=file.flv ! flv_demux ! ffdec_flv ! ximagesink".
But I keep getting an internal data stream error at the flvdemux element.

I have the base, bad and FFMPEG plugins installed.

Is this basic pipeline correct or am I doing something stupid ?

Thanks in advance !

Darren

 

*** FRIEND MTS LIMITED EMAIL CONFIDENTIALITY ***

This email message and any attachments may contain information which is confidential or privileged and is intended for the sole use of the person to whom it is addressed.  If you are not the intended recipient, be aware that any disclosures, copying, distribution or use of the contents is prohibited.  If you have received this email message in error, please notify our office by telephone (+44 (0)121 633 2000) or email ([hidden email]) immediately.  Thank you.


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: FLV demuxing and decoding

Edward Hervey
Administrator
In reply to this post by Darren Staples
Maybe because the files you are trying don't contain FLV1 video but some
other codec ?

  replace flvdemux by decodebin2, it'll do all the magic for you

   Edward

On Wed, 2009-01-07 at 11:06 +0000, Darren Staples wrote:

> Hi again,
>
> As an experiment I’ve been trying to get flash video (.flv) files to
> play in an x-window.
> I can get a video-test signal to display using: “gst-launch-0.10
> videotestsrc ! Ximagesink”, so I know the basic infra-structure is
> working :)
>
> As for getting .flv files to play I’ve tried variations on:
> “gst-launch-0.10 filesrc location=file.flv ! flv_demux ! ffdec_flv !
> ximagesink”.
> But I keep getting an internal data stream error at the flvdemux
> element.
>
> I have the base, bad and FFMPEG plugins installed.
>
> Is this basic pipeline correct or am I doing something stupid ?
>
> Thanks in advance !
>
> Darren
>
>
>  
>
> *** FRIEND MTS LIMITED EMAIL CONFIDENTIALITY ***
>
> This email message and any attachments may contain information which
> is confidential or privileged and is intended for the sole use of the
> person to whom it is addressed.  If you are not the intended
> recipient, be aware that any disclosures, copying, distribution or use
> of the contents is prohibited.  If you have received this email
> message in error, please notify our office by telephone (+44 (0)121
> 633 2000) or email ([hidden email]) immediately.  Thank you.
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: FLV demuxing and decoding

michael smith-6-3
In reply to this post by Darren Staples
On Wed, Jan 7, 2009 at 3:06 AM, Darren Staples <[hidden email]> wrote:

> Hi again,
>
> As an experiment I've been trying to get flash video (.flv) files to play in
> an x-window.
> I can get a video-test signal to display using: "gst-launch-0.10
> videotestsrc ! Ximagesink", so I know the basic infra-structure is working
> :)
>
> As for getting .flv files to play I've tried variations on: "gst-launch-0.10
> filesrc location=file.flv ! flv_demux ! ffdec_flv ! ximagesink".
> But I keep getting an internal data stream error at the flvdemux element.

The suggestions from other people to use decodebin or decodebin2
rather than manually selecting demuxers/decoders are good - you should
do that.

That's not what's causing the problem here though. ximagesink can only
display RGB image data, and most (almost all) video decoders output
some form of YUV data. So, you need to either use a sink that can
directly handle YUV data (like xvimagesink - this is recommended if
you can use it), or you need to convert. The 'ffmpegcolorspace'
element can do this conversion.

For some videos, you'll also need 'videoscale' if you're using
ximagesink, because ximagesink can only display square pixels, and
some videos have non-square pixels.

Mike

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel