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 666168 - [0.11] - not able to get pad from encodebin
[0.11] - not able to get pad from encodebin
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 0.11.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-14 12:44 UTC by Christian Fredrik Kalager Schaller
Modified: 2012-02-18 20:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GST_DEBUG log (306.84 KB, application/x-bzip)
2011-12-14 16:35 UTC, Christian Fredrik Kalager Schaller
Details

Description Christian Fredrik Kalager Schaller 2011-12-14 12:44:24 UTC
I got the following code:

origin = src_pad.query_caps(None)
c = origin.to_string()
if not c.startswith("text/"):
    if not (c.startswith("video/") and (self.videocaps == False)):
        print "creating sinkpad"
        print "origin is " + str(c)
        sinkpad = self.encodebin.emit("request-pad", origin)
        print "src_pad is " +str(src_pad)
        print "sinkpad is " +str(sinkpad)
        src_pad.link(sinkpad)

But it seems to fail with the following error:


creating sinkpad
origin is audio/x-raw, format=(string)F32LE, rate=(int)44100, channels=(int)2
src_pad is <GhostPad object at 0x922d234 (GstGhostPad at 0x8ed3b00)>
sinkpad is None
Traceback (most recent call last):
  • File "/home/cschalle/devel/transmageddon/src/transcoder_engine.py", line 364 in OnDynamicPad
    src_pad.link(sinkpad)
  • File "/usr/lib/python2.7/site-packages/gi/types.py", line 43 in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value

Comment 1 Christian Fredrik Kalager Schaller 2011-12-14 16:35:45 UTC
Created attachment 203490 [details]
GST_DEBUG log

Adding a GST_DEBUG log of issue
Comment 2 Christian Fredrik Kalager Schaller 2011-12-14 16:41:56 UTC
I found this weird message in the debug.log:
        encodebin gstencodebin.c:1712:create_elements_and_pads:<encodebin0>^[[00m error: No available muxer for format application/ogg

It is weird because gst-inspect-0.11 oggmux do show there is a muxer
Comment 3 Vincent Penquerc'h 2011-12-14 17:25:22 UTC
Found in logs:

gst_preset_default_load_preset:<muxer> no preset named 'Normal'

The muxer is found, but no preset named "Normal" sems found in the prs file.
Not sure if that's a bug in the prs file, or in the code that loads it.
Comment 4 Christian Fredrik Kalager Schaller 2011-12-14 20:17:09 UTC
commit 0d552ae53d3d340de033311c2b8c7c11ce09b6b6
Author: Christian Fredrik Kalager Schaller <christian.schaller@collabora.co.uk>
Date:   Wed Dec 14 17:34:55 2011 +0000

    Fix 666168, add missing allow-None to encodebin APIs