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. |
Re: Killing RTMPsrv/RTMPdump inside WindowsIf you get my build of RtmpSrv, you can use the "--printonly" option.
Code:
$ rtmpsrv --help |
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. |
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
|
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
|
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
Quote:
|
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. |
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 |
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.) |
Re: Killing RTMPsrv/RTMPdump inside WindowsQuote:
|
All times are GMT -6. The time now is 07:10 PM. |