mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +00:00
a8fca8d040
User often want to set encoder properties on encoding profiles, this introduces a way to easily 'preset' properties when defining the profile. This uses GstStructure to define those properties the same way it is done in `splitmux` for example as it makes simple to handle. This also defines a more complex structure type where we can map a set of properties to set depending on the muxer/encoder factory that has been picked by EncodeBin so it is quite flexible. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1002>
20 lines
No EOL
488 B
Text
20 lines
No EOL
488 B
Text
meta,
|
|
seek=false,
|
|
handles-states=true,
|
|
args = {
|
|
"audiotestsrc num-buffers=4 ! encodebin name=ebin profile=\"vorbisenc|element-properties,managed=true,name=audioencoder\" ! fakesink",
|
|
}
|
|
|
|
pause
|
|
check-properties, audioencoder::managed=true
|
|
|
|
set-properties, ebin::profile::element-properties=[
|
|
element-properties-map, map = {
|
|
[vorbisenc, managed=false],
|
|
[somethingelse, whatever=false],
|
|
},
|
|
]
|
|
|
|
check-properties, audioencoder::managed=false
|
|
|
|
stop |