Quote:
Originally Posted by Stream Ripper
You sure the problems not with your script? :-)
I just tested it with both Jaksta and Replay Media Catcher and it worked fine
|
I know it is problem with my script.
I just dont know why...
There's my script:
Code:
@ECHO OFF
set timeout=15
set dir=Downloads
set /p user=Enter username:
echo Please wait...
:grab
SET mydate=%DATE:/=-%@%TIME::=-%
set txt=%TMP%\out_%user%_[%mydate: =%].txt
rtmpdump -p http://chaturbate.com/%user% -r rtmp://edge.stream.highwebmedia.com/live-edge -C S:jonaruto-C S:%user% -C S:2.634 -C S:pbkdf2_sha256^$10000^$vq7lwDzUenwE^$Cyn5/Fnu0g5WsAUELQ/w2x3cXXnei5zQhB0NPpCC3yQ= -y "playpath" -V 2>%txt%
for /f "delims=" %%a in ('findstr /n . %txt% ^| findstr "^69:"') do set var="%%a"
for /f "delims=" %%a in ('findstr /n . %txt% ^| findstr "^70:"') do set var2="%%a"
for /f "delims=" %%a in ('findstr /n . %txt% ^| findstr "^71:"') do set var3="%%a"
set key="%var2:~56%"
set key=%key:>=%
set key=%key:"=%
set status="%var:~56%"
set status=%status:>=%
set status=%status:"=%
set addr="%var3:~56%"
set addr=%addr:>=%
set addr=%addr:"=%
if not %status%==okay goto:offline
if %status%==okay goto:online
:offline
title %user% - Offline
color F8
echo Could not start recording, server returned status '%status%'.
goto:done
:online
title [D]%user% - Online [since %TIME%]
color 2F
echo Success! Server returned '%status%' - %addr%
echo Stream key:
echo %key%
set stamp=%DATE:/=-%@%TIME::=-%
set fname=%dir%\%key:~0,32%_[%stamp: =%].flv
rtmpdump -v -r rtmp://%addr%/live-origin/%key% -o %fname%
:done
title %user% - Offline
color F8
timeout 15
goto:grab