Rendering of raw YUV file

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

Rendering of raw YUV file

Andrey Boyko
Hi all!

I try to save video stream in raw YUV format to disk using following command:
gst-launch -v filesrc location=/home/andreib/docs/MPG\ TS/football.ts ! mpegtsdemux program-number=3 ! mpeg2dec ! filesink location=sink.yuv

I get file sink.yuv which looks convenient at first glance (appropriate size etc.). Then I try to play it by command:
gst-launch -v filesrc location=sink.yuv ! 'video/x-raw-yuv, format=(fourcc)I420, width=(int)704, height=(int)480, pixel-aspect-ratio=(fraction)10/11, framerate=(fraction)30000/1001' ! xvimagesink

and I get some mess in output window. Straight playing:
gst-launch -v filesrc location=/home/andreib/docs/MPG\ TS/football.ts ! mpegtsdemux program-number=3 ! mpeg2dec ! xvimagesink

works fine. Properties for file format is getting from debug output of recording command.

What I'm doing wrong?

P.S.: If anybody wants to reproduce exactly same actions that I do then source TS file is here: http://www.dododge.net/roku/hd-test-streams/football.ts

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Rendering of raw YUV file

Tim-Philipp Müller-2
On Fri, 2009-03-13 at 10:50 +0300, Andrey Boyko wrote:

> I get file sink.yuv which looks convenient at first glance
> (appropriate size etc.). Then I try to play it by command:
> gst-launch -v filesrc location=sink.yuv ! 'video/x-raw-yuv,
> format=(fourcc)I420, width=(int)704, height=(int)480,
> pixel-aspect-ratio=(fraction)10/11, framerate=(fraction)30000/1001' !
> xvimagesink

Use the videoparse element (or set the blocksize property on filesrc to
the exact framesize).

Cheers
 -Tim



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel