I have been trying to stream online through ffmpeg but I am having this problem. The frame rate drops from 30 down to 11 within 1-2 minutes. The audio is fine and does not skip at any time. I can use the exact same settings, with output set to save in .mp4 to the hard drive, and it works perfect.
c:\ffmpeg\bin>ffmpeg -re -rtbufsize 100000k -i "f:\xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-pix_fmt yuv420p -s hd720 -vcodec libx264 -preset medium -b:v 2400k -maxrate 240
0k -bufsize 600k -acodec libmp3lame -ac 2 -b:a 128k -ar 44100 -f flv "rtmp://liv
e-dfw.justin.tv/app/xxxxxxxxxxxxxxxxxxxxx flashver=FME/2.5 (compatible; FMSc 1.0
I have already tried removing the -re and setting the output to -r 30. I also tried setting -g 300 and -keyint_min 30 to see if Iframes would somehow fix it. No errors or frame drops are shown.
Somehow only the video encoding is getting messed up when it is set for -f flv output. This happens for both dshow desktop capture input and file input. My cpu is an Intel 3770K at 4.4GHz and can easily handle the load. Internet upload is 3Mb so the bitrate is well within this.
Thanks for reading. Hopefully someone here knows how to fix this because I am stumped. No idea why it will save to the hard drive just fine but not stream when its well within the cable bandwidth.