get_request_pad from encodebin return None

RiccardoCagnasso riccardo at phascode.org
Tue Oct 9 15:11:04 UTC 2018


Yes, of course

import gi
from time import sleep
from threading import Event

gi.require_version('Gst', '1.0')

from gi.repository import Gst, GstPbutils  # noqa

Gst.init(None)

preset = None

encodebin = Gst.ElementFactory.make('encodebin')

ogg = Gst.Caps.from_string("application/ogg")
cprof = GstPbutils.EncodingContainerProfile("myprofile", None, ogg, None)

vorbis = Gst.Caps.from_string("audio/x-vorbis")
cprof.add_profile(GstPbutils.EncodingAudioProfile(vorbis, preset, vorbis,
0))

encodebin.set_property("profile", cprof)

encodebin.get_request_pad('video_%u') is None

https://pastebin.com/fCwNL258



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list