RTSP Problems, FFMpeg

Forum for questions and support relating to the 1.30.x releases only.
Locked
Como
Posts: 2
Joined: Thu Mar 16, 2017 8:55 pm

RTSP Problems, FFMpeg

Post by Como »

Hello, I use a Tenvis IP Cam with RTSP (Source FFMPEG) on ZM 1.3 running on Linux Mint 18.1.
I noticed frequent loss of connections (blue screen etc).
Searching through the forums, I could not find a clear answer, just hints that the cause might be FFMPEG. DId you encounter similar issues? What is the solution?
Current FFMPEG version is 2.8. Please advise if upgrading might solve the issue or if there is another solution.
Thank you.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: RTSP Problems, FFMpeg

Post by bbunge »

First, look over these install instructions to see if you missed something: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

Second, recheck the camera settings with VLC. Make sure you are using the correct resolution. Then lower the resolution by half in Zoneminder. In the camera lower the frame rate (5 FPS), the key frame interval, and other video settings to something lower. Get it to work and raise settings to see if you can break it again.

In the Zoneminder monitor settings force TCP (?tcp)

You may also want to check the amount of free space in tmpfs (/dev/shm)

bb
Como
Posts: 2
Joined: Thu Mar 16, 2017 8:55 pm

Re: RTSP Problems, FFMpeg

Post by Como »

bbunge wrote:First, look over these install instructions to see if you missed something: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

Second, recheck the camera settings with VLC. Make sure you are using the correct resolution. Then lower the resolution by half in Zoneminder. In the camera lower the frame rate (5 FPS), the key frame interval, and other video settings to something lower. Get it to work and raise settings to see if you can break it again.

In the Zoneminder monitor settings force TCP (?tcp)

You may also want to check the amount of free space in tmpfs (/dev/shm)

bb
Did the following:
1. Installation ok. There are other 5 cameras (MJPEG) working, including with FFMPEG as source. Only RTSP protocol is not stable.
2. Checked Resolution, matched. Lowered resolution, FPS, KFI. Same problem occurs, but taking longer time to reproduce.
3. Set RTP/RTSP , understood that ZM enforces by default TCP.
4. Free space ok.

Result: Camera is detected, both by manual selection or through ONVIF. Video stream is displayed. However, the stream is lost and blue screen appears in the following 2 senarios:

1. After about 24 hours
2. Every time the camera is moved (PTZ from camera interface)

Next step: now installing FFMPEG 3. Checking to reproduce.
Locked