Corrupted video stream using ffmpeg

Forum for questions and support relating to the 1.24.x releases only.
Locked
Mad Professor
Posts: 106
Joined: Wed Dec 15, 2010 11:20 am
Location: Isle Of Wight, UK

Corrupted video stream using ffmpeg

Post by Mad Professor »

Good day all.

As per the title when I try to use ffmpeg to get the video stream from my IP camera, the video stream is corrupted and the system slows right down.

Here is a picture of the same video feed from the camera in Zoneminder and VLC media player side by side.
Image

As you can see the same video stream at the same time, and VLC media player has no problem, where zoneminder is all corrupted.

My Current ZoneMinder Server.
Tyan Thunder K8SD Pro S2882-D Motherboard.
2x Dual Core AMD Opteron 275 Processor (2.2Ghz).
4x 2GB DDR400 ECC Memory (8GB).
1x Seagate 500GB. (OS Drive).
1x WDC Green 1.5TB. (Spare).
2x WDC Green 2.0TB. (Raid-1, Zoneminder Events).
1x 4 Port Single Chip BT878.
Running Ubuntu 11.04 x64 Server,
Zoneminder v1.24.2. (Installed via apt-get).

Here are my other posts regarding problems I am having with this camera.

Xvision X100V MegaPixel Indoor/Outdoor IP Camera
and
Can't get RTSP working in v1.24.2

Can someone please help and advice me where to start?

Thanks for your time.

Best Regards.
Kyce
Posts: 3
Joined: Mon Mar 11, 2013 7:03 pm

Re: Corrupted video stream using ffmpeg

Post by Kyce »

Just in case you did not see my reply to your "Will RTSP ever be fixed in ZoneMinder?" post. I have the same issue and worked around it by adding a ?tcp to the end of the source URL. You can force it to use TCP by adding the ?tcp directive for ffmpeg to not use UDP. It did not slow down my frame rate more than .2 or so but completely cleared up the corruption.

The problem is most like within libavformat/udp.c code. Google FFMpeg Ticket 285 (Closed) for details if you want.

example source path with workaround: rtsp://username:password@10.0.0.1/path/h264.file?tcp
Locked