PDA

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


scotchwiz2
09-14-2016, 03:02 PM
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:

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) (http://pastebin.com/CK38SBMJ)

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.


/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\$xxxxxxxxxxxgxx xyxxxxxxxxxxxxxxxxxxxxxx\= --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:

(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-4eb78e9eb5231a70fa31c8236be0d6550ebbf5e6cda1b805fd fec3021c008523
Saving as: chroniclove-sd-4eb78e9eb5231a70fa31c8236be0d6550ebbf5e6cda1b805fd fec3021c008523
WARNING: ignoring too small audio packet: size: 0


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

#!/bin/bash
/usr/bin/rtmpdump \
--rtmp rtmp://edge12.stream.highwebmedia.com/live-edge \
--playpath mp4:rtmp://origin17.stream.highwebmedia.com/live-origin/chroniclove-sd-4eb78e9eb5231a70fa31c8236be0d6550ebbf5e6cda1b805fd fec3021c008523 \
--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:

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) (http://pastebin.com/h4HCMLsj)

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

@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
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 /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\$xxxxxxxxxxxgxx xyxxxxxxxxxxxxxxxxxxxxxx\= --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
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
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).

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
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
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
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 (http://stream-recorder.com/forum/showpost.php?p=73567&postcount=6); still a no go.

supersonic80
09-16-2016, 03:29 PM
[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
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.

ihryjfbd
09-16-2016, 08:58 PM
Exactly, and you have much less pain in the ass, and solve the problem easily :)
Cheers.

ChaturbateRec worked with Wine then? good to know :)
might have to install Ubuntu touch on my tablet since Kodi for Android is useless for recording iptv.

scotchwiz2
09-16-2016, 08:59 PM
IT WORKS! Finally, after weeks.

It must have been building the patched version that did it. But it wasn't working when I first built it and posted that reply. I guess on my final test something else must have been wrong-- maybe there were no models online and I didn't double check that the files in 'captured' were new.

But that's the version I'm executing now so it must have worked.

The final build instructions I used were these (http://stream-recorder.com/forum/rtmpdump-do-compile-source-code-linux-like-t4229p4.html?), which, you'll notice, say to copy the file librtmp.so.0-- a file that doesn't exist. So I made it; I just copied librtmp.so.1 to librtmp.so.0 because I was trying everything. Edit: After doing that I also did an apt-get update and apt-get upgrade.

I wish I knew what finally made it work. But it was installing the patches via one of those sets of instructions, probably the last one. Thanks for pointing me in the right direction supersonic80!

Moonspell
09-16-2016, 09:28 PM
ChaturbateRec worked with Wine then? good to know :)
might have to install Ubuntu touch on my tablet since Kodi for Android is useless for recording iptv.

A little bit OT : but how do you install ubuntu in your tablet :O That's new to me; really great to know, eventually.
Regarding Kodi - i never ever used it on my android devices, to me personally it sucks much more than VLC