keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.65k stars 230 forks source link

[Help] RTSP with Swann DVR8-8075 video not working #162

Closed NotShocked closed 2 years ago

NotShocked commented 2 years ago

Looking for any insight from people smarter than me as to what I am missing for why this might not be working. Thanks for any help anyone can provide or point me in the direction of.

Describe the bug

I am attempting to use the proxy with these cameras and I do not get a video feed. I only get still frame updates from time to time.

To Reproduce

I am entering the RTSP stream in and it runs without error on the proxy side. No video on the NVR, just a single still frame and then the 3 dots of loading (tried multiple ways will do more detail at the bottom)

Expected behavior

Expect video to stream to the NVR

Camera (please complete the following information):

Swann DVR8-8075 https://www.swann.com/us/swdvk-880754

Additional context

I have read through other issues here and tried to work with some of those and see if they could help me. So far I have had no luck in getting any video into my NVR. The still frame does update from time to time but it is rare. I do see significant inbound activity to the host with the proxy on it (what I would expect from a video stream). I am also seeing CPU usage so its trying to do something. However I do not see much of anything going outbound. Which I guess makes sense since I am getting basically nothing on the NVR side.

I do currently stream video off this device via RSTP to OMX player on a RPI just fine and have no issues. I can also stream it using the URL to VLC on my windows machine without issue.

The URL I am using is 'rtsp://:@192.168.99.6:554/Streaming/Channels/201' and this works in all other forms.

Output from ffprobe is:

ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=rle-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --eml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --e libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from 'rtsp://<user>:<password>@192.168.99.6:554/Streaming/Channels/201': Metadata: title : Media Server V3.3.2 comment : Media Server Session Description : standard Duration: N/A, start: 0.483333, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, 12 fps, 30 tbr, 90k tbn, 24 tbc

I have tried

unifi-cam-proxy --host '192.168.95.10' --mac 'AA:BB:CC:00:11:22' --cert ./client.pem --token 'tPVzjdCG7aMY2KuW3JycZX09UWGIJof4' rtsp -s 'rtsp://:@192.168.99.6:554/Streaming/Channels/201' --ffmpeg-args '-c:v copy -vbsf "h264_metadata=tick_rate=12"'

(with tick rate set to different things, 12/24 being the main ones I tried)

unifi-cam-proxy --host '192.168.95.10' --mac 'AA:BB:CC:00:11:22' --cert ./client.pem --token 'tPVzjdCG7aMY2KuW3JycZX09UWGIJof4' rtsp -s 'rtsp://:@192.168.99.6:554/Streaming/Channels/201'

I have also tried with fixed_frame_rate_flag=1 I saw in a few posts. I have tried changing the camera type as well but I am guessing that it doesn't matter much and is just what is reported in the NVR console.

keshavdv commented 2 years ago

When you get the three dot behavior, does the stream work on a mobile device?

NotShocked commented 2 years ago

No it also did not work on my Android phone.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.