GNOME Bugzilla – Bug 351825
[qtdemux] doesn't set proper caps for RGB video
Last modified: 2006-09-28 12:11:55 UTC
I got this error message while trying to open a quicktime video in Pitivi. GStreamer encountered a general stream error. qtdemux.c(1404): gst_qtdemux_loop (): /smartfilebin-file:///media/DISK4_VOL1/My%20Movies/Stock%20Footage/earth_c.mov/file:///media/DISK4_VOL1/My%20Movies/Stock%20Footage/earth_c.mov-0/decodebin1/qtdemux1: streaming stopped, reason not-negotiated The Quicktime movie was on my NTFS Windows XP partition.
Sorry, I just looked and realized this was on my external USB drive. Just the same I'm fairly certain it was also an NTFS drive. Because of the error I copied the file directly to my Ubuntu Linux partition to see what happened. I got a similar error: qtdemux.c(1404): gst_qtdemux_loop (): /smartfilebin-file:///home/chris/Desktop/earth_c.mov/file:///home/chris/Desktop/earth_c.mov-0/decodebin3/qtdemux3: streaming stopped, reason not-negotiated Therefore I think it can be safely said that it has nothing to do with the USB drive...
could you run pitivi from the command line with $ export GST_DEBUG=*:5 $ export GST_DEBUG_NO_COLOR=1 $ pitivi 2> dbg.log ... produce error ... $ bzip2 dbg.log and attach dbg.log.bz2 If the error is also reproducable with $ gst-launch-0.10 playbin uri=file:///path/to/file.mov the log of that would do as well (instead of pitivi).
Created attachment 71117 [details] debug log
Above is the dbg.log.bz2 file, although the dbg.log appears to be empty. I'm relatively new to Linux so there is a chance I did something wrong. Here's what I got doing the 2nd method: chris@chris-desktop:~$ gst-launch-0.10 playbin uri=file:///media/DISK4_VOL1/My%20Movies/Stock%20Footage/earth_c.mov Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /playbin0/preroll_video_src0: Internal data flow error. Additional debug info: gstqueue.c(783): gst_queue_push_one (): /playbin0/preroll_video_src0: streaming stopped, reason not-negotiated ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ...
Sorry, I fixed the log. It's too big to upload here, when I get back in an hour or so I'll upload it to my site. For now though disregard the attachment that's included.
http://comitar.com/chris/downloads/dbg.log.bz2
> http://comitar.com/chris/downloads/dbg.log.bz2 Thanks for that, the server seems to have second thoughts about wanting to serve the file though and returns this: Warning: Unexpected character in input: '' (ASCII=4) state=1 in /home/.giddy/comitar/public_html/chris/downloads/dbg.log.bz2 on line 703 Parse error: syntax error, unexpected T_STRING in /home/.giddy/comitar/public_html/chris/downloads/dbg.log.bz2 on line 703
Oh jeez, I'm sorry. I forgot to add the bz2 mime-type. I just fixed it (and tested it this time!) so it downloads now.
Thanks, works now. Any chance you could also make the video file available somewhere? Looks at first glance like it fails because qtdemux doesn't use proper RGB caps for the video streams: gst_qtdemux_add_stream:<qtdemux0> setting caps video/x-raw-rgb, endianness=(int)4321, width=(int)720, height=(int)576, framerate=(fraction)25/1 and then ffmpegcolorspace rejects the caps in its setcaps function (there should be mask fields for the red/green/blue/alpha channels and bpp/depth fields too).
I would put the video online, however it is 989.6 MB (1037633465 bytes). I can't find where I got it either (I'm pretty sure it was the ESA website but searching there hasn't helped).
can you try again with latest HEAD? I commited the following possible fix: * gst/qtdemux/qtdemux.c: (gst_qtdemux_add_stream), (qtdemux_parse), (qtdemux_node_dump_foreach), (qtdemux_parse_trak), (qtdemux_video_caps), (qtdemux_audio_caps): Some more constification. Fix some paletted data formats again. Fix ulaw/alaw in qt. Set correct caps for raw RGB. Add support for yuv2, which is like Yuv2. Add support for raw audio with the NONE fourcc, which is like raw.
Tested this with http://samples.mplayerhq.hu/raw-video/testclip3-uncompressed_rgb.mov Doesn't work with qtdemux from ubuntu dapper, works fine with qtdemux from CVS or edgy. Hence closing as FIXED. Please re-open if you still have problems with qtdemux from CVS or (or with gst-plugins-bad 0.10.4 once it is released).