[QUESTION] Installing gst-plugin-closedcaption & invalid datetime '1970-01-01'
I have tried to install gst-plugins-rs
following instructions from README.md on macOS, with an aim to use the gst-plugin-closedcaption
plugin with gst-launch-1.0
. My use case is just for command-line file conversion.
-
gst-plugin-scanner
recognizes thatlibgstrsclosedcaption
exists. -
gst-plugin-scanner
displays a warning about invalid datetime) -
gst-inspect-1.0
is not recognizing any of the plugins withingst-plugin-closedcaption
.
Here is the install workflow...
Installing rust etc.
$ brew install rust
$ cargo --version
cargo 1.57.0
$ cargo install cargo-c
$ echo $(rustc --version --verbose | sed -n 's/^host:[[:space:]]*//p')
x86_64-apple-darwin
Running cinstall
from the cargo repository...
$ locate gst-plugin-closedcaption
$ cat $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/gst-plugin-closedcaption-0.7.2/Cargo.toml | grep -e "name = " | head -n1
name = "gst-plugin-closedcaption"
$ cd ~/.cargo/registry/src/github.com-1ecc6299db9ec823/gst-plugin-closedcaption-0.7.2
$ cargo cinstall -p gst-plugin-closedcaption --prefix=/usr/local
Compiling gst-plugin-closedcaption v0.7.2 (/Users/REDACTED/.cargo/registry/src/github.com-1ecc6299db9ec823/gst-plugin-closedcaption-0.7.2)
Finished release [optimized] target(s) in 39.32s
Building pkg-config files
Installing pkg-config file
Installing static library
Installing shared library
Install appears to be successful, but the new plugins do not seem to be available to gst-inspect-1.0
.
$ file /usr/local/lib/gstreamer-1.0/libgstrsclosedcaption.dylib
/usr/local/lib/gstreamer-1.0/libgstrsclosedcaption.dylib: Mach-O 64-bit dynamically linked shared library x86_64
$ gst-inspect-1.0 | grep -ie subtitle -ie caption -ie 608 -ie 708
(gst-plugin-scanner:90027): GStreamer-WARNING **: 11:41:46.335: GstPluginDesc for '/usr/local/lib/gstreamer-1.0/libgstrsclosedcaption.dylib' has invalid datetime '1970-01-01'
avi: avisubtitle: Avi subtitle parser
dvbsuboverlay: dvbsuboverlay: DVB Subtitles Overlay
typefindfunctions: subtitle/x-kate: no extensions
typefindfunctions: application/x-subtitle-vtt: vtt
inter: intersubsrc: Internal subtitle source
inter: intersubsink: Internal subtitle sink
dvdsub: dvdsubdec: DVD subtitle decoder
dvdsub: dvdsubparse: DVD subtitle parser
ttmlsubs: ttmlparse: TTML subtitle parser
ttmlsubs: ttmlrender: TTML subtitle renderer
subparse: subparse: Subtitle parser
subparse: ssaparse: SSA Subtitle Parser
dvbsubenc: dvbsubenc: DVB subtitle encoder
closedcaption: cccombiner: Closed Caption Combiner
closedcaption: ccconverter: Closed Caption Converter
closedcaption: ccextractor: Closed Caption Extractor
closedcaption: line21decoder: Line 21 CC Decoder
closedcaption: cc708overlay: Closed Caption overlay
closedcaption: line21encoder: Line 21 CC Encoder
playback: subtitleoverlay: Subtitle Overlay
Since I am using cinstall
and installing to /usr/local
and gst-plugin-scanner
is already generating an warning, I believe cinstall
has placed /usr/local/lib/gstreamer-1.0/libgstrsclosedcaption.dylib
in the default place, avoiding the need for ${GST_PLUGIN_PATH}
environment variable at runtime.
I assume that gst-inspect-1.0
should list the plugins within gst-plugin-closedcaption
, such as:
ccdetect
cea608overlay
cea608tojson
cea608tott
jsontovtt
mcc_enc
mcc_parse
scc_enc
scc_parse
transcriberbin
tttocea608
tttojson
Although it is only a WARNING rather than ERROR, would the following message prevent the plugins from working with gst-inspect-1.0
and gst-launch-1.0
?
(gst-plugin-scanner:90027): GStreamer-WARNING **: 11:41:46.335: GstPluginDesc for '/usr/local/lib/gstreamer-1.0/libgstrsclosedcaption.dylib' has invalid datetime '1970-01-01'
Thanks. The new rust caption plugins look really interesting, and I appreciate that a lot of work has gone into developing them.