Open alekssobolewski opened 5 years ago
Hi. It's very raw project and I'm not sure it's posible to run it as is without any fixes.
You should create .env file by yourself. Sample you can find in README.md. You need to specify at least TEMPORARY_PATH.
If you don't want to upload files to vk.com, only store them locally you can do not specify ACCESS_TOKEN and comment following line https://github.com/userqq/chaturbate-recorder/blob/master/app/stream/File.php#L106
Thanks for answer!
Installing some additional PHP modules solved the case and now script seems to run smoothly. Here is part of the log (I have run it in screen session for some time).
PHP Warning: Module 'memcached' already loaded in Unknown on line 0
2019-05-10 13:11:30 > karlakole online
2019-05-10 13:22:25 > lagerthaviking online
2019-05-10 13:22:25 > lagerthaviking gone
2019-05-10 13:22:26 > lagerthaviking online
2019-05-10 13:22:26 > lagerthaviking gone
2019-05-10 13:22:26 > lagerthaviking online
2019-05-10 13:22:27 > lagerthaviking gone
2019-05-10 13:22:28 > lagerthaviking online
2019-05-10 13:22:28 > lagerthaviking gone
2019-05-10 13:22:29 > lagerthaviking online
2019-05-10 13:22:29 > lagerthaviking gone
2019-05-10 13:22:29 > lagerthaviking online
In .env
I specified VK API key form application created at vk.com/apps and TEMPORARY_PATH
is pointed to directory in root. Now the problem is that there are no recordings either in that temp folder or VK.
Is TEMPORARY_PATH accessible for writting from user which runs the script?
Also you need to use token instead of api key. To get token you can open in browser following link: https://oauth.vk.com/authorize?client_id=YOUR_API_CLIENT_ID&scope=9999999&redirect_uri=http://oauth.vk.com/blank.html&display=touch&response_type=token and click "Allow", then copy access_token param from url bar.
I think so. Script is being run by root, and the temp directory is set /root/rec
.
Thanks for instructions for obtaining the correct token. Unfortunately your link is not working, here is version that worked out for me. I somehow figured it out.
https://oauth.vk.com/authorize?client_id=
I have set the correct token and now waiting for videos to appear on my VK account.
Here is another fragment of the log
2019-05-10 16:58:20 > blue_cat_emma online
2019-05-10 16:58:21 > siswet19 online
2019-05-10 16:58:22 > sarahminage online
2019-05-10 16:58:31 > reddevilsroom online
2019-05-10 16:58:33 > lagerthaviking online
2019-05-10 17:06:00 > mohawkmolly online
2019-05-10 17:06:01 > mohawkmolly gone
2019-05-10 17:06:01 > mohawkmolly online
2019-05-10 17:06:01 > mohawkmolly gone
2019-05-10 17:06:02 > mohawkmolly online
2019-05-10 17:06:02 > mohawkmolly gone
2019-05-10 17:06:03 > mohawkmolly online
There are still no recordings on drive or on VK. After reading the code and log I think that script is not even trying to send video to VK. I suspect to see in log something like will upload file ... for model ...
from Uploader.php
Okay, first success - recording is working. Streams are being recorded, but upload to VK does not work.
Hi, @userqq would you like to help me with installation and first run of this script?
I have installed php7.2 with php-cli, eio and composer. After running
composer install
there are no errors, but./index.php
orphp index.php
gives no output. There is also no.env
file generated.