[gst-devel] missing caps in ffmpeg

Philip de Nier philip.denier at rd.bbc.co.uk
Mon Sep 12 02:31:18 CEST 2005


Hi

Note that this email has been sent twice because the first sent on 5/9 
didn't seem to arrive; it finally arrived on the 11th!
Ronald Bultje replied to the (second) email on 6/9, pointing out why the 
caps returned by gst-inspect is different from those returned by the 
gst_pad_get_caps function. He suggested I use a ffmpegcolorspace element. I 
tried "gst-launch filesrc location=test.dv ! decodebin ! ffmpegcolorspace ! 
ffenc_mpeg2video ! filesink location=test.raw" but that resulted in a 
segmentation fault.


At 14:22 11/09/2005, Thomas Vander Stichele wrote:


[...]

> > It should return all 11 caps returned by "gst-inspect ffenc_mpeg2video"?
>
>What 11 caps ? Here's what I get:
>
>Pad Templates:
>   SRC template: 'src'
>     Availability: Always
>     Capabilities:
>       video/mpeg
>                   width: [ 16, 4096 ]
>                  height: [ 16, 4096 ]
>               framerate: [ 0, 1.7976931348623157e+308 ]
>             mpegversion: 2
>            systemstream: false
>
>   SINK template: 'sink'
>     Availability: Always
>     Capabilities:
>       video/x-raw-rgb
>       video/x-raw-yuv

I also get that when I compile using ffmpeg version 8.6 with gstreamer 
version 8.11. However, for gstreamer version 8.9 (which comes with SuSE 
9.3) I could only compile ffmpeg version 8.3 and the caps returned by 
gst-inspect are:

Pad Templates:
   SRC template: 'src'
     Availability: Always
     Capabilities:
       video/mpeg
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
             mpegversion: 2
            systemstream: false

   SINK template: 'sink'
     Availability: Always
     Capabilities:
       video/x-raw-yuv
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                  format: I420
       video/x-raw-yuv
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                  format: YUY2
       video/x-raw-rgb
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                     bpp: 24
                   depth: 24
                red_mask: 16711680
              green_mask: 65280
               blue_mask: 255
              endianness: 4321
       video/x-raw-rgb
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                     bpp: 24
                   depth: 24
                red_mask: 255
              green_mask: 65280
               blue_mask: 16711680
              endianness: 4321
       video/x-raw-yuv
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                  format: Y42B
       video/x-raw-rgb
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                     bpp: 32
                   depth: 24
                red_mask: 65280
              green_mask: 16711680
               blue_mask: -16777216
              endianness: 4321
       video/x-raw-yuv
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                  format: YUV9
       video/x-raw-yuv
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                  format: Y41B
       video/x-raw-rgb
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                     bpp: 16
                   depth: 16
                red_mask: 63488
              green_mask: 2016
               blue_mask: 31
              endianness: 1234
       video/x-raw-rgb
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                     bpp: 16
                   depth: 15
                red_mask: 31744
              green_mask: 992
               blue_mask: 31
              endianness: 1234
       video/x-raw-rgb
                   width: [ 16, 4096 ]
                  height: [ 16, 4096 ]
               framerate: [ 0, 1.7976931348623157e+308 ]
                     bpp: 8
                   depth: 8
              endianness: 1234




> > I've tried a simple pipeline such as "gst-launch filesrc 
> location=test.dv !
> > decodebin ! ffenc_mpeg2video ! filesink location=test-output" and that 
> also
> > fails.
>
>I'd like to reproduce your problem but I don't have a .dv sample clip.
>Could you try with any of the media provided on
>http://gstreamer.freedesktop.org/media or supply us with a (preferably
>small) DV test file ?

I've reduced the example .dv file to around 800 kB, so if you want I can 
send it to you (?) via email?

Thanks
Philip








More information about the gstreamer-devel mailing list