Rudloff / alltube

Web GUI for youtube-dl
GNU General Public License v3.0
2.94k stars 584 forks source link

How to install ffmpeg in heroku? #360

Open chiyi4488 opened 3 years ago

chiyi4488 commented 3 years ago

Hi, just now I clicked on the Deploy to Heroku button in README and I noticed that I have to install ffmpeg if I need to convert to another format. Here are the steps I took to install it.

  1. heroku app setting, add Buildpacks https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

image

  1. redeploy

image

When I finished redeploying, I noticed that the site was not different and no new transcripts were added. I'm guessing it's a path error, but I don't know what the correct path is. Can anyone help me with this?

Translated with www.DeepL.com/Translator (free version)

Rudloff commented 3 years ago

Hello, Our Heroku setup does not include ffmpeg so you will have to figure out how to install it by yourself.

When I finished redeploying, I noticed that the site was not different and no new transcripts were added.

What were you expecting to see? You added a screenshot of the format list but this list contains the formats available on the video website, so having ffmpeg will not influence this list. I suppose you want to enable conversion?

chiyi4488 commented 3 years ago

yeah, I want enabel conversion. convert video to mp3.

chiyi4488 commented 3 years ago

How should I do to enable this function in heroku?

chiyi4488 commented 3 years ago

Hello, I am really in need of your help. 😭😭😭😭 I've finished the project with i10n in Traditional Chinese, but I haven't finished testing it yet because ffmpeg doesn't work. 😭😭😭😭

Rudloff commented 3 years ago

Please don't spam this issue! I am working on this project on my free time.

If you want to enable MP3 conversion, you can add CONVERT=1 to your Heroku configuration.

chiyi4488 commented 3 years ago

Please don't spam this issue! I am working on this project on my free time.

I see, sorry.

If you want to enable MP3 conversion, you can add CONVERT=1 to your Heroku configuration.

Oh! Okay, I will try it~

chiyi4488 commented 3 years ago

Our Heroku setup does not include ffmpeg so you will have to figure out how to install it by yourself.

image Do I still need to solve a problem?

Rudloff commented 3 years ago

If ffmpeg is not installed at /usr/bin/ffmpeg, you will need to set the FFMPEG environment variable with the correct path.

oscarhong commented 2 years ago

@chiyi4488 Heroku supports ffmpeg as a buildpack

chiyi4488 commented 2 years ago

@oscarhong Wow! This is amazing! Thank you for solving my problem!

chiyi4488 commented 2 years ago

@oscarhong Oh wait, can you teach me how to set it up? Because I think I found your work before, but it didn't work.

image

oscarhong commented 2 years ago

You should put the FFmpeg buildpack above the other two language buildpacks.

After that, you can do a redeploy by git push heroku master to make sure FFmpeg is installed correctly.

To confirm the location of FFmpeg, you can run heroku run which ffmpeg, which would come back with something like /app/vendor/ffmpeg/ffmpeg

Then you can set the FFMPEG environment variable with that path.

chiyi4488 commented 2 years ago

Thank you @oscarhong ! It worked!Here is my successful config file for the next person who is confused!

https://github.com/chiyi4488/alltube/blob/7c44017d37061fc5598130f124e37a75fdf065ef/config/config.yml