Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

rtmpdump in .bat file

(http://stream-recorder.com/forum/showthread.php?t=12766)

rossifeder 06-11-2012 03:19 AM

rtmpdump in .bat file


 
hello :)

I did a script to stream some channels and it work, I used :
Code:

rtmpdump -v -r rtmp://xxx -a xxx -y xxx -W wwww -p ZZZZ -f xxx | vlc -
so first start rtmpdump (with all his log like connecting etc etc ) + start vlc and i wait 5 sec then the stream work

ok good :D

but i want to do this differently, I want to start rtmpdump and wait
if there is a connection then start vlc to watch the stream
if there is no conecction (server error , no internet, wrong url , etc etc) then write (echo) there is no stream & exit

i am searching this on internet in last 3 days and i cant find a solutin

if there is a value the rtmpdump can return o there is an external programm.exe that i can use in my .bat file
i would accept any suggestion to do this

i cant figure out how to do this :(
plz help me :confused:

evol 06-11-2012 04:36 AM

Re: rtmpdump in .bat file


 
In Batch you use
Code:

ping localhost -n X >nul
X been the the delay(wait).

rossifeder 06-11-2012 05:06 AM

Re: rtmpdump in .bat file


 
Quote:

Originally Posted by evol (Post 47409)
In Batch you use
Code:

ping localhost -n X >nul
X been the the delay(wait).

thanks ;)
but that wont resolve my problem
because that inst my problem
because i want to know if rtmpdump is receiving packets (stream exit)
before i start vlc.
i don't want to start vlc if there is no stream .
if there is no stream for a reason i want to do an other command like exit
i think that the trick is that to find something with rtmpdump commands


All times are GMT -6. The time now is 03:27 PM.