I want tocheck RTMP live stream is on or off for mic.
I have used RTMP DUMP
exec("/usr/bin/rtmpdump -V -v -r rtmp://www.exapmle.com/etc./13/mic1 -o /tmp/rtmp-checker.log 2>&1", $pp);
I have found this trick from http://blog.svnlabs.com/how-to-check-rtmp-source-stream-is-live-or-not/
But i am not Satisfy with result because some time its not working and generates random string as result.
IF YOU have any other solution Using FFMPEG OR OTHER then you are most welcome.