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 669579 - [0.11] - strange behaviour with uridecodebin and decodebin
[0.11] - strange behaviour with uridecodebin and decodebin
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.11.x
Other Linux
: Normal normal
: git master
Assigned To: Christian Fredrik Kalager Schaller
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-07 15:38 UTC by Christian Fredrik Kalager Schaller
Modified: 2012-02-09 09:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PNG showing pipeline (503.83 KB, image/png)
2012-02-07 15:38 UTC, Christian Fredrik Kalager Schaller
Details
log of failed remux decodebin:5 (4.88 KB, application/x-bzip)
2012-02-08 09:21 UTC, Christian Fredrik Kalager Schaller
Details
GST_DEBUG=decodebin:9 log (9.08 KB, application/x-bzip)
2012-02-08 10:20 UTC, Christian Fredrik Kalager Schaller
Details
log of working gst-launch pipeline remuxing (7.50 KB, application/x-bzip)
2012-02-08 11:45 UTC, Christian Fredrik Kalager Schaller
Details
GST_DEBUG_OBJECT (dbin, "caps %" GST_PTR_FORMAT " decodebin2 caps %" GST_PTR_FORMAT, caps, dbin->caps); added to code (8.88 KB, application/x-bzip)
2012-02-08 14:45 UTC, Christian Fredrik Kalager Schaller
Details

Description Christian Fredrik Kalager Schaller 2012-02-07 15:38:38 UTC
Created attachment 206992 [details]
PNG showing pipeline

Attached is png showing what happens when I try to remux a vorbis file in Transmageddon. As you see from the image the audio caps is set on uridecodebin, but it seems on decodebin the audiocaps is set back to audio/x-raw.

What I do not understand though is that when I try to do this with gst-launch:
gst-launch-0.11 -v uridecodebin uri="file:///home/cschalle/Videos/output.ogg" caps="audio/x-vorbis" ! oggmux ! filesink location="test.ogg"

It seems to do the right thing.
Comment 1 Christian Fredrik Kalager Schaller 2012-02-07 15:41:36 UTC
One important point, the attached png has the streamheader caps edited out of the dot file to make the png viewable, so the streamheader value is set in the caps statement of uridecodebin even if this png doesn't say so.
Comment 2 Sebastian Dröge (slomo) 2012-02-08 08:21:02 UTC
Could you get a debug log of both runs with GST_DEBUG=decodebin:5 (at least)?
Comment 3 Christian Fredrik Kalager Schaller 2012-02-08 09:21:53 UTC
Created attachment 207070 [details]
log of failed remux decodebin:5
Comment 4 Sebastian Dröge (slomo) 2012-02-08 09:43:45 UTC
Hm, the debug output from gstdecodebin2.c:2511 is missing. Could you try with GST_DEBUG=decodebin:9 or if everything else fails with GST_DEBUG=*:9 ? :)
Comment 5 Christian Fredrik Kalager Schaller 2012-02-08 10:20:11 UTC
Created attachment 207077 [details]
GST_DEBUG=decodebin:9 log
Comment 6 Christian Fredrik Kalager Schaller 2012-02-08 11:45:27 UTC
Created attachment 207091 [details]
log of working gst-launch pipeline remuxing
Comment 7 Christian Fredrik Kalager Schaller 2012-02-08 14:45:10 UTC
Created attachment 207108 [details]
GST_DEBUG_OBJECT (dbin, "caps %" GST_PTR_FORMAT " decodebin2 caps %" GST_PTR_FORMAT, caps, dbin->caps); added to code
Comment 8 Christian Fredrik Kalager Schaller 2012-02-08 15:28:46 UTC
Ok, so the problem was that I set uridecodebin to state PAUSED before setting the caps attribute. When I set the attribute first, then change the state things works fine. Is this still a bug? or is it simply not allowed to set attributes once an element has been set to PAUSED?
Comment 9 Christian Fredrik Kalager Schaller 2012-02-08 15:40:26 UTC
Since I am expecting this issue to be resolved as an application error I have filled a new bug for the current problem:
https://bugzilla.gnome.org/show_bug.cgi?id=669683
Comment 10 Sebastian Dröge (slomo) 2012-02-09 09:28:31 UTC
In the case of uridecodebin it is not allowed to set the caps property after setting the element to PAUSED. That's not a bug. Let's close this bug then and handle everything else in the other bug?