GNOME Bugzilla – Bug 161726
[ffmpegcolorspace] does not handle x-raw-rgb 24/32 BE _RGB
Last modified: 2005-01-08 15:44:10 UTC
got 3 small dv samples i can play them with gst-player, and the two following pipelines, but not with totem (only audio works in totem) filesrc location=SMPTEBars.dv ! decodebin ! xvimagesink (image is ok, dvdec gives YUY2) filesrc location=SMPTEBars.dv ! decodebin ! alsasink (sound is ok) but with totem : (notice it is RGB here, not yuv) ** (totem:15018): WARNING **: could not link video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)720, height=(int)480, pixel-aspect-ratio=(fraction)80/89, framerate=(double)29.997 (totem:15018): GStreamer-WARNING **: element thread_abin claimed state-change success,but state didn't change to PLAYING. State is PAUSED (NONE_PENDING pending), fix the element attaching the 3 DV files asap
Created attachment 35019 [details] 16x9.dv: DIF (DV) movie file (NTSC)
Created attachment 35020 [details] 4x3.dv: DIF (DV) movie file (NTSC)
the most interesting is too big to be attached would upload it now to ronald's FTP account (/dv) SMPTEBars.dv: DIF (DV) movie file (NTSC)
That endianness is, say, interesting.
looking at dvdec caps, endianness is always "endianness: 4321", for 24 / 32 RGB so, what is so weird ? what's strange is that this pipeline works : gst-launch-0.8 filesrc location=161726-1.dv ! decodebin ! xvimagesink
Fixed.
i'll try to fix dvdec caps to use BE tonight
problem found by ronald : dvdec 32bit format is 32/32 BE _RGB, which is not correct it should at least be 24/32 BE _RGB as it has no alpha and 8bits are unused but even when making it 24/32 BE _RGB, ff[mpeg]colorspace can't handle it, because it only supports BE BGR_ (it supports both 24/24 BE and LE but only one 24/32)
indeed, dvdec caps were plain wrong, dvdec outputs real RGBA (well, ARGB) i saw that after i implemented BGR32 and BGRA in ffmpegcolorspace so, both implemented in ffmpegcolorspace and dvdec caps fixed. closing