View Single Post
  #76  
Old 07-31-2017, 03:47 AM
Damianonymous Damianonymous is offline
Senior Member
 
Join Date: Jan 2017
Posts: 187
Damianonymous is on a distinguished road
Default

Re: streamlink: an up to date fork of livestreamer




Does someone use Streamlink regularly to record Chaturbate? Does Streamlink work so badly, poor quality, freezing, etc. Or is it a problem with this script?

Code:
@echo off
setlocal enableDelayedExpansion

set USERNAME=AnonymousUser
set PASSWORD=anonymous
set CB_VERSION=9

set SECONDS=30

set /p model=Enter username: 
set model=%model:https://chaturbate.com/=%
set model=%model:/=%

set OUT_DIR=captures

if not exist %OUT_DIR% (mkdir %OUT_DIR%)

for /L %%i in (1,1,99) do (
  set N=!time:~9,12!
  set /a N=10000!N! %% 10000
  set rand=!random!
  set /a rand=!rand!* 31/32768+1
  set /a rand=!N!+!rand!
  set /a rand=!rand!*31/131+1
)
set server=edge%rand%

:doCapture
for /r %%F in (*) do if %%~zF==0 @del "%%F"
set ts=%date:/=-%_%time::=-%
set ts=%ts: =%
set output=%OUT_DIR%\%model%_%ts%.ts
set PASSWORD=%PASSWORD:\u003D==%

color 2F && title %model% @ %time% - %server%
cls && echo Capturing: %model% @ %time% - %server% && echo.

streamlink "https://chaturbate.com/%model%/" best --http-header "swfUrl=https://chaturbate.com/static/flash/CBV_2p670.swf" --http-header "flashVer=WIN 26.0.0.137" -o "%OUT_DIR%\%model%_%ts%.ts"


for %%r in (%output%) do (
  if %%~zr lss 1 del %output%
  color 4F && title %model% - OFFLINE
)

set /a rand=%random%*31/32768+1
set server=edge%rand%

timeout %SECONDS%
goto doCapture
Reply With Quote