alltube/FAQ.md

105 lines
3.1 KiB
Markdown
Raw Normal View History

2016-07-27 13:20:13 +02:00
# Frequently asked questions
2016-10-05 17:08:46 +02:00
<!-- markdownlint-disable MD026 -->
2016-07-27 13:20:13 +02:00
## My browser plays the video. How do I download it?
2016-10-05 17:08:46 +02:00
2016-07-27 13:20:13 +02: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 13:36:31 +02:00
## How do I change config parameters?
2016-10-05 17:08:46 +02:00
2016-07-27 13:36:31 +02: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 17:08:46 +02:00
2017-01-11 12:31:21 +01:00
* `youtubedl`: path to your youtube-dl binary
* `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.
2016-07-27 13:36:31 +02:00
## How do I enable audio conversion?
2016-10-05 17:08:46 +02:00
2016-07-27 13:36:31 +02:00
In order to enable audio conversion, you need to add this to your `config.yml` file:
2016-10-05 17:08:46 +02:00
2016-07-27 13:36:31 +02:00
```yaml
convert: true
2016-07-28 02:07:40 +02:00
avconv: path/to/avconv
2016-07-27 13:36:31 +02:00
```
2016-10-05 17:08:46 +02:00
2016-07-27 13:36:31 +02:00
You will also need to install `avconv` and `curl` on your server:
2016-10-05 17:08:46 +02:00
2016-07-27 13:36:31 +02:00
```bash
sudo apt-get install libav-tools curl
```
2016-10-05 17:16:28 +02:00
## How do I deploy Alltube on Heroku?
Create a dyno with the following buildpacks:
* `heroku/php`
2017-01-01 19:32:19 +01:00
* `heroku/nodejs`
* `heroku/python`
You might also need to add the following config variables:
```env
CONVERT=1
PYTHON=/app/.heroku/python/bin/python
```
2016-10-05 17:16:28 +02:00
Then push the code to Heroku and it should work out of the box.
## Why can't I download videos from some websites (e.g. Dailymotion)
Some websites generate an unique video URL for each IP address. When using Alltube, the URL is generated for our server's IP address and your computer is not allowed to use it.
There are two known workarounds:
* You can run Alltube locally on your computer.
* You can use the experimental `feature/stream` branch which streams the video through the server in order to bypass IP restrictions.
Please note that this can use a lot of resources on the server (which is why we won't enable it on alltubedownload.net).
## CSS and JavaScript files are missing
You probably don't have the minified files (in the `dist` folder).
You need to either:
* Use a [release package](https://github.com/Rudloff/alltube/releases)
* Run `npm install` (see detailed instructions in the [README](README.md#from-git))
2017-01-11 12:29:31 +01:00
## I get a 404 error on every page except the index
This is probably because your server does not have mod_rewrite or AllowOverride is disabled.
You can work around this by adding this to your `config.yml` file:
```yaml
uglyUrls: true
```
2017-01-16 12:09:25 +01:00
## How do I enable streaming videos through the server?
You need to add this to your `config.yml` file:
```yaml
stream: true
```
Note that this can use a lot of ressources on your server.
## I want to download M3U videos
You need to enable streaming (see above).
## The downloaded videos have a strange name like `videoplayback.mp4`
Alltube can rename videos automatically if you enable streaming (see above).
## I want to download a video that isn't available in my country
If the video is available in the server's country, you can download it if you enable streaming (see above).