[FFmpeg-user] Multibitrate stream behind live time

José María Infanzón jocheinfa at gmail.com
Tue Nov 13 15:07:48 EET 2018


Hi All,

I've have an udp input (live chanel I obtain from an encoder) and I
transrate it into multiple bitrates. The command I use is:

ffmpeg -loglevel error -threads 0 -y -i $1 -filter_complex
> '[0:v]yadif=0:-1:1,split=3[out1][out2][out3]' -map '[out1]' -map '[out2]'
> -map '[out3]' -map 0:a -acodec aac -b:a 64k -vcodec libx264 -tune
> zerolatency -s:v:0 854x480 -bitrate 1500k -bufsize:v:0 1800k -s:v:1 640x360
> -bitrate 1M -bufsize:v:1 1200k -s:v:2 426x240 -bitrate 700k -bufsize:v:2
> 840k -f mpegts -


The main issue I'm experiencing, is that after a 24 hs of continuously
streaming, I'm behind live time for about 10 mins. If I remove bufsize and
maxrate as in the following command:

/root/ffmpeg_sources/ffmpeg/ffmpeg -loglevel error -y -i $1 -filter_complex
> '[0:v]yadif=0:-1:1,split=3[out1][out2][out3]' -map '[out1]' -map '[out2]'
> -map '[out3]' -map 0:a -acodec aac -b:a 64k -vcodec libx264 -s:v:0 854x480
> -bitrate 1500k -s:v:1 640x360 -bitrate 1000k -s:v:2 426x240 -bitrate 500k
> -f mpegts -


After 24 hours, I'm pretty close to live time, and I no longer experience.
The only issue is that the bitrate is no longer accurate and insted of 1,5M
for 854*480 It might have 800kbps.

Any ideas of what I'm missing?

Thanks indeed


-- 
José María Infanzón


More information about the ffmpeg-user mailing list