Hello!
i want to add a new H264 camera on the Pi, so i installed gstreamer on a pretty new Pi(using the official mirror) and enter:
$ gst-launch-1.0 -v fdsrc ! video/x-h264,width=1080,height=720,framerate=24/1 ! h264parse ! queue ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.2.1 port=5600
my PC(win10) : python2.7 with module gi and some other required packages. So i use the example code in OpenCV · GitBook run it in the cmd, no error, but don’t have the video.
what kind of command should i use in Pi?
some other message:
i have set the wired network Ethernet of my PC and Pi to the static IP:192.168.2.1 192.168.2.2.
i did not open the QGC on my PC.
Thank you for your advice. i have tried the command you suggest and as a result i got the test video on my PC. Then i tried to use the H264 camera. i got the camera video when i run the command below:
On my personal computer, I have always used the python code copied from the website:OpenCV · GitBook.
i have tried all i found but didn’t work. what should i do then? Thank you!
Thank you for your reply. but i don’t understand what you mean and actually i don’t know how to check the pipeline. In fact, i even don’t understand what these commands mean now. i want to find a command run on the RPi which matches that python code.
i think :
Where DEVICE is the camera: E.g: /dev/video0 WIDTH the width resolution: E.g: 1920 HEIGHT the height resolution: E.g: 1080 FRAMERATE the camera framerate : E.g: 30
The user can configure any parameter, but this depends of the camera capabilities.
by now, i have achieved to get the video om my PC, but the pronlem is that there is a large delay, so i try to find a way to deal with this.
i have tested the python code with my bluerov. as a result, the delay was very small.
Thank you for your soon reply and your advice. i plan to take some time to learn the gstreamer, then come back to solve this problem.
Thank you for your help!