# LCEVC decoder build

### Build and Install the LCEVC Decoder SDK

1. Clone the repository:

   ```bash
   bashCopyEdit$ git clone https://github.com/v-novaltd/LCEVCdec.git
   $ cd LCEVCdec
   ```
2. Build and install the SDK:

   ```bash
   bashCopyEdit$ mkdir $BUILD_DIR
   $ cd $BUILD_DIR
   $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ..
   $ cmake --build .
   $ cmake --install .
   ```

***

### Build the LCEVC GStreamer Decoder Plugin

```bash
bashCopyEdit$ cd GStreamer
$ meson setup $BUILD_DIR --pkg-config-path=$INSTALL_DIR/lib/pkgconfig -Dgst-plugins-bad:lcevcdecoder=enabled
$ ninja -C $BUILD_DIR
```

***

### Run a GStreamer LCEVC Decoder Pipeline

Basic decoding pipeline:

```bash
bashCopyEdit$ gst-launch-1.0 filesrc location=/home/user/lcevc-sample.mp4 \
! qtdemux ! h264parse ! openh264dec ! lcevcdec ! videoconvert ! autovideosink
```

With automatic element discovery:

```bash
bashCopyEdit$ gst-launch-1.0 playbin uri=file:///home/user/lcevc-sample.mp4
```


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
