Most recent browsers automatically play a video if it is a format they know how to play. You can usually download the video by doing File > Save to or ctrl + S.
You need to create a YAML file called config.yml
in the config/
folder.
See config.example.yml
for a list of parameters you can set and their default value.
In order to enable audio conversion, you need to add this to your config.yml
file:
convert: true
ffmpeg: path/to/ffmpeg
You will also need to install ffmpeg
on your server:
sudo apt-get install ffmpeg
Create a dyno with the following buildpacks:
heroku/php
heroku/python
You might also need to add the following config variables:
CONVERT=1
PYTHON=/app/.heroku/python/bin/python
Then push the code to Heroku and it should work out of the box.
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. (This is also known to happen with Vevo YouTube videos.)
There are two known workarounds:
- You can run AllTube locally on your computer.
- You can enable streaming videos through the server (see below). Please note that this can use a lot of resources on the server.
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:
uglyUrls: true
You need to add this to your config.yml
file:
stream: true
Note that this can use a lot of resources on your server.
You need to enable streaming (see above).
AllTube can rename videos automatically if you enable streaming (see above).
If the video is available in the server's country, you can download it if you enable streaming (see above).
docker run -p 8080:80 rudloff/alltube
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.
You can also enable the experimental remux mode that will merge the best video and the best audio format on the fly:
remux: true
By default the convert
option only allows converting to MP3,
in order to keep things simple and resources usage low.
However, you can use the convertAdvanced
option like this:
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.
You can add new formats by using the genericFormats
option,
for example:
genericFormats:
bestaudio: Best audio
These will be available on every video page.