mpromonet / v4l2rtspserver

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

v4l2rtspserver on Jetson Nano #223

Closed lagurus closed 2 years ago

lagurus commented 3 years ago

Hello, just info for users which have problems with using v4l2rtspserver on Jetson Nano with IMX219 camera.

I have tried v4l2loopback and v4l2tools and recommended path: /dev/video0 (camera device)-> v4l2compress_h264 -> /dev/video10 (v4l2loopback device) -> v4l2rtspserver without success.

But I have found solution using gstreamer:

gst-launch-1.0 -v nvarguscamerasrc ! 'video/x-raw(memory:NVMM), format=NV12, width=640, height=480, framerate=30/1' ! nvv4l2h264enc bitrate=100000 ! h264parse config-interval=-1 ! 'video/x-h264,stream-format=(string)byte-stream' ! v4l2sink device=/dev/video3

Then use ./v4l2rtspserver -v -F30 /dev/video3

where /dev/video3 is loopback device created with v4l2loopback (modprobe v4l2loopback video_nr=3 maxbuffers=10)

mpromonet commented 3 years ago

Hi lagurus,

It is not really clear what means without success, does is concern v4l2rtspserver ? or v4l2compress ? Maybe the logs could help you ?

Best Regards, Michel.

lagurus commented 3 years ago

Hi lagurus,

It is not really clear what means without success, does is concern v4l2rtspserver ? or v4l2compress ? Maybe the logs could help you ?

Best Regards, Michel.

Thanks for answer, I am now happy with mentioned solution using gstreamer. But if you want to look on it, you can check attached log files.

It was started with

v4l2compress -vv -f H264 /dev/video0 /dev/video4

and

./v4l2rtspserver -vv /dev/video4

I don't see any error in logs, but client (vlc,mplayer) show nothing, but complains:

h264 warning: invalid PPS
live555 warning: no data received in 10s. Switching to TCP
h264 warning: invalid PPS
live555 error: no data received in 10s, aborting

Many thanks

v4l2compress.log v4l2rtspserver.log