sox with MP3 on Heroku - heroku

My app uses sox to apply some effects to an audio file on a Heroku dyno.
I added sox, libsox-fmt-mp3 and libsox-fmt-all to Aptfile using the APT buildpack. Sox is installed but MP3 files are still not working. sox -h tells me that there is no MP3 support installed.
I also tried these buildpacks but MP3 files are still not working:
https://elements.heroku.com/buildpacks/lepinsk/heroku-buildpack-sox
https://elements.heroku.com/buildpacks/dennisdevulder/heroku-buildpack-sox-with-mp3
Can anyone help me with this problem?

Related

How to Install FFMpeg on centos 6 in 2022?

a client of mine asked to add videos to their website, i decided to install FFMpeg on their server so whenever they upload a video, the service automatically generates the first frame for the preview and encodes them in webm.
Sadly it seems to be impossible to install without having to compile it myself (which i don't really want to do as i have never done it before and don't want to risk breaking something in their server),
The server is running cento6 but EVERY repository that provides the centos6 version of FFMpeg seem to use dependencies from dead hosts (they are offline and unreachable), every solution i find ends up with the same error like "Couldn't resolve host 'apt.sw.be'"
I've changed yam repositories, installed apt-get to try with that instead of yam, disabled and enable repos like nux that seem to be very outdated, even followed posts that were published/updated recently like this but they all keep ending up with the the same "Couldn't resolve host..." when installing decencies.
Is there any live and updated repo that provides a way to install FFMpeg for centos6 with yum or apt-get in 2022?
Thanks
EDIT
Following Romeo's tip about downloading the binaries, i managed to install it but in my case i needed a older 32 bit version to make it work (else i'd get Kernel too old):
$ wget https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.0.3-32bit-static.tar.xz
$ tar xvf ffmpeg-4.0.3-32bit-static.tar.xz
$ sudo mv ffmpeg-4.0.3-32bit-static/ffmpeg ffmpeg-4.0.3-32bit-static/ffprobe /usr/local/bin/
What you can do is to try to install statically build ffmpeg binary. This will help you not to search for contemporary package and update your CentOS.
You can try this version (64bit version).

Open Video Downloader Error: Postprocessing: ffmpeg not found

Error Thrown:
ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location
Context: macOS Big Sur M1 Chip, using the open video downloader program GitHub release or Homebrew. This specifically was thrown at the end of downloading the video file and the audio file from a given URL. The two files remained separate as a result of the error, the video was playable normally, but audio was in a .webm format (unusable for most people).
Analysis: It is clear that a dependency is missing, or its path cannot be located. For macOS users like me, the first step after checking the app's preferences for a path set or dependency download function is to check for the given dependency in the system. Once checking using Homebrew, it became clear that several dependencies were missing.
Solution: Use a package manager like Homebrew to install the following in order of appearance below:
YouTube-dl
ffmpeg
For people that are new to Homebrew, you need to run these commands or your Terminal app:
brew install ffmpeg
brew install youtube-dl
If you are told that these packages exist then please update them using the upgrade command
brew upgrade youtube-dl
brew upgrade ffmpeg
In addition, the app may be installed, but not in the user's PATH env variable. Open a terminal shell as the user, and type
which ffmpeg . Make sure you get the expected answer.
Also note that Homebrew changed the location of ffmpeg. It used to be at /opt/homebrew/bin/ffmpeg
but they moved it to
/usr/local/bin/ffmpeg.

How do I incorporate FFMpeg into Laragon Local Server?

I need to use FFMpeg on my project to automatically generate thumbnails from videos uploaded to my site. I understand you need FFMpeg to do this. I can't seem to find any information on how to install FFMpeg into the Laragon Local Server. I found older tutorials on how to install FFMpeg into Xampp for example, but they are now out of date as the latest FFMpeg uses different file structures etc. Anyone know how to install FFMpeg to Laragon?
#Kevin K:
It is very simple to use FFMpeg with Laragon. Here's how:
Download the binaries:
https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2021-06-01-13-18/ffmpeg-n4.4-19-g8d172d9409-win64-gpl-4.4.zip
Unzip and move the 3 files in bin to C:\laragon\bin
ffmpeg.exe
ffplay.exe
ffprobe.exe
Open Laragon's Terminal Menu > Laragon > Terminal and check:
ffmpeg -v
You should use FFMpeg in your PHP code with library like:
https://github.com/PHP-FFMpeg/PHP-FFMpeg
Ref: https://forum.laragon.org/topic/2448/how-to-use-ffmpeg-to-edit-video-with-laragon

How to install ffmpeg on CentOS 6

I have been trying to install ffmpeg for 2 days now and had no luck. I have tried countless videos on youtube, step by steps on google with no luck. Any help would be great.
I have a Centos 6 server.
Yes I am using root ssh in terminal on mac.
Commands I tried are:
wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg8/ffmpeginstaller.8.0. tar.gz
tar -xvzf ffmpeginstaller.8.0.tar.gz
cd ffmpeginstaller.8.0
./install.sh
Static build
Easiest method is to download a recent version that is already compiled.
Download a static build of ffmpeg from https://www.johnvansickle.com/ffmpeg/
Extract the archive file you just downloaded from the above site
(optional) Copy or move the ffmpeg file into /usr/local/bin
Compile
If you prefer to make a custom build you can compile. See FFmpeg Wiki: Compile FFmpeg on CentOS.

Installation of ffmpeg and others on UWAMP

i try to install clip bucket for making a youtube clone site but the script ask to install ffmpeg and others compression tools on the server and i dont know how to do it .
Lots of online host dont allow those libs for free.
I use UWAMP but dont know how to install ffmpeg on UWAMP ...
Anyone know ?
It seems like you are using Windows, if yes then you can install FFMPEG using following link.
https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg
Yes, you need SSH access for install FFMPEG and other tool on server. Free web-hosting does allow you to install FFMPEG and other Libraries. You need Atleast VPS for this.

Resources