i.MX 8 - RTSP Streaming Support

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX 8 - RTSP Streaming Support

i.MX 8 - RTSP Streaming Support

Recently I published this i.MX Dev Blog post about the Gateworks plugin gst-variable-rtsp-server support for i.MX 6.

Now, you can check how to use it on i.MX 8 SoCs as well.

1. Preparing the image

In order to use gst-variable-rtsp-server plugin, prepare your machine and distro:


Add the following line to conf/local.conf:

IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server gst-variable-rtsp-server"

Download the attached patch and apply it by doing:

$ cd <yocto_path>/sources/meta-fsl-bsp-release/
$ git am ~/Download/0001-Add-RTSP-support-for-i.MX-8-L4.14.78_ga1.0.0-or-olde.patch

Note: This patch is not necessary for L4.14.98_ga2.0.0 BSP!

Then, build the image with bitbake and deploy it to the SD card.

2. Video Test Source Example

Server

$ gst-variable-rtsp-server -p 9001 -u "videotestsrc ! v4l2h264enc ! rtph264pay name=pay0 pt=96"

Client


2. Camera Example

Server

$ gst-variable-rtsp-server -p 9001 -u "v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! v4l2h264enc ! rtph264pay name=pay0 pt=96"

Client


In order to use VLC or other application as the client, just enter the URL as shown in the image below:vlc_rtsp_example.png

Attachments
Version history
Revision #:
2 of 2
Last update:
‎09-10-2020 02:52 AM
Updated by: