This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I am using GStreamer payer on AM335X EVM. But it is not work.

We using GStreamer command line follow as:

> gst-launch-0.10 -v filesrc location=HistoryOfTI-480p.264 ! h264parse ! ffdec_h264 ! ffmpegcolorspace ! fbdevsink device=/dev/fb0

Error meaasge follow as:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, width=(int)360, height=(int)640, stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = video/x-h264, width=(int)360, height=(int)640, stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = video/x-raw-yuv, width=(int)360, height=(int)640, framerate=(fraction)749/25, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1

(gst-launch-0.10:1391): GStreamer-WARNING **: pad fbdevsink0:sink returned caps which are not a real subset of its template caps

(gst-launch-0.10:1391): GStreamer-WARNING **: pad fbdevsink0:sink returned caps which are not a real subset of its template caps

(gst-launch-0.10:1391): GStreamer-WARNING **: pad fbdevsink0:sink returned caps which are not a real subset of its template caps
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2550): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:src: caps = NULL
/GstPipeline:pipeline0/ffdec_h264:ffdec_h2640.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = NULL
Freeing pipeline ...

Please help check the issue on AM335x EVB.

  • Hello Hsu,

    Please apply the attached patch to gst-plugins-bad which will fix the issue with colordepth. Please rename the '.txt' extension to '.patch'. Thank you.

    Regards, Punya

    From ec785d544f417aa2d88f8803e4392ff02ab424ae Mon Sep 17 00:00:00 2001
    From: Punya Prakash <pprakash@ti.com>
    Date: Fri, 4 Nov 2011 13:03:57 -0500
    Subject: [PATCH]  gstfbdevsink: Fix depth value for GST_VIDEO_CAPS_RGB_15
    
    RGB color format does not have any alpha components, adding alpha length to depth could yield wrong results.
    
    Signed-off-by: Punya Prakash <pprakash@ti.com>
    ---
     sys/fbdev/gstfbdevsink.c |    3 +--
     1 files changed, 1 insertions(+), 2 deletions(-)
    
    diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c
    index 8925f3d..568f091 100644
    --- a/sys/fbdev/gstfbdevsink.c
    +++ b/sys/fbdev/gstfbdevsink.c
    @@ -185,8 +185,7 @@ gst_fbdevsink_getcaps (GstBaseSink * bsink)
           "bpp", G_TYPE_INT, fbdevsink->varinfo.bits_per_pixel,
           "depth", G_TYPE_INT, fbdevsink->varinfo.red.length +
           fbdevsink->varinfo.green.length +
    -      fbdevsink->varinfo.blue.length +
    -      fbdevsink->varinfo.transp.length,
    +      fbdevsink->varinfo.blue.length,
           "endianness", G_TYPE_INT, endianness,
           "red_mask", G_TYPE_INT, rmask,
           "green_mask", G_TYPE_INT, gmask, "blue_mask", G_TYPE_INT, bmask, NULL);
    -- 
    1.7.0.4
    
    

  • Hi Punya,

    I am using gstreamer under am335x platform. i am getting the image preview on my lcd(using this command :

    gst-launch -e v4l2src ! video/x-raw-yuv,width=352,height=288,framerate=30/1 ! ffmpegcolorspace ! fbdevsink device=/dev/fb0

    ).

    how to take snap shot(jpg/png) and video(mpeg).

    Thanks