gstreamer/tests/validate/encodebin/set-encoder-properties.validatetest
Thibault Saunier a8fca8d040 encodebin: Add APIs to set element properties on encoding profiles
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>
2021-02-10 15:56:26 +00:00

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