Appsrc : Error in the internal data flow

Matias Hernandez Arellano msdark at archlinux.cl
Wed Mar 30 07:15:12 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



thanks for your response ..
I try to use video/x-raw-rgb or video/x-raw-yuv but doesn't work..
I try your advice but to use   gst_video_format_new_caps  i need to know the numerator of pixel aspect ratio and the denominator of pixel aspect ratio but i don't have this information.. so i can do this??

sprintf(pipe_str,"appsrc name=mysource ! video/x-raw-bgr ....... ! ffmpegcolorspace !....");
/*set the caps*/
caps = gst_video_format_new_caps( GST_VIDEO_FORMAT_BGR,frame->width,frame->height,30,1,1,1);
..
..
..



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