GNOME Bugzilla – Bug 666168
[0.11] - not able to get pad from encodebin
Last modified: 2012-02-18 20:16:23 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):
+ Trace 229274
src_pad.link(sinkpad)
return info.invoke(*args, **kwargs)
Created attachment 203490 [details] GST_DEBUG log Adding a GST_DEBUG log of issue
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
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.
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