On Wed, 6 Jan 2016, Ilya Matveychikov wrote:

Hello,

I'm using ffplay to play an RTMP stream from the nginx/rtmp server. The
stream
from the microphone is being captured with ffmpeg as follows:

ffmpeg -fflags nobuffer -re -f alsa -i hw:0,0 -c:a nellymoser \
       -ar 11025 -ab 8k -ac 1 -f flv rtmp://192.168.88.244/live/1

Next, I have rtmp nginx (192.168.88.244) plugin configured as:

rtmp {
   server {
       application live {
           live on;
           record off;
       }
   }
}

And finally, I'm using ffplay to play the stream (from the localhost):

ffplay -probesize 32 rtmp://127.0.0.1/live/1

Everything works fine except the growing latency of ffplay. The more
it plays the
more delay is produced. I'm sure that the problem at the ffplay end as
restarting
the player solves the problem for a while.

Hope someone knows how to solve the problem.

Try using -sync ext. It should moderate the play speed based on buffer fullness if it detects a realtime stream. Altough I am not sure that it detects rtmp as such, so you may have to hack in the ffplay code.

Regards,
Marton
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to