[FFmpeg-user] ffplay and increasing delay (latency)

Ilya Matveychikov matvejchikov at gmail.com
Thu Jan 7 12:44:40 CET 2016


Works like a charm:

ffplay -probesize 32 -sync ext rtmp://127.0.0.1:1935/live/1

Thank you Marton!

2016-01-06 22:12 GMT+03:00 Marton Balint <cus at passwd.hu>:

>
> 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 at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list