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)
-   -  

How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to work

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

scotchwiz2 09-14-2016 03:02 PM

How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to work


 
I've had Capturebate working for years in Ubuntu 12.04, but I was recently forced to change servers. The new one is Ubuntu 16.04 and nothing I try works =/ (Although it's possible that there's some setting or dependency I don't know about is blocking it.)

Capturebate seems to run smoothly until it's time to record the actual stream. Then it creates a 0kb file and dies. If I run the leftover shell script myself with the --verbose option, I get:

Code:

DEBUG: Property: <Name:              level, STRING:    error>
DEBUG: Property: <Name:              code, STRING:    NetStream.Play.Failed>
DEBUG: Property: <Name:        description, STRING:    security>
DEBUG: Property: <Name:          clientid, NUMBER:    817360195.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Failed
ERROR: Closing connection: NetStream.Play.Failed

(Here's the full output on Pastebin)

Here's the actual command from the model.sh file, with my personal information changed. I've tried it with the rtmpdump binary you compile from ksv (that comes with Capturebate), the rtmpdump that you get with apt-get install rtmpdump, and the rtmpdump from my old server.

Code:

/home/me/cb/rtmpdump-ksv/rtmpdump --quiet --live --rtmp "rtmp://edge9.stream.highwebmedia.com/live-edge" --pageUrl "http://chaturbate.com/chroniclove" --conn S:myusername --conn S:chroniclove --conn S:2.645 --conn S:pbkdf2_sha256\$24000\$xxxxxxxxxx\$xxxxxxxxxxxgxxxyxxxxxxxxxxxxxxxxxxxxxx\= --token "xxx#xxxxxxxxx@xxxxxx" --playpath "playpath" --flv "/home/me/CaptureBate/captured/chroniclove_09-14-2016_16.35.flv"
I've tried running rtmpsuck and it successfully gives me output with Chaturbate (although oddly, I can't get it to work with any other site). Here are the results of rtmpsuck:

Code:

(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Processing connect
app: live-edge
flashVer: LNX 11,2,202,632
swfUrl: https://chaturbate.com/static/flash/CBV_2p650.swf
tcUrl: rtmp://edge12.stream.highwebmedia.com/live-edge
pageUrl: https://chaturbate.com/chroniclove/
WARNING: Trying different position for client digest!
Processing connect
app: live-chat
flashVer: LNX 11,2,202,632
swfUrl: https://chaturbate.com/static/flash/CBV_2p650.swf
tcUrl: rtmp://chat3.highwebmedia.com/live-chat
pageUrl: https://chaturbate.com/chroniclove/
Playpath: mp4:rtmp://origin17.stream.highwebmedia.com/live-origin/chroniclove-sd-4eb78e9eb5231a70fa31c8236be0d6550ebbf5e6cda1b805fdfec3021c008523
Saving as: chroniclove-sd-4eb78e9eb5231a70fa31c8236be0d6550ebbf5e6cda1b805fdfec3021c008523
WARNING: ignoring too small audio packet: size: 0

If I take that output and put it back into rtmpdump like this:

Code:

#!/bin/bash
/usr/bin/rtmpdump \
--rtmp rtmp://edge12.stream.highwebmedia.com/live-edge \
--playpath mp4:rtmp://origin17.stream.highwebmedia.com/live-origin/chroniclove-sd-4eb78e9eb5231a70fa31c8236be0d6550ebbf5e6cda1b805fdfec3021c008523 \
--app live-edge \
-W https://chaturbate.com/static/flash/CBV_2p650.swf \
--pageUrl https://chaturbate.com/chroniclove/ \
--flashVer "LNX 11,2,202,632" \
-o rttest.flv \
--verbose \
--live \

I get a different error:

Code:

DEBUG: Property: <Name:              level, STRING:    error>
DEBUG: Property: <Name:              code, STRING:    NetStream.Play.Failed>
DEBUG: Property: <Name:        description, STRING:    security>
DEBUG: Property: <Name:          clientid, NUMBER:    246530619.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Failed
ERROR: Closing connection: NetStream.Play.Failed

(Here's a pastebin of the full output)

Basically, I just completely stuck here. I've been banging my head against this all week, trying different things.

I would be grateful for any scripting solution for recording shows in Ubuntu 16.04. It doesn't have to be Capturebate; if I can find a rtmpdump command that works (or anything else that works), I'll write my own scripts to do it automatically. I know there are supposedly Firefox plugins that will do it, but I'd rather not do that; I'd rather use a script, or something that works completely on the command line.

Thanks to anyone who took the time to read this.

ihryjfbd 09-14-2016 05:13 PM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
Keep in mind the swf and server change around alot, what you need is a script that generates them
from the --pageUrl

rtmp://edge?.stream.highwebmedia.com/live-edge
CBV_?????.swf

Code:

@echo off
setlocal enableDelayedExpansion

set USERNAME=AnonymousUser
set PASSWORD=anonymous
set CB_VERSION=9
set OUT_DIR=
set SECONDS=15

set /p model=Enter username:
set model=%model:https://chaturbate.com/=%
set model=%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
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


scotchwiz2 09-14-2016 10:16 PM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
But Capturebate does all that, and outputs a command. It's that the command isn't working anymore on Ubuntu 16. (It works on my Ubuntu 12 box.)

The command is
Code:

/home/me/cb/rtmpdump-ksv/rtmpdump --quiet --live --rtmp "rtmp://edge9.stream.highwebmedia.com/live-edge" --pageUrl "http://chaturbate.com/chroniclove" --conn S:myusername --conn S:chroniclove --conn S:2.645 --conn S:pbkdf2_sha256\$24000\$xxxxxxxxxx\$xxxxxxxxxxxgxxxyxxxxxxxxxxxxxxxxxxxxxx\= --token "xxx#xxxxxxxxx@xxxxxx" --playpath "playpath" --flv "/home/me/CaptureBate/captured/chroniclove_09-14-2016_16.35.flv"

ihryjfbd 09-15-2016 09:30 AM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
Have you tried signing into your account to see if your account is still valid? my account is still valid but had login problems yesterday and wouldn't record, usr:AnonymousUser pass:anonymous still worked fine to record though, it's working again now today though.
It's worth keep two scripts around one for your account and another one for AnonymousUser
You could also try changing the commands from long name to short name,
although i'm sure the verbose log would spit out a unsupported error
command if that where the case, from the look of your log it's failing to validate login.
Does chaturbaterec work in wine?

scotchwiz2 09-15-2016 11:30 AM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
Quote:

Originally Posted by ihryjfbd (Post 87549)
Have you tried signing into your account to see if your account is still valid?

Yes, and it is (although once in a great while Capturebate would stop working, and I would have to sign in and out to make it work again).

Quote:

Does chaturbaterec work in wine?
I actually don't know what either of those things are! :o So no, I've never tried it. Is it something that can be automated on the command line in Linux?

ihryjfbd 09-15-2016 10:27 PM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
Quote:

Originally Posted by scotchwiz2 (Post 87550)
Yes, and it is (although once in a great while Capturebate would stop working, and I would have to sign in and out to make it work again).



I actually don't know what either of those things are! :o So no, I've never tried it. Is it something that can be automated on the command line in Linux?

chaturbaterec is windows program a fully intergrated chaturbate client.
wine is used to emulate windows programs under linux.

supersonic80 09-16-2016 04:34 AM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
I also experienced the problem with rtmpdump on Ubuntu 16.04, however managed to solve the issue.

I just want to say it's possible, but I could not give you the right answer straight away, because is was a couple month ago and I don't remember it. But, what I'm gonna recommend you is to check librtmp.so.1 library, apparently Ubuntu by default has it's own version of this file and even though you compile you own rtmpdump, it uses wrong library and fails.

Try to replace the library. Let me know, if the problem is still there.

scotchwiz2 09-16-2016 02:05 PM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
How would I force it to use the version I want it to use?

Just to be on the safe side, I just now tried installing the patched version via these instructions; still a no go.

supersonic80 09-16-2016 03:29 PM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
[quote=scotchwiz2;87573]How would I force it to use the version I want it to use?

sudo find / -name "librtmp.so.1"

there will be several paths, something like (more or less)
/usr/lib/i386-linux-gnu/librtmp.so.1
/usr/local/lib/librtmp.so.1

copy and replace these files by your newly compiled library (should be in subfolder for your rtmpdump-ksv)

Moonspell 09-16-2016 07:25 PM

Re: How to record Chaturbate in Ubuntu 16? Can't get Capturebate or other methods to


 
Quote:

Originally Posted by ihryjfbd (Post 87557)
chaturbaterec is windows program a fully intergrated chaturbate client.
wine is used to emulate windows programs under linux.

Exactly, and you have much less pain in the ass, and solve the problem easily :)
Cheers.


All times are GMT -6. The time now is 01:37 PM.