Page 1 of 1

RTSP Ip camera h264 stream crash after every 4h39m (2^24ms)

Posted: 01 Feb 2013 15:03
by jammiq
Hello.

I have weird problem with rtsp stream.
I'm using vlc-2.0.5 running on ubuntu 64-bit to receive and re-stream h264 video from ip surveillance camera.
This cam serves stream via rtsp.
I discovered that after every 4h39 min (which is 16777seconds - 2^24 miliseconds) of running camera stream vlc stop receiving and re-streaming.
Message in log is:

Code: Select all

main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms) main error: ES_OUT_RESET_PCR called
Then I need to kill and restart vlc (reconnect to rtsp stream) to get working again.
Tested also with Wowza and is the same problem.
Log from wowza:

Code: Select all

Timecode out of order [video]: 83885700000:167771390000 Timecodes jumped back in time.
Logging times: 18:07:08, 22:46:48, 03:26:27, 08:06:06, 12:45:46, etc...
So It is a webcam/rtsp problem - looks like timestamp wraps. I can exactly predict when stream crash.

I have a question - is there any option to workaround this problem on vlc side or automatically reconnect when issue appear?
Thanks for help.
Greetings, Michal.