is there any way to abort ffmpeg if source bitrate gets too low

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

is there any way to abort ffmpeg if source bitrate gets too low

andrei ka
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: is there any way to abort ffmpeg if source bitrate gets too low

Valentin Schweitzer
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: is there any way to abort ffmpeg if source bitrate gets too low

andrei ka
yep, guess i'll have try to play with tsduck for my needs, it has tools
that inspect and switch ts stream inputs on the fly.
i need a solution asap, so, coding a patch is not feasible...kinda shame
that our omnicapable ffmpeg doesn't have more
extensive source properties controls...

On Wed, Jul 29, 2020 at 11:26 AM Valentin Schweitzer <[hidden email]>
wrote:

> 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
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".