[Libav-user] Broken image on rtsp h264 ip camera
grecd at ya.ru
Thu Jun 19 07:34:48 CEST 2014
I am using ffmpeg as a library. how to to force it ( in the code, not commandline) use tcp?
shortly like that
// Is this a packet from the video stream?
// Decode video frame
avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished,
// Did we get a video frame?
do work with frame
if (f>1) break;
18.06.2014, 23:52, "Camera Man" <i.like.privacy.too at gmail.com>:
> On 06/18/2014 08:26 AM, Michail Zhukov wrote:
>> I downloaded and installed on linux Mint - FFmpeg 2.2.3 "Muybridge"
>> Trying to get image from ip camera, but when there is a motion there
>> i get broken image. Camera is MDC-i4240
> Likely a UDP problem (buffers too small somewhere), especially if it
> goes away on lower (e.g. 320x240 or 640x480) resolutions. If that's the
> case, adding "--rtsp_transport tcp" on the command line will solve the
> I assume you use rtsp; please post exact (uncut, copy&paste) command
> line and output of an ffplay invocation that exhibits the problems.
> Also, please don't post same question twice.
> Libav-user mailing list
> Libav-user at ffmpeg.org
More information about the Libav-user