Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Killing RTMPsrv/RTMPdump inside WindowsI have successfully created a batch file to open RTMPDumpHelper and browser.
The problem I have is I tried to use taskkill and Cygwin tools to kill rtmpsrv and rtmpdump. The problem is it apparently only kills rtmpsrv but not the rtmpdump that is started. I randomly use rtmpdump in other batch files around same time so I can't just try killing any rtmpdump. Anybody know if there is a way to watch for the exact PID or something, cause only way so far is kill it when I get a chance causing unnecessary extra recording. |
#2
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsIf you get my build of RtmpSrv, you can use the "--printonly" option.
Code:
$ rtmpsrv --help This is just a stub for an RTMP server. It doesn't do anything beyond obtaining the connection parameters from the client. -h, --help Prints this help screen. -c, --port port Overrides the port in the rtmp url -i, --printonly Print RtmpDump command and exit -z, --debug Debug level command output. -N, --version Print version information and exit |
#3
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsI see how your rtmpsrv works but I'm not quite sure how I can still kill it afterwards.
I mean I still think I would have to find some way to find out exactly which rtmpdump is running for my recording and kill only that one. |
#4
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsIt is clear you have misunderstood the "--printonly" option. It does not invoke RtmpDump. Running RtmpSrv with the printonly option merely prints the first RtmpDump command detected and exits.
|
#5
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsWell I understand that part but I was temporarily confused on how to kill the rtmpdump I start afterwards with the output.
|
#6
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
Quote:
|
#7
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsThank you so much.
I finally came up with a working idea from your solutions. I realized with "ps -W" I can find out exactly which rtmpdump is running and kill only the one going to RTMPDumpHelper and not the other one on the system recording other stuff at any given moment. |
#8
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
http://thread.gmane.org/gmane.comp.g...793/focus=3797 Seems like it may not have been committed, unfortunately. http://sourceforge.net/tracker/index...&at id=302435 |
#9
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsI use Cygwin as well. I often have multiple streams running, so "ps" doesn't do it for me. I found the following command allows me to pick the right rtmpdump stream to kill:
WMIC.exe PROCESS get CommandLine,ProcessId I parse out the lines and grep the particular stream I want dead. Then kill -9 on the correct pid works pretty well for me. The only downside is the (partial) stream doesn't get finished, so stream viewers will think it's a live stream. I'm sure a quick trip through ffmpeg would clear that up, though. (I haven't actually tried, cause I throw away the streams I kill.) |
#10
|
|||
|
|||
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
|
Tags: rtmpdump, rtmpdumphelper, rtmpsrv |
Thread Tools | |
Display Modes | |
|
|