[FFmpeg-user] is there any way to abort ffmpeg if source bitrate gets too low
Valentin Schweitzer
vs at nativewaves.com
Wed Jul 29 12:25:48 EEST 2020
On 28/07/2020 18:37, andrei ka wrote:
> hi all
>
> i have multicast sources that sometimes actually switch to just static
> images encoded at very low bitrates, bitrate drops from 2Mbps when it's a
> decent signal to 500kbps when it's static. so, I don't know how to detect
> it on a fly, ffmpeg keeps happily encoding. Wish we had some input filter
> with bitrate caps... running a probe process in background and killing
> ffmpeg is so ugly to me... any ideas how to do it without help from bash ?
>
> cheers, &rei
hi,
I sadly dont have a solution for automatically killing FFmpeg,
but for finding out when the stream switches to a static image
you could try the freezedetect filter:
https://ffmpeg.org/ffmpeg-filters.html#freezedetect
I hope that helps and good luck,
Valentin
More information about the ffmpeg-user
mailing list