Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFprobe Check Stream Link

I am trying to use FFprobe to test if a streaming link is active or not.

For example this is a working streaming link:

ffprobe -loglevel quiet -show_streams rtmp://Lrmh0w.cloud.influxis.com/yoy/_definst_/185

I do get output which mean link is active.

However, once I change link to something not work:

ffprobe -loglevel quiet -show_streams rtmp://Lrmh0w.cloud.influxis.com/yoy/_definst_/18555555555

The command keeps running in background with no result.

Is there a way to bypass this, or is there any ffprobe timeout parameter? I couldn't find it from the official website documentation.

like image 926
Krasic Avatar asked Aug 01 '26 21:08

Krasic


1 Answers

I'm just using *nix timeout:

/usr/bin/timeout 5s /usr/bin/ffprobe $SOURCE

In my case, it was enough.

like image 129
Maks Avatar answered Aug 03 '26 14:08

Maks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!