Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
rtmpdump using .bat filehello
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 - ok good 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 |
#2
|
|||
|
|||
Re: rtmpdump using .bat fileyou can use --stop 1 switch to download 1 second of stream and then check that file's duration using MediaInfo command line tool. if media duration is 1 second then stream is live and working else some error occurred during download.
|
#3
|
|||
|
|||
Re: rtmpdump using .bat fileQuote:
thank you very much |
#4
|
|||
|
|||
Re: rtmpdump using .bat file^^^^^^
its more complicated than what i thought i downloaded MediaInfo but I cant find the right command line can you give me an example of a command line thanks |
#5
|
|||
|
|||
Re: rtmpdump using .bat fileCode:
MediaInfo --Inform=Video;%Duration% your_file |
#6
|
|||
|
|||
Re: rtmpdump using .bat filethank you KSV for your time
Last edited by rossifeder : 06-12-2012 at 11:10 AM. |
#7
|
|||
|
|||
Re: rtmpdump using .bat fileI have discovered the timeout command
rtmpdump −−timeout which i never noticed before it will risolve the problem thanks |
#8
|
|||
|
|||
Re: rtmpdump using .bat fileQuote:
Quote:
|
#9
|
|||
|
|||
Re: rtmpdump using .bat file |
Tags: rtmpdump |
Thread Tools | |
Display Modes | |
|
|