How can I figure out if two caps are compatible

Ugly Face xuchangxue365812 at 126.com
Wed Dec 4 22:26:36 PST 2013


I have two pads with caps:

for srcpad:
caps are video/x-raw-yuv, format=(string)"\(fourcc\)NV21", width=(int)320,
height=(int)240, framerate=(fraction)[ 0/1, 2147483647/1 ]

for sinkpad:
caps are video/x-raw-yuv, width=(int)[ 1, 2147483647 ], height=(int)[ 1,
2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], format=(fourcc){
I420, NV12, NV21, YV12, YUY2, Y42B, Y444, YUV9, YVU9, Y41B, Y800, Y8  ,
GREY, Y16 , UYVY, YVYU, IYU1, v308, AYUV, A420 }; video/x-raw-rgb,
width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ],
framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)24, depth=(int)24,
endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280,
blue_mask=(int)255; video/x-raw-rgb, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ],
bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)255,
green_mask=(int)65280, blue_mask=(int)16711680; video/x-raw-rgb,
width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ],
framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)32, depth=(int)24,
endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680,
blue_mask=(int)65280; video/x-raw-rgb, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ],
bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680,
green_mask=(int)65280, blue_mask=(int)255; video/x-raw-rgb, width=(int)[ 1,
2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1,
2147483647/1 ], bpp=(int)32, depth=(int)24, endianness=(int)4321,
red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216;
video/x-raw-rgb, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647
], framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)32, depth=(int)24,
endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(int)16711680; video/x-raw-rgb, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ],
bpp=(int)16, depth=(int)16, endianness=(int)1234, red_mask=(int)63488,
green_mask=(int)2016, blue_mask=(int)31; video/x-raw-rgb, width=(int)[ 1,
2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1,
2147483647/1 ], bpp=(int)16, depth=(int)15, endianness=(int)1234,
red_mask=(int)31744, green_mask=(int)992, blue_mask=(int)31;
video/x-raw-rgb, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647
], framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)8, depth=(int)8;
video/x-raw-gray, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647
], framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)8, depth=(int)8;
video/x-raw-gray, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647
], framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)16, depth=(int)16,
endianness=(int)4321; video/x-raw-gray, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ],
bpp=(int)16, depth=(int)16, endianness=(int)1234; video/x-raw-rgb,
width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ],
framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)32, depth=(int)32,
endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680,
blue_mask=(int)65280, alpha_mask=(int)255; video/x-raw-rgb, width=(int)[ 1,
2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1,
2147483647/1 ], bpp=(int)32, depth=(int)32, endianness=(int)4321,
red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255,
alpha_mask=(int)-16777216; video/x-raw-rgb, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ],
bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)65280,
green_mask=(int)16711680, blue_mask=(int)-16777216, alpha_mask=(int)255;
video/x-raw-rgb, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647
], framerate=(fraction)[ 0/1, 2147483647/1 ], bpp=(int)32, depth=(int)32,
endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(int)16711680, alpha_mask=(int)-16777216**

I think the sink are more capable than the src , so they can link eack other
. Howerver ,  It end up with error "caps not compatible" . I don't  know
what to do , and it make me crazy.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-can-I-figure-out-if-two-caps-are-compatible-tp4663865.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list