heroku-buildpack-ffmpeg-latest | Heroku buildpack for ffmpeg | Platform As A Service library
kandi X-RAY | heroku-buildpack-ffmpeg-latest Summary
kandi X-RAY | heroku-buildpack-ffmpeg-latest Summary
A Heroku buildpack for ffmpeg that always downloads the latest static build
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-latest
heroku-buildpack-ffmpeg-latest Key Features
heroku-buildpack-ffmpeg-latest Examples and Code Snippets
Community Discussions
Trending Discussions on heroku-buildpack-ffmpeg-latest
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):
QUESTION
I want to use the ffmpeg buildpack in my Python app on Heroku.
I am using the ffmpeg buildpack from https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.
How can I use buildpack? subprocess? os? How to call the ffmpeg? Anybody can teach me?
This is my code and I want to convert mp4 file to mp3 file. Actually,I don`t know about the detect/compile/release file.
...ANSWER
Answered 2019-Sep-29 at 22:17First of, I assume you already know how to deploy a Python app to Heroku and you already have a working app accessible from Heroku, as this answer is specific to how to use the ffmpeg buildpack. (If you don't yet, check Getting Started on Heroku with Python first).
Step 1: Adding the ffmpeg buildpackBuildpacks basically tell Heroku how to setup the environment for your app (which dependencies to install, which scripts to run, etc.). For Python apps, you need to have the official heroku/python buildpack, and you can check this by:
QUESTION
I am trying to host a discord music bot in heroku, but even if it works fine in my local machine, it doesnt seem to be able to find the libopus library deployed.
Here is my requirements.txt file:
...ANSWER
Answered 2018-Apr-14 at 02:19Unfortunately, Heroku can’t send the appropriate voice packets to discord, therefore you must self host or use a vps to use music. Somebody did find a loophole but idk if it was patched but chances are you won’t be able to get music https://i.stack.imgur.com/LWcF4.jpg
QUESTION
I'm having trouble setting up my music bot to work with Heroku. It works perfectly fine on my host machine, however, I get an "Opus Not Loaded" error when I run the bot in Heroku. I already have a ffmpeg buildpack(https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git), an apt buildpack (https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git) with the Aptfile fully setup (see below), and I have an opus buildpack (https://github.com/dubsmash/heroku-buildpack-opus.git). I also have youtube_dl and discord.py[voice] in my requirements.txt file
Here is the contents of my Aptfile.
...ANSWER
Answered 2019-Jan-09 at 14:16QUESTION
I've made a bot that deals with gif files and I tried uploading it on heroku.
So I've installed this buildpack https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest
And I run this code as a subprocess:
...ANSWER
Answered 2018-Sep-21 at 06:07I think the best way for conversion on Heroku is using a pure python wrapper of FFmpeg. Like ffmpy. Here's an example:
first:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-buildpack-ffmpeg-latest
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