Do not follow this link

~jmaibaum/gst-ltcsrc

Linear/Longitudinal Time Code Source for GStreamer using x42's libltc
README: Update instructions for Debian 11
Add GUI test app
README: Document Fedora dev-dependencies

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~jmaibaum/gst-ltcsrc
read/write
git@git.sr.ht:~jmaibaum/gst-ltcsrc

You can also use your local clone with git send-email.

#gst-ltcsrc

CAUTION: This is still pre-alpha code.

A gstreamer source element creating LTC timecode based on libltc by Robin Gareus (x42).

#Dependencies

  • gstreamer development headers
  • libltc >= 1.3.1 (will be built as a meson subproject, if not found)
  • meson >=0.55
  • ninja (needed by meson)

#Fedora 34

sudo dnf install \
    meson \
    gstreamer1-plugins-base-devel \
    libltc-devel

#Debian 11

sudo apt install \
    meson \
    libgstreamer-plugins-base1.0-dev \
    libltc-dev

#Building

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

#Manual Tests

Use --gst-plugin-path to specify the path to the compiled, but still uninstalled plugin.

#Play LTC timecode to a video file, mute original audio

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.

#Play LTC timecode to a video file, TC on the left, original audio panned to the right channel

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.
Do not follow this link