> For the complete documentation index, see [llms.txt](https://docs.v-nova.com/technologies/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.v-nova.com/technologies/mpeg-5.lcevc/integrations/gstreamer/lcevc-encoder-build.md).

# LCEVC encoder build

### Download and Install the LCEVC Encoder SDK

1. Register and download the SDK package:
   * Visit: <https://download.v-nova.com>
   * Select the appropriate pre-built `encoder_sdk.tar.gz` package (Ubuntu 20, Ubuntu 22, or Windows).
2. Extract and install SDK components:

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

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

   ```ini
   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:

   ```bash
   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:

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

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

   ```bash
   bashCopyEdit$ ninja -C $BUILD_DIR
   ```

***

### Run the GStreamer LCEVC Encoder Pipeline

Test the LCEVC encoding with a simple pipeline:

```bash
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

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.v-nova.com/technologies/mpeg-5.lcevc/integrations/gstreamer/lcevc-encoder-build.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
