alltube/resources/FAQ.md

150 lines
4 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
2017-12-20 10:21:36 +00:00
Most recent browsers automatically play a video
if it is a format they know how to play.
2016-07-27 11:20:13 +00:00
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
2017-05-15 05:25:14 +00:00
You need to create a YAML file called `config.yml` in the `config/` folder.
2016-07-27 11:36:31 +00:00
Here are the parameters that you can set:
2016-10-05 15:08:46 +00:00
2017-01-11 11:31:21 +00:00
* `youtubedl`: path to your youtube-dl binary
* `python`: path to your python binary
* `params`: an array of parameters to pass to youtube-dl
* `convert`: true to enable audio conversion
* `avconv`: path to your avconv or ffmpeg binary
2017-04-28 14:13:39 +00:00
* `remux`: enable remux mode (experimental)
2017-01-11 11:31:21 +00:00
2017-09-06 08:59:30 +00:00
See [`config.example.yml`](../config/config.example.yml) for default values.
2016-07-27 11:36:31 +00:00
## 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
You will also need to install `avconv` 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
2016-07-27 11:36:31 +00:00
```
2016-10-05 15:16:28 +00:00
## How do I deploy Alltube on Heroku?
Create a dyno with the following buildpacks:
* `heroku/php`
2017-01-01 18:32:19 +00: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 15:16:28 +00: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)
2017-12-20 10:21:36 +00:00
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.
2017-01-19 21:29:34 +00:00
* You can enable streaming videos through the server (see below).
2017-12-20 10:21:36 +00:00
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)
2017-10-17 13:27:57 +00:00
* Run `yarn install` (see detailed instructions in the [README](../README.md#from-git))
2017-01-11 11:29:31 +00:00
## I get a 404 error on every page except the index
2017-12-20 10:21:36 +00:00
This is probably because your server does not have mod_rewrite
or AllowOverride is disabled.
2017-01-11 11:29:31 +00:00
You can work around this by adding this to your `config.yml` file:
```yaml
uglyUrls: true
```
2017-01-16 11:09:25 +00: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
2017-12-20 10:21:36 +00:00
If the video is available in the server's country,
you can download it if you enable streaming (see above).
2017-03-29 19:30:02 +00:00
## How do I run the Docker image?
```bash
docker run -p 8080:80 rudloff/alltube
```
## How do I run Heroku locally?
2017-03-12 11:26:33 +00:00
You should be able to use `heroku local` like this:
```bash
2017-12-20 10:21:36 +00:00
sudo APACHE_LOCK_DIR=. APACHE_PID_FILE=./pid APACHE_RUN_USER=www-data \
APACHE_RUN_GROUP=www-data APACHE_LOG_DIR=. \
heroku local
```
You might need to create some symlinks before that:
```bash
ln -s /usr/sbin/apache2 /usr/sbin/httpd
ln -s /usr/sbin/php-fpm7.0 /usr/sbin/php-fpm
```
2017-12-20 10:21:36 +00:00
And you probably need to run this in another terminal
after `heroku local` has finished launching `php-fpm`:
```bash
chmod 0667 /tmp/heroku.fcgi.5000.sock
```
2017-04-28 14:13:39 +00:00
## How can I download 1080p videos from Youtube?
Youtube distributes HD content in two separate video and audio files.
So Alltube will offer you video-only and audio-only formats in the format list.
You then need to merge them together with a tool like ffmpeg.
2017-12-20 10:21:36 +00:00
You can also enable the experimental remux mode
that will merge the best video and the best audio format on the fly.