Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import gi
- gi.require_version('Gst', '1.0')
- from gi.repository import Gst
- Gst.init(None)
- cap = Gst.caps_from_string('audio/x-raw, rate=[1, 2147483647]')
- print(cap.get_structure(0)['rate'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement