mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 422 forks source link

Add ONVIF discovery feature? #337

Open tuananh-lab opened 1 month ago

tuananh-lab commented 1 month ago

My project is to build an RTSP server for cameras (using rasberry Pi). My server has two main functions: transmitting RTSP to the client and discovering ONVIF devices in the LAN. I don't know if this project is right. Is it a good choice and can I add a discovery feature?

mpromonet commented 1 month ago

Hi,

You might look to https://github.com/mpromonet/v4l2onvif

Best Regards Michel

tuananh-lab commented 1 month ago

Thank you for your feedback. I want to install and run this server on Rasberry Pi 4 with camera module V1.3. I just need the server to be able to get the camera stream from the Pi. I see in the documentation you need Download UV4L for Pi. I'm having trouble downloading UV4L driver for Pi. Can I use V4L2 driver instead?

mpromonet commented 1 month ago

Hi @tuananh-lab

The approach of this project is to use v4L2 interface, driver should not matter till it implement the interface.

Best Regards, Michel.

tuananh-lab commented 1 month ago

my rasberry pi does not directly support h264,MJPEG format so v4l2rtspserver cannot run on Pi. My Pi has libcamera-vid available and it can record videos in .h264 format. I can use libcamera-vid to help the server run on Pi? If there is no other way to run the server on Pi?

tuananh-lab commented 1 month ago

hello. I'm really having trouble because the rasberry pi using v4l2 only supports the YUV video format but does not support the formats the server is using such as :h264,MJPEG. What do I need to do so that v4l2rtspserver can run on it? My Pi and can stream rtsp stream from pi cam.

tuananh-lab commented 2 weeks ago

Hi @mpromonet Do you have any solution for my problem? Can you give advice on how to run v4l2onvif and v4l2rtspserver on rasberry pi 4 model B+ and raspi V3 camera module?