Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

How to install ffmpeg in heroku? #360

Open
chiyi4488 opened this issue Jun 8, 2021 · 13 comments
Open

How to install ffmpeg in heroku? #360

chiyi4488 opened this issue Jun 8, 2021 · 13 comments

Comments

@chiyi4488
Copy link

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
Copy link
Owner

Rudloff commented Jun 8, 2021

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
Copy link
Author

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

@chiyi4488
Copy link
Author

How should I do to enable this function in heroku?

@chiyi4488
Copy link
Author

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
Copy link
Owner

Rudloff commented Jun 15, 2021

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

Rudloff commented Jul 3, 2021

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

@oscarhong
Copy link

@chiyi4488 Heroku supports ffmpeg as a buildpack

@chiyi4488
Copy link
Author

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

@chiyi4488
Copy link
Author

chiyi4488 commented Nov 22, 2021

@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
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants