I changed the batch from using a static server to a random one, this should prevent errors when servers are full.
Once again, this is to be put on a bat file and will automatically record a specific model, loops each 30+ seconds (configurable), rtmpdump must be on the same folder, and the name of the bat must be the model name (ex model.bat), the save directory "savedir" should also be configured.
This is the new batch:
Code:
@ECHO OFF
SET savedir=C:\CBsaves
SET model=%~n0
SET /A looptime= 30 * 1000
:loop
SET hour=%time:~0,2%
IF "%hour:~0,1%" == " " SET hour=0%hour:~1,1%
SET min=%time:~3,2%
IF "%min:~0,1%" == " " SET min=0%min:~1,1%
SET secs=%time:~6,2%
IF "%secs:~0,1%" == " " SET secs=0%secs:~1,1%
SET year=%date:~-4%
SET month=%date:~3,2%
IF "%month:~0,1%" == " " SET month=0%month:~1,1%
SET day=%date:~0,2%
IF "%day:~0,1%" == " " SET day=0%day:~1,1%
SET _my_datetime=%year%-%month%-%day%_%hour%-%min%-%secs%
ECHO -------- %_my_datetime% --------
ECHO Model: %model%
ECHO.
SET file=%savedir%\%model%_%_my_datetime%.flv
call :rtmp
CALL :setsize %file%
IF %size%==0 DEL %file%
ping 192.0.2.2 -n 1 -w %looptime% > nul
GOTO loop
:rtmp
SET /A ser1=%random% %%50 + 5
SET /A ser2=%random% %%13 + 2
SET /A ser3=%random% %%2 + 1
IF %ser3% EQU 1 (SET ser3=a) ELSE (SET ser3=b)
ECHO Using RTMPdump with:
ECHO "rtmp://edge%ser1%-%ser3%.stream.highwebmedia.com/live-edge"
ECHO "mp4:rtmp://origin%ser2%.stream.highwebmedia.com/live-origin/%model%"
ECHO:
rtmpdump -r "rtmp://edge%ser1%-%ser3%.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 20,0,0,267" -W "https://chaturbate.com/static/flash/CBV_2p647.swf" -p "https://chaturbate.com/%model%/" -C S:AnonymousUser -C S:%model% -C S:2.646 -C S:anonymous -C S:8f034c5320f2d277c18d2c60da29eb8d2201d933ad843e38d87df9dc3ff26150 --live -y "mp4:rtmp://origin%ser2%.stream.highwebmedia.com/live-origin/%model%" -o "%file%"
GOTO :eof
:setsize
SET size=%~z1
GOTO :eof
Regards.