<p>You an try to set rc_lookahead=0, that should solve the delay.<br>
Regards,<br>
Jan.</p>
<div class="gmail_quote">Am 15.09.2011 04:37 schrieb "±èÈñ¼÷" <<a href="mailto:hskim095@naver.com">hskim095@naver.com</a>>:<br type="attribution">> After decoding on another PC(192.168.1.100), I can see the delay 2 seconds more. There is no exact calculation.<br>
> The decoding module is also ffmpeg library. <br>> <br>> I found out ffmpeg encoder does not return output data even though vfw capture data exist.<br>> After ffmpeg encoder is received more than 40 frames, the encoder returns output data. <br>
> <br>> BTW, I added cqp option and then the ffmpeg encoder returns output data promptly.<br>> <br>> -----Original Message-----<br>> From: "NEERAJ SHUKLA"&<a href="mailto:lt%3Bneeraj2009shukla@gmail.com">lt;neeraj2009shukla@gmail.com</a>> <br>
> To: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter."&<a href="mailto:lt%3Blibav-user@ffmpeg.org">lt;libav-user@ffmpeg.org</a>><br>> Cc: <br>> Sent: 11-09-10(Åä) 02:14:35<br>
> Subject: Re: [Libav-user] Encoding packetization speed<br>> 2011/8/31 ±èÈñ¼÷ &<a href="mailto:lt%3Bhskim095@naver.com">lt;hskim095@naver.com</a>><br>> Hi All,<br>> <br>> I'm testing FFMPEG performance with libx264 for H.264 encoding.<br>
> I found there may 2 or 3 seconds delay on receiving PC.<br>> <br>> The command is as follows:<br>> ffmpeg -r 30 -f vfwcap -s 1280x720 -i 0 -vcodec libx264 -b 2000k -minrate 1000k -coder 0 -flags +loop+cgop -cmp +chroma -partitions -parti8x8+parti4x4+partp8x8-partp4x4-partb8x8 -me_method dia -subq 3 -me_range 24 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -directpred 1 -flags2 +fastpskip -refs 6 -subq 5 -f rtp rtp://<a href="http://192.168.1.100:40000">192.168.1.100:40000</a><br>
> <br>> I also tested cif resolution and I got same result, 2 or 3 seconds delay.<br>> I captured the rtp packets and I found there is no many packets to be sent on receiving side.<br>> <br>> In general, how many packets to be sent under 1280x720@30fps?<br>
> <br>> the decoding picture quality was good but there was delay.<br>> <br>> I wonder there is missing point on above command or something.<br>> <br>> Please advise something to me.<br>> <br>> Thanks<br>
> hsk<br>> _______________________________________________<br>> Libav-user mailing list<br>> <a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>> <a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
> HOW ARE YOU CALCULATING THE DELAY ??<br>> PLEASE SPECIFY ELABORATELY<br></div>