mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-21 19:11:02 +00:00
transcriberbin: remove proxy properties on element
Those properties are now exposed on the sink pads, and should be used directly. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1925>
This commit is contained in:
parent
4074f4c275
commit
169f7b762e
2 changed files with 0 additions and 95 deletions
|
@ -7991,18 +7991,6 @@
|
||||||
"type": "GstCaps",
|
"type": "GstCaps",
|
||||||
"writable": true
|
"writable": true
|
||||||
},
|
},
|
||||||
"language-code": {
|
|
||||||
"blurb": "The language of the input stream",
|
|
||||||
"conditionally-available": false,
|
|
||||||
"construct": false,
|
|
||||||
"construct-only": false,
|
|
||||||
"controllable": false,
|
|
||||||
"default": "en-US",
|
|
||||||
"mutable": "playing",
|
|
||||||
"readable": true,
|
|
||||||
"type": "gchararray",
|
|
||||||
"writable": true
|
|
||||||
},
|
|
||||||
"latency": {
|
"latency": {
|
||||||
"blurb": "Amount of milliseconds to allow the transcriber",
|
"blurb": "Amount of milliseconds to allow the transcriber",
|
||||||
"conditionally-available": false,
|
"conditionally-available": false,
|
||||||
|
@ -8031,18 +8019,6 @@
|
||||||
"type": "guint",
|
"type": "guint",
|
||||||
"writable": true
|
"writable": true
|
||||||
},
|
},
|
||||||
"mode": {
|
|
||||||
"blurb": "Which closed caption mode to operate in",
|
|
||||||
"conditionally-available": false,
|
|
||||||
"construct": false,
|
|
||||||
"construct-only": false,
|
|
||||||
"controllable": false,
|
|
||||||
"default": "roll-up2 (2)",
|
|
||||||
"mutable": "playing",
|
|
||||||
"readable": true,
|
|
||||||
"type": "GstTtToCea608Mode",
|
|
||||||
"writable": true
|
|
||||||
},
|
|
||||||
"mux-method": {
|
"mux-method": {
|
||||||
"blurb": "The method for muxing multiple transcription streams",
|
"blurb": "The method for muxing multiple transcription streams",
|
||||||
"conditionally-available": false,
|
"conditionally-available": false,
|
||||||
|
@ -8055,17 +8031,6 @@
|
||||||
"type": "GstTranscriberBinMuxMethod",
|
"type": "GstTranscriberBinMuxMethod",
|
||||||
"writable": true
|
"writable": true
|
||||||
},
|
},
|
||||||
"transcriber": {
|
|
||||||
"blurb": "The transcriber element to use",
|
|
||||||
"conditionally-available": false,
|
|
||||||
"construct": false,
|
|
||||||
"construct-only": false,
|
|
||||||
"controllable": false,
|
|
||||||
"mutable": "ready",
|
|
||||||
"readable": true,
|
|
||||||
"type": "GstElement",
|
|
||||||
"writable": true
|
|
||||||
},
|
|
||||||
"translate-latency": {
|
"translate-latency": {
|
||||||
"blurb": "Amount of extra milliseconds to allow for translating",
|
"blurb": "Amount of extra milliseconds to allow for translating",
|
||||||
"conditionally-available": false,
|
"conditionally-available": false,
|
||||||
|
@ -8079,18 +8044,6 @@
|
||||||
"readable": true,
|
"readable": true,
|
||||||
"type": "guint",
|
"type": "guint",
|
||||||
"writable": true
|
"writable": true
|
||||||
},
|
|
||||||
"translation-languages": {
|
|
||||||
"blurb": "A map of language codes to caption channels, e.g. translation-languages=\"languages, transcript={CC1, 708_1}, fr={708_2, CC3}\" will map the French translation to CC1/service 1 and the original transcript to CC3/service 2",
|
|
||||||
"conditionally-available": false,
|
|
||||||
"construct": true,
|
|
||||||
"construct-only": false,
|
|
||||||
"controllable": false,
|
|
||||||
"default": "languages, transcript=(string)cc1;",
|
|
||||||
"mutable": "playing",
|
|
||||||
"readable": true,
|
|
||||||
"type": "GstStructure",
|
|
||||||
"writable": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rank": "none"
|
"rank": "none"
|
||||||
|
|
|
@ -1388,21 +1388,11 @@ impl ObjectImpl for TranscriberBin {
|
||||||
.default_value(DEFAULT_ACCUMULATE.mseconds() as u32)
|
.default_value(DEFAULT_ACCUMULATE.mseconds() as u32)
|
||||||
.mutable_ready()
|
.mutable_ready()
|
||||||
.build(),
|
.build(),
|
||||||
glib::ParamSpecEnum::builder_with_default("mode", DEFAULT_MODE)
|
|
||||||
.nick("Mode")
|
|
||||||
.blurb("Which closed caption mode to operate in")
|
|
||||||
.mutable_playing()
|
|
||||||
.build(),
|
|
||||||
glib::ParamSpecBoxed::builder::<gst::Caps>("cc-caps")
|
glib::ParamSpecBoxed::builder::<gst::Caps>("cc-caps")
|
||||||
.nick("Closed Caption caps")
|
.nick("Closed Caption caps")
|
||||||
.blurb("The expected format of the closed captions")
|
.blurb("The expected format of the closed captions")
|
||||||
.mutable_ready()
|
.mutable_ready()
|
||||||
.build(),
|
.build(),
|
||||||
glib::ParamSpecObject::builder::<gst::Element>("transcriber")
|
|
||||||
.nick("Transcriber")
|
|
||||||
.blurb("The transcriber element to use")
|
|
||||||
.mutable_ready()
|
|
||||||
.build(),
|
|
||||||
glib::ParamSpecEnum::builder_with_default("caption-source", DEFAULT_CAPTION_SOURCE)
|
glib::ParamSpecEnum::builder_with_default("caption-source", DEFAULT_CAPTION_SOURCE)
|
||||||
.nick("Caption source")
|
.nick("Caption source")
|
||||||
.blurb("Caption source to use. \
|
.blurb("Caption source to use. \
|
||||||
|
@ -1410,24 +1400,12 @@ impl ObjectImpl for TranscriberBin {
|
||||||
of the other source will be dropped by transcriberbin")
|
of the other source will be dropped by transcriberbin")
|
||||||
.mutable_playing()
|
.mutable_playing()
|
||||||
.build(),
|
.build(),
|
||||||
glib::ParamSpecBoxed::builder::<gst::Structure>("translation-languages")
|
|
||||||
.nick("Translation languages")
|
|
||||||
.blurb("A map of language codes to caption channels, e.g. translation-languages=\"languages, transcript={CC1, 708_1}, fr={708_2, CC3}\" will map the French translation to CC1/service 1 and the original transcript to CC3/service 2")
|
|
||||||
.construct()
|
|
||||||
.mutable_playing()
|
|
||||||
.build(),
|
|
||||||
glib::ParamSpecUInt::builder("translate-latency")
|
glib::ParamSpecUInt::builder("translate-latency")
|
||||||
.nick("Translation Latency")
|
.nick("Translation Latency")
|
||||||
.blurb("Amount of extra milliseconds to allow for translating")
|
.blurb("Amount of extra milliseconds to allow for translating")
|
||||||
.default_value(DEFAULT_TRANSLATE_LATENCY.mseconds() as u32)
|
.default_value(DEFAULT_TRANSLATE_LATENCY.mseconds() as u32)
|
||||||
.mutable_ready()
|
.mutable_ready()
|
||||||
.build(),
|
.build(),
|
||||||
glib::ParamSpecString::builder("language-code")
|
|
||||||
.nick("Language Code")
|
|
||||||
.blurb("The language of the input stream")
|
|
||||||
.default_value(Some(DEFAULT_INPUT_LANG_CODE))
|
|
||||||
.mutable_playing()
|
|
||||||
.build(),
|
|
||||||
glib::ParamSpecEnum::builder("mux-method")
|
glib::ParamSpecEnum::builder("mux-method")
|
||||||
.nick("Mux Method")
|
.nick("Mux Method")
|
||||||
.blurb("The method for muxing multiple transcription streams")
|
.blurb("The method for muxing multiple transcription streams")
|
||||||
|
@ -1470,12 +1448,6 @@ impl ObjectImpl for TranscriberBin {
|
||||||
let mut settings = self.settings.lock().unwrap();
|
let mut settings = self.settings.lock().unwrap();
|
||||||
settings.cc_caps = value.get().expect("type checked upstream");
|
settings.cc_caps = value.get().expect("type checked upstream");
|
||||||
}
|
}
|
||||||
"transcriber" => {
|
|
||||||
self.audio_sinkpad.set_property(
|
|
||||||
"transcriber",
|
|
||||||
value.get::<gst::Element>().expect("type checked upstream"),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
"caption-source" => {
|
"caption-source" => {
|
||||||
let mut settings = self.settings.lock().unwrap();
|
let mut settings = self.settings.lock().unwrap();
|
||||||
settings.caption_source = value.get().expect("type checked upstream");
|
settings.caption_source = value.get().expect("type checked upstream");
|
||||||
|
@ -1495,28 +1467,12 @@ impl ObjectImpl for TranscriberBin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"translation-languages" => {
|
|
||||||
self.audio_sinkpad.set_property(
|
|
||||||
"translation-languages",
|
|
||||||
value
|
|
||||||
.get::<Option<gst::Structure>>()
|
|
||||||
.expect("type checked upstream"),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
"translate-latency" => {
|
"translate-latency" => {
|
||||||
let mut settings = self.settings.lock().unwrap();
|
let mut settings = self.settings.lock().unwrap();
|
||||||
settings.translate_latency = gst::ClockTime::from_mseconds(
|
settings.translate_latency = gst::ClockTime::from_mseconds(
|
||||||
value.get::<u32>().expect("type checked upstream").into(),
|
value.get::<u32>().expect("type checked upstream").into(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
"language-code" => {
|
|
||||||
self.audio_sinkpad.set_property(
|
|
||||||
"language-code",
|
|
||||||
value
|
|
||||||
.get::<Option<String>>()
|
|
||||||
.expect("type checked upstream"),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
"mux-method" => {
|
"mux-method" => {
|
||||||
let mut settings = self.settings.lock().unwrap();
|
let mut settings = self.settings.lock().unwrap();
|
||||||
settings.mux_method = value.get().expect("type checked upstream")
|
settings.mux_method = value.get().expect("type checked upstream")
|
||||||
|
@ -1539,22 +1495,18 @@ impl ObjectImpl for TranscriberBin {
|
||||||
let settings = self.settings.lock().unwrap();
|
let settings = self.settings.lock().unwrap();
|
||||||
(settings.accumulate_time.mseconds() as u32).to_value()
|
(settings.accumulate_time.mseconds() as u32).to_value()
|
||||||
}
|
}
|
||||||
"mode" => self.audio_sinkpad.property("mode"),
|
|
||||||
"cc-caps" => {
|
"cc-caps" => {
|
||||||
let settings = self.settings.lock().unwrap();
|
let settings = self.settings.lock().unwrap();
|
||||||
settings.cc_caps.to_value()
|
settings.cc_caps.to_value()
|
||||||
}
|
}
|
||||||
"transcriber" => self.audio_sinkpad.property("transcriber"),
|
|
||||||
"caption-source" => {
|
"caption-source" => {
|
||||||
let settings = self.settings.lock().unwrap();
|
let settings = self.settings.lock().unwrap();
|
||||||
settings.caption_source.to_value()
|
settings.caption_source.to_value()
|
||||||
}
|
}
|
||||||
"translation-languages" => self.audio_sinkpad.property("translation-languages"),
|
|
||||||
"translate-latency" => {
|
"translate-latency" => {
|
||||||
let settings = self.settings.lock().unwrap();
|
let settings = self.settings.lock().unwrap();
|
||||||
(settings.translate_latency.mseconds() as u32).to_value()
|
(settings.translate_latency.mseconds() as u32).to_value()
|
||||||
}
|
}
|
||||||
"language-code" => self.audio_sinkpad.property("language-code"),
|
|
||||||
"mux-method" => {
|
"mux-method" => {
|
||||||
let settings = self.settings.lock().unwrap();
|
let settings = self.settings.lock().unwrap();
|
||||||
settings.mux_method.to_value()
|
settings.mux_method.to_value()
|
||||||
|
|
Loading…
Reference in a new issue