LCEVC Encoder Build

Download and Install the LCEVC Encoder SDK

  1. Register and download the SDK package:

  2. Extract and install SDK components:

    bashCopyEdit$ cd Downloads
    $ tar xvf encoder_sdk.tar.gz
  3. Install the headers and libraries (example for Linux):

    bashCopyEdit$ cp -v include/*.h /usr/local/include
    $ cp -v *.so /usr/local/lib
  4. Create a lcevc_eil.pc file for pkg-config:

    iniCopyEditprefix=/usr/local
    includedir=${prefix}/include
    libdir=${prefix}/lib
    
    Name: lcevc_eil
    Description: LCEVC Encoder EIL library
    Version: 3.11.3
    Libs: -L${libdir} -llcevc_eil
    Cflags: -I${includedir}
  5. Install the .pc file:

    bashCopyEdit$ cp -v lcevc_eil.pc /usr/local/lib/pkgconfig

Build the LCEVC GStreamer Plugin

To enable the LCEVC encoder plugin during GStreamer build:

  1. Navigate to your GStreamer project directory:

    bashCopyEdit$ cd GStreamer
  2. Configure the build with Meson:

    bashCopyEdit$ meson setup $BUILD_DIR --pkg-config-path=$INSTALL_DIR/lib/pkgconfig -Dgst-plugins-bad:lcevcencoder=enabled
  3. Build using Ninja:

    bashCopyEdit$ ninja -C $BUILD_DIR

Run the GStreamer LCEVC Encoder Pipeline

Test the LCEVC encoding with a simple pipeline:

bashCopyEdit$ gst-launch-1.0 videotestsrc pattern=ball num-buffers=1024 \
! video/x-raw,width=1920,height=1080,format=I420,framerate=25/1 \
! lcevch264enc plugin-name="x264" plugin-props="preset=superfast;tune=zerolatency" \
! h264parse ! mp4mux ! filesink location=lcevc-sample.mp4

Last updated

Was this helpful?