heroku-buildpack-ffmpeg | Install ffmpeg into heroku | Platform As A Service library
kandi X-RAY | heroku-buildpack-ffmpeg Summary
kandi X-RAY | heroku-buildpack-ffmpeg Summary
This is a [Heroku buildpack] for using [ffmpeg] in your project. It doesn’t do anything else, so to actually compile your app you should use [heroku-buildpack-multi] to combine it with a real buildpack.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-buildpack-ffmpeg
heroku-buildpack-ffmpeg Key Features
heroku-buildpack-ffmpeg Examples and Code Snippets
Community Discussions
Trending Discussions on heroku-buildpack-ffmpeg
QUESTION
I'm using a library called 'fluent-ffmpeg' on my Nodejs server that makes it easier to use an audio/video editing tool called FFmpeg, which is downloaded locally on my computer.
When running on my computer, I point fluent-ffmpeg to the local executable files of FFmpeg and FFprobe on my computer, like so:
...ANSWER
Answered 2021-Jul-30 at 14:08I wasn't able to get it working with fluent-ffmpeg, but using the buildpack:
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest
I was able to work with using 'exec' commands in place of fluent-ffmpeg. It requires you to write out ffmpeg commands like you would in the command prompt.
For example:
QUESTION
I have a music bot and it works fine. When hosted locally, the bot plays the music as it should when running the play
command. But once I hosted the bot on Heroku, the bot only joins the voice channel but doesn't output any sound. The strangest part of all this is that Discord indicates that the bot is playing sounds, as you can see in this image.
How can I fix this? I feel like it has something to do with Heroku, but I don't know what. I also added this Buildpack: https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git to my app, but it's still not working.
How can I fix this problem?
...ANSWER
Answered 2021-Feb-26 at 15:34Since a response only took place via the comments I will summarize the whole thing again for other users.
To play music at Heroku mostly 2 buildpacks are necessary. These can be added to the corresponding app under Settings
. The following buildpacks are needed:
Only then the bot will probably play music, because Heroku has its problems with FFMPEG. After you have added these two buildpacks you can select Deploy Branch
under the category Deploy
.
Of course you should also add a buildpack for your system (Python, JS, etc.).
QUESTION
I would like to use FFMPEG for my bot that I want to host on Heroku. For this I installed the following buildpack: https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest
.
I added some checks in my source code to check the FFMPEG path:
ANSWER
Answered 2020-Dec-25 at 21:33To get the FFMPEG working on Heroku you have to install the following packs:
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest
- FFMPEG.
https://github.com/xrisk/heroku-opus
- Avoids OpusNotLoaded()
errors.
You can add them under Settings/Buildpacks
.
The default path, if needed, is ffmpeg
.
You can then launch the bot.
QUESTION
I'm trying to open a videoURL using cv2.VideoCapture on Heroku, and it consistently fails to open. I've called the same code on my local machine (Windows 10) and it ran with no problems. Does anyone have recommendations/buildpacks/alternatives to resolve this?
OpenCV Version: 3.4.2.16
Python: 3.7
Current Buildpacks:
- https://github.com/cstavish/heroku-buildpack-vips.git
- https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
- https://github.com/heroku/heroku-buildpack-apt
- heroku/python
- https://github.com/timanovsky/subdir-heroku-buildpack
Open Cv Build info (Video) from the Heroku Dyno
...ANSWER
Answered 2020-Aug-16 at 08:09My apologies for the delay. I am assuming you are using pip
to install OpenCV.
The answer to your question is that for OpenCV 3.x, Mac OS and Linux (and ultimately the environment that Heroku is run under) do not link with FFMPEG which means that video support is not enabled for those platforms. However, it is enabled with Windows. This is the reason why there is an inconsistency between the platforms: What is the deal with `pip install opencv-python` is it a full opencv?
The solution is you will either need to build OpenCV 3.x from source, or use OpenCV 4 which now bundles FFMPEG with it. I would highly recommend you use OpenCV 4 unless there is something blocking you from using it. However to install OpenCV 4, use either pip install --upgrade opencv-python
or pip install --upgrade opencv-contrib-python
. I'm not sure which flavour you are using, but either one should work.
QUESTION
My bot is all set up and running, everything works, EXCEPT for voice: He joins the channel, but doesnt play audio. I have heard many different claims for what the reason is (no permission to use ffmpeg.exe, missing buildpack, missing dependency, Heroku blocking UDP on free users...) - but i hope that someone here ACTUALLY knows what the problem is, because i couldnt find any definitive reason online.
This is the code of the bot: https://github.com/FlyingThunder/DiscordBot/blob/master/main.py
Everything is working fine on my machine.
This is the only error that Heroku logs gave me:
2020-07-24T06:28:30.329937+00:00 app[worker.1]: PermissionError: [Errno 13] Permission denied: 'res/ffmpeg.exe'
I already tried adding https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
to my buildpacks, and i added cffi==1.14.0
to my requirements.txt - both solutions that are supposed to fix this exact issue.
ANSWER
Answered 2020-Jul-24 at 08:23To host a music bot on heroku, you need:
- Opus and FFmpeg buildpacks (and python of course):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-buildpack-ffmpeg
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page