[gst-devel] Playing yuv/rgb files on Arm using ximagesink

Gaurav Singh gausinghnsit at gmail.com
Mon Aug 6 12:21:05 CEST 2007


Hi guys,
I finally figured out how to play the rgb file:

gst-launch-0.10 filesrc
location=/snowboard-jum-352x288x75.rgbblocksize=304128 !
video/x-raw-rgb,width=352,height=288,depth=24,framerate='(fraction)'15/1,bpp=24,endianness=4321,red_mask=255,green_mask=65280,blue_mask=16711680
! ffmpegcolorspace !
video/x-raw-rgb,width=352,height=288,framerate='(fraction)'15/1 ! ximagesink


if ffmpegcolorspace is nt mentioned the pipeline:

gst-launch-0.10 filesrc
location=/snowboard-jum-352x288x75.rgbblocksize=304128 !
video/x-raw-rgb,width=352,height=288,framerate='(fraction)'15/1 ! ximagesink
&

The video doesnt display correctly.


What exactly does ffmpegcolorspace do ? there is no colorspace conversion
reqd. (rgb is playable on ximagesink) - is it reqd for some bpp conversion(
my display is configured to 16 bpp and the video is at 24 bpp)

Thanks and Cheers
Gaurav

On 8/3/07, Gaurav Singh <gausinghnsit at gmail.com> wrote:
>
> Hi Stefan, Hi Tim,
> I tried the given pipeline and it worked after 1 modification. I removed
> the depth field
>
> gst-launch-0.10 filesrc location=/birch.rgb blocksize=12672 !
> video/x-raw-rgb,framerate='(fraction)'75/1,width=88,height=72 ! ximagesink
>
> gst-inspect ximagesink gives:
> sink
>     Capabilities:
>       video/x-raw-rgb
>               framerate: [ 0/1, 2147483647/1 ]
>                   width: [ 1, 2147483647 ]
>                  height: [ 1, 2147483647 ]
>
> only these four caps should be specified in the caps filter.
>
> The prb i face now is of bpp. If my image is 32 bpp and my kernel
> configured to 16 bpp the image becomes garbled. I suspect both shud match
> for a clear image??
>
> Thanks and Cheers
> Gaurav
>
>  On 8/2/07, Stefan Kost <ensonic at hora-obscura.de> wrote:
> >
> > hi,
> >
> > I see two things missing. As the rgbfile has raw data, you need to
> > specify the
> > bytesize of one frame in the blocksize property of filesrc. Then I would
> > also
> > give a framerate and a bit-depth in the capsfilter,
> >
> > gst-launch-0.10 filesrc location=/birch.rgb blocksize=57024 !
> > video/x-raw-rgb,width=144,height=132,depth=24,framerate='(fraction)'15/1
> > !
> > ximagesink
> >
> > Stefan
> >
> > Gaurav Singh wrote:
> > > Hi,
> > >
> > > I have cross compiled gstreamer 0.10.13 and X for arm and am trying to
> > > play a rgb file using ximagesink. The pipeline used is:
> > >
> > > gst-launch-0.10 filesrc location=/birch.rgb !
> > > video/x-raw-rgb,width=144,height=132 ! ximagesink
> > > The following messages are received :
> > >
> > > Setting pipeline to PAUSED ...
> > > Pipeline is PREROLLING ...
> > >
> > > (gst-launch-0.10:861): GStreamer-CRITICAL **: gst_caps_get_structure:
> > > assertion `GST_IS_CAPS (caps)' failed
> > >
> > > (gst-launch-0.10:861): GStreamer-CRITICAL **: gst_structure_get_int:
> > > assertion `structure != NULL' failed
> > > ERROR: from element /pipeline0/ximagesink0: Failed to create output
> > > image buffer of 0x0 pixels
> > > Additional debug info:
> > > ximagesink.c(1601): gst_ximagesink_show_frame ():
> > /pipeline0/ximagesink0:
> > > XServer allocated buffer size did not match input buffer
> > > ERROR: pipeline doesn't want to preroll.
> > > Setting pipeline to NULL ...
> > > FREEING pipeline ...
> > >
> > >
> > >
> > > The following pipeline works fine:
> > >
> > >  gst-launch-0.10 videotestsrc ! video/x-raw-rgb,width=144,height=132 !
> > > ximagesink
> > >
> > > Also playing yuv files using ffmpegcolorspace:
> > >
> > > gst-launch-0.10 filesrc location=/capture1.yuv ! video/x-raw-yuv !
> > > ffmpegcolorspace ! ximagesink
> > >
> > > says:
> > >
> > > Setting pipeline to PAUSED ...
> > > Pipeline is PREROLLING ...
> > > ERROR: from element /pipeline0/ffmpegcsp0: not negotiated
> > > Additional debug info:
> > > ../../../../libs/gst/base/gstbasetransform.c(1497):
> > > gst_base_transform_handle_buffer (): /pipeline0/ffmpegcsp0:
> > > not negotiated
> > > ERROR: pipeline doesn't want to preroll.
> > > Setting pipeline to NULL ...
> > > FREEING pipeline ...
> > >
> > > I have tried changing caps of ximagesink to All but the prb is
> > > unresolved. Please advise!
> > >
> > >
> > >
> > > Have a Nice Day!
> > >
> > > Gaurav
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > >
> > -------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >>   http://get.splunk.com/
> > >
> > >
> > >
> > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > gstreamer-devel at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070806/01fcdd70/attachment.htm>


More information about the gstreamer-devel mailing list