@Honey_Patouceul,
May be you could help with another concern?
A remote colleague who has PI asked to approach figuring out if the sequence that they are using could bring better quality with it.
It turned out that they are using :
gst-launch-1.0 -v v4l2src ! video/x-h264, framerate = 15/1, width=1280, height=800 ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=10.0.0.2 port=900
I never used PI, before, but I managed to assemble test-launch at it with a purpose of approaching rtsp streaming with it as I done with jetsons before, but it seems a challenge to start it in a workeable way.
:
sudo apt-get install libgstrtspserver-1.0 libgstreamer1.0-dev
wget https://gstreamer.freedesktop.org/src/gst-rtsp/gst-rtsp-server-1.14.1.tar.xz
tar -xvf gst-rtsp-server-1.14.1.tar.xz
cd gst-rtsp-server-1.14.1
cd examples
gcc test-launch.c -o test-launch $(pkg-config --cflags --libs gstreamer-1.0 gstreamer-rtsp-server-1.0)
loading kernel module
sudo rpi-update # to make sure the v4L2 drive is available.
sudo modprobe bcm2835-v4l2 # to load it and create /dev/video0
at two terminals of that one is sending and one approaches receiving
it seems that works at rpi is
raspivid -o - -t 0 -w 1280 -h 720 -fps 25 -b 1000000 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
and that can be played from the very same device with
cvlc rtsp://127.0.0.1:8554/
Testing the latter stream via recording it at receiver side with:
/usr/bin/vlc -vvv rtsp://192.168.1.128:8554/ --sout=file/ts:/media/path/to/save/location/recording-$(date +"%Y%m%d%H%M%S").ts -I dummy --stop-time=480 vlc://quit
Upd:
improved resolution
/usr/bin/vlc -vvv rtsp://192.168.0.124:8554/ --sout=file/ts:/home/nvidia/recording-$(date +"%Y%m%d%H%M%S").ts -I dummy --stop-time=4800 vlc://quit
passing test screen works:
streaming
./test-launch "videotestsrc ! videoscale ! "video/x-raw,width=720,height=576,format=I420" ! rtpvrawpay name=pay0 pt=96 "
stream ready at rtsp://127.0.0.1:8554/test
receiving
gst-launch-1.0 rtspsrc latency=50 location=rtsp://127.0.0.1:8554/test ! rtpvrawdepay ! videoconvert ! ximagesink -v