Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement