2016-07-27 11:20:13 +00:00
|
|
|
# Frequently asked questions
|
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## My browser plays the video instead of downloading 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.
|
2018-10-10 09:42:30 +00:00
|
|
|
You can usually download the video by doing *File > Save to* or *ctrl + S*.
|
2016-07-27 11:36:31 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## [alltubedownload.net](https://alltubedownload.net) is too slow
|
2018-08-13 07:40:14 +00:00
|
|
|
|
|
|
|
[alltubedownload.net](https://alltubedownload.net) is hosted on a free [Heroku server](https://www.heroku.com/pricing)
|
|
|
|
so it has low RAM and CPU.
|
|
|
|
|
|
|
|
AllTube probably won't switch to a more expensive hosting
|
2020-11-08 18:53:42 +00:00
|
|
|
because this project does not earn any financial resources
|
2018-08-13 07:40:14 +00:00
|
|
|
and you are encouraged to host it yourself.
|
|
|
|
|
|
|
|
## alltubedownload.net often says "An error occurred in the application…"
|
|
|
|
|
|
|
|
See above.
|
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## 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-10-05 15:08:46 +00:00
|
|
|
|
2018-01-20 10:58:07 +00:00
|
|
|
See [`config.example.yml`](../config/config.example.yml)
|
|
|
|
for a list of parameters you can set and their default value.
|
2016-07-27 11:36:31 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## 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
|
2020-06-22 21:26:47 +00:00
|
|
|
ffmpeg: path/to/ffmpeg
|
2016-07-27 11:36:31 +00:00
|
|
|
```
|
2016-10-05 15:08:46 +00:00
|
|
|
|
2020-06-22 21:26:47 +00:00
|
|
|
You will also need to install `ffmpeg` on your server:
|
2016-10-05 15:08:46 +00:00
|
|
|
|
2016-07-27 11:36:31 +00:00
|
|
|
```bash
|
2020-06-22 21:26:47 +00:00
|
|
|
sudo apt-get install ffmpeg
|
2016-07-27 11:36:31 +00:00
|
|
|
```
|
2016-10-05 15:16:28 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Deploy AllTube on Heroku
|
2016-10-05 15:16:28 +00:00
|
|
|
|
|
|
|
Create a dyno with the following buildpacks:
|
|
|
|
|
|
|
|
* `heroku/php`
|
2017-01-01 18:32:19 +00:00
|
|
|
* `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.
|
2016-10-10 15:05:36 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## I can't download videos from some websites (e.g. Dailymotion)
|
2016-10-10 15:05:36 +00:00
|
|
|
|
2017-12-20 10:21:36 +00:00
|
|
|
Some websites generate an unique video URL for each IP address.
|
2018-03-19 14:49:22 +00:00
|
|
|
When using AllTube, the URL is generated for our server's IP address
|
2017-12-20 10:21:36 +00:00
|
|
|
and your computer is not allowed to use it.
|
2019-05-04 17:01:36 +00:00
|
|
|
(This is also known to happen with Vevo YouTube videos.)
|
2016-10-10 15:05:36 +00:00
|
|
|
|
|
|
|
There are two known workarounds:
|
|
|
|
|
2018-03-19 14:49:22 +00:00
|
|
|
* 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).
|
2016-10-17 09:22:53 +00:00
|
|
|
|
2017-01-11 11:29:31 +00:00
|
|
|
## I get a 404 error on every page except the index
|
|
|
|
|
2018-04-24 12:58:30 +00:00
|
|
|
This is probably because your server does not have [mod_rewrite](https://httpd.apache.org/docs/current/mod/mod_rewrite.html)
|
|
|
|
or [AllowOverride](https://httpd.apache.org/docs/current/mod/core.html#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
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Enable streaming videos through the server
|
2017-01-16 11:09:25 +00:00
|
|
|
|
|
|
|
You need to add this to your `config.yml` file:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
stream: true
|
|
|
|
```
|
|
|
|
|
2020-11-08 18:53:42 +00:00
|
|
|
Note that this can use a lot of resources on your server.
|
2017-01-16 11:09:25 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Download M3U videos
|
2017-01-16 11:09:25 +00:00
|
|
|
|
|
|
|
You need to enable streaming (see above).
|
|
|
|
|
|
|
|
## The downloaded videos have a strange name like `videoplayback.mp4`
|
|
|
|
|
2018-03-19 14:49:22 +00:00
|
|
|
AllTube can rename videos automatically if you enable streaming (see above).
|
2017-01-16 11:09:25 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Download a video that isn't available in my country
|
2017-01-16 11:09:25 +00:00
|
|
|
|
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-01-19 21:10:44 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Run the Docker image
|
2017-03-29 19:30:02 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
docker run -p 8080:80 rudloff/alltube
|
|
|
|
```
|
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Download 1080p videos from Youtube
|
2017-04-28 14:13:39 +00:00
|
|
|
|
|
|
|
Youtube distributes HD content in two separate video and audio files.
|
2018-03-19 14:49:22 +00:00
|
|
|
So AllTube will offer you video-only and audio-only formats in the format list.
|
2017-04-28 14:13:39 +00:00
|
|
|
|
|
|
|
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
|
2018-12-26 11:01:50 +00:00
|
|
|
that will merge the best video and the best audio format on the fly:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
remux: true
|
|
|
|
```
|
2018-01-24 22:30:24 +00:00
|
|
|
|
2018-10-10 09:42:30 +00:00
|
|
|
## Convert videos to something other than MP3
|
2018-01-24 22:30:24 +00:00
|
|
|
|
|
|
|
By default the `convert` option only allows converting to MP3,
|
2020-11-08 18:53:42 +00:00
|
|
|
in order to keep things simple and resources usage low.
|
2018-01-24 22:30:24 +00:00
|
|
|
However, you can use the `convertAdvanced` option like this:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
convertAdvanced: true
|
|
|
|
convertAdvancedFormats: [mp3, avi, flv, wav]
|
|
|
|
```
|
|
|
|
|
|
|
|
This will add new inputs on the download page
|
|
|
|
that allow users to converted videos to other formats.
|
2019-05-08 17:46:37 +00:00
|
|
|
|
|
|
|
## Use other youtube-dl generic formats (e.g. `bestaudio`)
|
|
|
|
|
|
|
|
You can add new formats by using the `genericFormats` option,
|
|
|
|
for example:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
genericFormats:
|
|
|
|
bestaudio: Best audio
|
|
|
|
```
|
|
|
|
|
|
|
|
These will be available on every video page.
|