Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introductory

...

If successful, the screen can be viewed with the RTSP tool with the address rtsp://x.x.x.x:8554/test. The x.x.x.x is the IP address of your C3V board.

...

Code Block
cp ~/code/gstreamer1/gst1-plugins-bad/0001-webrtcdsp-Update-code-for-webrtc-audio-processing-1.patch ~/code/gstreamer/subprojects/gst-plugins-bad/
cp ~/code/gstreamer1/gst1-plugins-bad/0002-h264-parser-pts-add.patch ~/code/gstreamer/subprojects/gst-plugins-bad/
cd ~/code/gstreamer/subprojects/gst-plugins-bad
patch -p1 < 0001-webrtcdsp-Update-code-for-webrtc-audio-processing-1.patch
patch -p1 < 0002-h264-parser-pts-add.patch

cp ~/code/gstreamer1/gst1-plugins-good/0001-v4l2-codec-support.patch ~/code/gstreamer/subprojects/gst-plugins-good/
cp ~/code/gstreamer1/gst1-plugins-good/0002-support-jpeg-dec-4k.patch ~/code/gstreamer/subprojects/gst-plugins-good/
cp ~/code/gstreamer1/gst1-plugins-good/0003-fixed-get-v4l2-codec-failed.patch ~/code/gstreamer/subprojects/gst-plugins-good/
cp ~/code/gstreamer1/gst1-plugins-good/0004-add-options-for-IBBP-decoder.patch ~/code/gstreamer/subprojects/gst-plugins-good/
cp ~/code/gstreamer1/gst1-plugins-good/0005-fixed-rtsp-failed-with-v4l2codec.patch ~/code/gstreamer/subprojects/gst-plugins-good/
cp ~/code/gstreamer1/gst1-plugins-good/0006-add-dma-copy-options-to-hw-video-encode.patch ~/code/gstreamer/subprojects/gst-plugins-good/
cd ~/code/gstreamer/subprojects/gst-plugins-good
patch -p1 < 0001-v4l2-codec-support.patch
patch -p1 < 0002-support-jpeg-dec-4k.patch
patch -p1 < 0003-fixed-get-v4l2-codec-failed.patch
patch -p1 < 0004-add-options-for-IBBP-decoder.patch
patch -p1 < 0005-fixed-rtsp-failed-with-v4l2codec.patch
patch -p1 < 0006-add-dma-copy-options-to-hw-video-encode.patch

4. Configure, build and install in prefix path “/home/sunplus/code/install-gstreamer"

Configure:

Code Block
cd ~/code/gstreamer
meson setup build --prefix=/home/sunplus/code/install-gstreamer -Dgpl=enabled

...

Code Block
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,format=YUY2,framerate=30/1 ! videoconvert ! ximagesink
or
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,format=YUY2,framerate=30/1 ! videoconvert ! glimagesink

7. Reference

Build gstreamer from source using Meson