Appsrc : Error in the internal data flow

Matias Hernandez Arellano msdark at archlinux.cl
Wed Mar 30 07:38:26 PDT 2011


El 30-03-2011, a las 8:54, Tim-Philipp Müller escribió:

> On Wed, 2011-03-30 at 09:37 -0400, Matias Hernandez Arellano wrote:
> 
> Hi,
> 
>> sprintf(pipe_str,"appsrc name=mysource ! video/x-raw-bgr,(...) ! ffmpegcolorspace ! (...)
>>  (...)
>> /* set the caps on the source */
>> caps = gst_caps_new_simple ("video/x-raw-bgr",
>> "depth",G_TYPE_INT,frame->depth,
>> "width", G_TYPE_INT, frame->width,
>> "height", G_TYPE_INT, frame->height,
>> NULL);
> 
> This ("video/x-raw-bgr") is not a media type used elsewhere in
> GStreamer. It should be "video/x-raw-rgb", and then you use the various
> mask and endianness fields to express the ordering.
> 
> There are some useful utility functions for that in libgstvideo:
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#gst-video-format-new-caps
> 
> Cheers
> -Tim
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



Well i'm trying to use video/x-raw-yuv like caps .. (i convert my images to YUV color space )...
But i have the same problem: Error from element mysource: Error in the internal data flow.

 sprintf(pipe_str,"appsrc name=mysource ! video/x-raw-yuv,width=%d,height=%d ! ffmpegcolorspace ! jpegenc ! avimux ! filesink location=video.avi    ",frame->width,frame->height);
    
 caps = gst_caps_new_simple ("video/x-raw-yuv",
    //"depth",G_TYPE_INT,frame->depth,
     "width", G_TYPE_INT, frame->width,
     "height", G_TYPE_INT, frame->height,
     NULL);

Thanks in advance...

Matías Hernandez Arellano
Ingeniero de Software/Proyectos en VisionLabs S.A
CDA Archlinux-CL
www.msdark.archlinux.cl






More information about the gstreamer-devel mailing list