I am using ffmpeg as a library. how to to force it ( in the code, not 
commandline) use tcp?
shortly like that
int f=1;
while(av_read_frame(pFormatCtx, &packet)>=0)
    {
        // Is this a packet from the video stream?
        if(packet.stream_index==videoStream)
        {
            // Decode video frame
            avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished,
                                  &packet);
            // Did we get a video frame?
            if(frameFinished)
            {
                f++;
                do work with frame
            }
        av_free_packet(&packet);
        av_init_packet(&packet);
        if (f>1) break;
}
18.06.2014, 23:52, "Camera Man" <[email protected]>:
> 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
> problem.
>
> 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
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to