[gst-devel] appsrc to filesink

Andres Colubri andres.colubri at gmail.com
Tue Feb 3 09:28:30 CET 2009


Many thanks for the comments. I corrected both caps (the one used for 
ffmpegcolorspace and the one in appsrc). This is how they look like now:

video/x-raw-yuv,format=(fourcc)I420,width=80,height=60 (for 
ffmpegcolorspace)
video/x-raw-rgb,width=80,height=60,bpp=32,endianness=4321,depth=24,red_mask=65280,green_mask=16711680,blue_mask=-16777216,framerate=30/1 
(for appsrc)

I also set the is-live property of appsrc to true.

The program runs ok and gives no error. However, the resulting avi file 
is completely empty (0 bytes). I also tried ffmpegcolorspace without 
caps, and appsrc without is-live=true, but the same result.

Do you suggest any other change/test in the code to try to locate where 
the problem is?

I attached the latest version of the example, just in case anyone wants 
to take a look.

Again, thanks a lot.

> Hi,
>   
>> appsrc name=testsource caps=test_caps ! ffmpegcolorspace ! 
>> video/x-raw-yuv, width=80, height=60, bpp=32, depth=24 ! queue ! 
>>     
>
> The bpp/depth fields don't really make sense here. YUV caps usually look
> like:
>
>  video/x-raw-yuv,format=(fourcc)I420,width=80,height=60
>
> with bits per pixel etc. implied by the pixel layout/format used. See:
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-types-definitions.html#table-video-types
>
> for more info. (You shouldn't *need* to specify a format here though,
> ffmpegcolorspace should negotiate to one supported by
> downstream/xvidenc).
>
>   
>> videorate ! video/x-raw-yuv, framerate=30/1 ! xvidenc ! queue ! avimux ! 
>> queue ! filesink location=test.avi
>>
>> where test_caps = 
>> "video/x-raw-rgb,width=80,height=60,bpp=32,depth=24,framerate=30/1"
>>     
>
> These RGB caps are incomplete. You need to also specify:
>  - red_mask
>  - green_mask
>  - blue_mask
>  - endianness
>
> ffmpegcolorspace should reject these caps with a NOT_NEGOTIATED flow
> return. Not sure what appsrc does with that, but I'd guess it would post
> an error message on the pipeline's bus.
>
> Cheers
>  -Tim
>
>   


>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>   

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: appsrc_filesink.c
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090203/f2567ff1/attachment.asc>


More information about the gstreamer-devel mailing list