mpromonet / v4l2rtspserver

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

Kinda works in mplayer and VLC refuses to work #239

Closed TCPMeta closed 2 years ago

TCPMeta commented 3 years ago

VLC media player 3.0.12 Mplayer 1.4

Running the RTSP Server on a Pi 3+ with a Version 2 NoIR Camera Module.

VLC doesn't work at all and when I connect with Mplayer the output from the Console on the Pi says this RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!

Mplayer's Console output shows this.

[h264 @ 0x7f9284758c40]bytestream overread -7 [h264 @ 0x7f9284758c40]error while decoding MB 17 36, bytestream -7 [h264 @ 0x7f9284758c40]concealing 152 DC, 152 AC, 152 MV errors in P frame [rtsp @ 0x7f92851e6180]max delay reached. need to consume packet [rtsp @ 0x7f92851e6180]RTP: missed 612 packets [h264 @ 0x7f9284758c40]nal_unit_type: 7(SPS), nal_ref_idc: 1 [h264 @ 0x7f9284758c40]nal_unit_type: 8(PPS), nal_ref_idc: 1 [h264 @ 0x7f9284758c40]nal_unit_type: 5(IDR), nal_ref_idc: 1 [h264 @ 0x7f9284758c40]bytestream overread -81 [h264 @ 0x7f9284758c40]error while decoding MB 5 25, bytestream -81 [h264 @ 0x7f9284758c40]concealing 494 DC, 494 AC, 494 MV errors in I frame

The video is super laggy like it's getting 1FPS and gets all garbled then freezes then regains for a second or two at 1FPS then acts up again.

mpromonet commented 3 years ago

Hi,

Maybe you loose lots of frames, did you tried with --rtsp-tcp ( see https://wiki.videolan.org/Documentation:Modules/live555/)

Best Regards, Michel.