After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351825 - [qtdemux] doesn't set proper caps for RGB video
[qtdemux] doesn't set proper caps for RGB video
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.4
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-17 20:36 UTC by Chris Van Patten
Modified: 2006-09-28 12:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
debug log (14 bytes, application/x-bzip)
2006-08-17 23:00 UTC, Chris Van Patten
Details

Description Chris Van Patten 2006-08-17 20:36:08 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.
Comment 1 Chris Van Patten 2006-08-17 20:42:52 UTC
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...
Comment 2 Tim-Philipp Müller 2006-08-17 22:42:49 UTC
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).

Comment 3 Chris Van Patten 2006-08-17 23:00:38 UTC
Created attachment 71117 [details]
debug log
Comment 4 Chris Van Patten 2006-08-17 23:02:03 UTC
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 ...
Comment 5 Chris Van Patten 2006-08-17 23:16:09 UTC
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.
Comment 6 Chris Van Patten 2006-08-18 01:26:33 UTC
http://comitar.com/chris/downloads/dbg.log.bz2
Comment 7 Tim-Philipp Müller 2006-08-18 08:22:14 UTC
> 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 

Comment 8 Chris Van Patten 2006-08-18 15:20:31 UTC
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.
Comment 9 Tim-Philipp Müller 2006-08-18 15:41:23 UTC
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).
Comment 10 Chris Van Patten 2006-08-18 17:00:51 UTC
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).
Comment 11 Wim Taymans 2006-08-21 16:34:39 UTC
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.
Comment 12 Tim-Philipp Müller 2006-09-28 12:11:55 UTC
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).