Hello I have been distinguished if stream ok I can see as codec "aac" with ffmpeg -i command but if sound lost aac message comes not. So I can check the stream status with this command:
" ffmpeg -i http://117.152.42.29:8000/live/sel/tompo/82.ts 2>&1 | grep aac" so what would be next step. Should I write a simple text with this command and save as check.sh? ıf yes how I can exec this one and trigger alert fonktion? I think it is really newbie question but I have no idea what would be for next step. Any help would be very appreciated On 13 June 2016 at 20:34, SZÉPE Viktor <[email protected]> wrote: > Excuse me. > > This line was not meant for copy-and-pasting. > Monit "check program" does not support scripting. > Even a one-liner should go to a script.sh file. > > Please understand this line, customize it then use it with Monit. > > ps I think receiving a stream goes like > > ffmpeg -i http://117.68.122.29:8000/live/sel/tompo/71.ts > > with an ffmpeg option you may limit how many seconds are tested. > > > Idézem/Quoting Volkan Celebi <[email protected]>: > > Hello >> >> Thanks for quick reply. My streams all sound codec are AAC. therefore I >> modified the code but I am getting error "syntax error find" >> >> monitrc file: >> >> set alert [email protected] # receive all alerts >>> >>> check host 192.168.1.46 with address 192.168.1.46 >>> >>> if failed url http://192.168.1.46:4272/channels_list.html >>> >>> timeout 10 seconds for 1 cycles then alert >>> >>> find /live/ >>> >>>> sel >>>> / >>>> tompo >>>> -type f -name "*.ts" | xargs -r -L 1 ffmpeg -i | grep -F "AAC" >>>> >>> >>> >>> On 13 June 2016 at 18:40, SZÉPE Viktor <[email protected]> wrote: >> >> Hello! >>> >>> Try >>> find /live/sel/tompo -type f -name "*.ts" | xargs -r -L 1 ffmpeg -i | >>> grep >>> -F "some codec" >>> >>> >>> Idézem/Quoting Volkan Celebi <[email protected]>: >>> >>> Dear all >>> >>>> >>>> I am looking for a solution/idee to check any mpeg stream for sound. I >>>> am >>>> transcoding dvb source to mkv It is a sample url >>>> >>>> http://117.68.122.29:8000/live/sel/tompo/71.ts >>>> >>>> Sometimes sound is disappearing only solution to restart the transcode. >>>> Is >>>> there any way to check the stream if sound come or not? >>>> >>>> Thanks >>>> >>>> -- >>>> Volkan Çelebi >>>> IT System Spezialist >>>> Heimstr. 10 >>>> 8953 Dietikon >>>> Tel: +41 788 488 319 >>>> >>>> >>> >>> >>> SZÉPE Viktor >>> -- >>> +36-20-4242498 [email protected] skype: szepe.viktor >>> Budapest, III. kerület >>> >>> >>> >>> >>> >>> -- >>> To unsubscribe: >>> https://lists.nongnu.org/mailman/listinfo/monit-general >>> >> >> >> >> >> -- >> Volkan Çelebi >> IT System Spezialist >> Heimstr. 10 >> 8953 Dietikon >> Tel: +41 788 488 319 >> > > > > SZÉPE Viktor > -- > +36-20-4242498 [email protected] skype: szepe.viktor > Budapest, III. kerület > > > > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- Volkan Çelebi IT System Spezialist Heimstr. 10 8953 Dietikon Tel: +41 788 488 319
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
