...
Code Block |
---|
apt update
apt install -y build-essential meson ninja-build python3-pip bison libglib2.0-dev flex libx264-dev
pip3 install --upgrade meson |
5 . Install GStreamer:
Insert an SD card or disk as a build directory, for example:
...
Get the GStreamer package and build(Take version 1.20.1 for example):
Code Block |
---|
wget https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.20.1.tar.xz tar -xf gstreamer-1.20.1.tar.xz cd gstreamer-1.20.1 meson build --prefix=/usr ninja -C build ninja -C build install |
...
gst-launch-1.0 -v videotestsrc ! timeoverlay ! x264enc ! mp4mux ! filesink location=test.mp4
...
The C3V platform has hardware media codecs and provides a V4L2 interface. To use the features in the GStreamer, please use the following patch:
View file | ||
---|---|---|
|
Reference
Compile and install Gstreamer 1.22.9 for C3V codec in C3V Ubuntu environment