Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (Adult streaming videos) (http://stream-recorder.com/forum/forumdisplay.php?f=40)
-   -  

chaturbate recording

(http://stream-recorder.com/forum/showthread.php?t=23953)

AgentClapTrap 06-13-2018 10:18 AM

chaturbate recording


 
not sure if i can but how do i change the resolution for the stream when im using this code

@echo off
setlocal enableDelayedExpansion

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

set SECONDS=15

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

set OUT_DIR=captures\%model%

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%.flv
set PASSWORD=%PASSWORD:\u003D==%

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

rtmpdump --live --timeout 20 ^
-r "rtmp://%server%.stream.highwebmedia.com/live-edge" ^
-p "http://chaturbate.com/%model%" ^
-C S:%USERNAME% ^
-C S:%model% ^
-C S:%CB_VERSION% ^
-C S:%PASSWORD% ^
-y "playpath" -o %output%

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

j_cool 06-13-2018 10:29 AM

Re: chaturbate recording


 
It is not possible to change resolution for rtmp stream, apart from resizing a player.

Get hls stream with streamlink or youtube-dl.


C:\streamlink.exe https://chaturbate.com/sassy3va/
[console][info] Found matching plugin chaturbate for URL https://chaturbate.com/sassy3va/
[plugin.chaturbate][info] Stream status: public
Available streams: 240p (worst), 360p, 480p, 576p, 720p, 1080p (best)


C:\>youtube-dl.exe -F https://chaturbate.com/sassy3va/
[Chaturbate] sassy3va: Downloading webpage
[Chaturbate] sassy3va: Downloading m3u8 information
[info] Available formats for sassy3va:
format code extension resolution note
slow-0 mp4 426x240 488k , avc1.66.21, mp4a.40.2
slow-1 mp4 640x360 928k , avc1.66.30, mp4a.40.2
slow-2 mp4 854x480 1258k , avc1.77.31, mp4a.40.2
slow-3 mp4 1024x576 2076k , avc1.77.31, mp4a.40.2
slow-4 mp4 1280x720 3396k , avc1.77.31, mp4a.40.2
slow-5 mp4 1920x1080 5628k , avc1.100.40, mp4a.40.2 (best)

Damianonymous 06-15-2018 02:05 AM

Re: chaturbate recording


 
Quote:

Originally Posted by AgentClapTrap (Post 96415)
not sure if i can but how do i change the resolution for the stream when im using this code

As Johnny wrote you, install Streamlink and change your code, for example:

Code:

@echo off
set /a counts=1
set /p model=Enter username:
set model=%model:https://chaturbate.com/=%
set model=%model:/=%
set out_dir=chaturbate\%model%

if not exist %out_dir% (mkdir %out_dir%)

:main
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
set "datestamp=%YYYY%%MM%%DD%" & set "timestamp=%HH%%Min%%Sec%"
set "fullstamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%"

set "model=%model%"
set "filename=%model%_CB_%fullstamp%.ts"

echo.
echo %filename% Stream Starts - try %counts%
::echo %filename%
echo.

color 2F && title %model% @ %time%

call streamlink https://chaturbate.com/%model% best -o %out_dir%\%filename%

color 4F && title %model% - OFFLINE

timeout /t 30
cls
set /a counts=counts+1
goto main
exit

Change in the command "best" for the resolution you are looking for, 240p, 480p etc.


All times are GMT -6. The time now is 03:14 PM.