README: Update instructions for Debian 11
Add GUI test app
README: Document Fedora dev-dependencies
CAUTION: This is still pre-alpha code.
A gstreamer source element creating LTC timecode based on libltc by Robin Gareus (x42).
sudo dnf install \
meson \
gstreamer1-plugins-base-devel \
libltc-devel
sudo apt install \
meson \
libgstreamer-plugins-base1.0-dev \
libltc-dev
meson build && ninja -C build
If you want to force building libltc as a subproject, you can tell meson to do so:
meson build --force-fallback-for=ltc && ninja -C build
Use --gst-plugin-path
to specify the path to the compiled, but still
uninstalled plugin.
gst-launch-1.0 --gst-plugin-path=./build/src \
filesrc location=/path/to/video-file.mp4 ! decodebin name=dec \
dec. ! queue ! videoconvert ! autovideosink \
dec. ! queue ! audioconvert ! audiomixer name=mix sink_0::mute=true ! autoaudiosink \
ltcsrc volume=0.2 userbits=291 ! mix.
To swap channels, change signs of the two panorama=
parameters.
gst-launch-1.0 --gst-plugin-path=./build/src \
filesrc location=/path/to/video-file.mp4 ! decodebin name=dec \
dec. ! queue ! videoconvert ! autovideosink \
dec. ! queue ! audioconvert ! audiopanorama panorama=1.0 ! audiomixer name=mix ! autoaudiosink \
ltcsrc volume=0.2 userbits=291 ! audioconvert ! audiopanorama panorama=-1.0 ! mix.