alltube/FAQ.md

48 lines
1.3 KiB
Markdown
Raw Normal View History

2016-07-27 11:20:13 +00:00
# Frequently asked questions
2016-10-05 15:08:46 +00:00
<!-- markdownlint-disable MD026 -->
2016-07-27 11:20:13 +00:00
## My browser plays the video. How do I download it?
2016-10-05 15:08:46 +00:00
2016-07-27 11:20:13 +00:00
Most recent browsers automatically play a video if it is a format they know how to play.
You can ususally download the video by doing *File > Save to* or *ctrl + S*.
2016-07-27 11:36:31 +00:00
## How do I change config parameters?
2016-10-05 15:08:46 +00:00
2016-07-27 11:36:31 +00:00
You need to create a YAML file called `config.yml` at the root of your project.
Here are the parameters that you can set:
2016-10-05 15:08:46 +00:00
2016-07-28 00:07:40 +00:00
* youtubedl: path to your youtube-dl binary
2016-07-27 11:36:31 +00:00
* python: path to your python binary
* params: an array of parameters to pass to youtube-dl
* curl_params: an array of parameters to pass to curl
* convert: true to enable audio conversion
* avconv: path to your avconv or ffmpeg binary
* rtmpdump: path to your rtmpdump binary
See [config.example.yml](config.example.yml) for default values.
## How do I enable audio conversion?
2016-10-05 15:08:46 +00:00
2016-07-27 11:36:31 +00:00
In order to enable audio conversion, you need to add this to your `config.yml` file:
2016-10-05 15:08:46 +00:00
2016-07-27 11:36:31 +00:00
```yaml
convert: true
2016-07-28 00:07:40 +00:00
avconv: path/to/avconv
2016-07-27 11:36:31 +00:00
```
2016-10-05 15:08:46 +00:00
2016-07-27 11:36:31 +00:00
You will also need to install `avconv` and `curl` on your server:
2016-10-05 15:08:46 +00:00
2016-07-27 11:36:31 +00:00
```bash
sudo apt-get install libav-tools curl
```
2016-10-05 15:16:28 +00:00
## How do I deploy Alltube on Heroku?
Create a dyno with the following buildpacks:
* `heroku/php`
* `https://github.com/heroku/heroku-buildpack-nodejs`
Then push the code to Heroku and it should work out of the box.