Installing ffmpeg
My Media for Alexa can stream many files natively to your Alexa device, eg MP3 and M4a files. However, some files such as FLAC require transcoding as the Alexa devices cannot natively play these file formats. My Media for Alexa integrates with FFmpeg, a third party open source product that can be downloaded from http://ffmpeg.org. After you install FFmpeg, you must configure My Media for Alexa to tell it where FFmpeg has been installed.
To install FFmpeg on your platform:
Windows 32-bit/64-bit
- Download a pre-compiled version of FFmpeg from this link.. Select either the Windows 32-bit or Windows 64-bit option under the 'Architecture' heading and ensure you choose the 'Static' linking option. (Alternatively, if you are a really advanced user, you can of course compile from the source code available at http://ffmpeg.org).
- Unzip the downloaded file to a temporary folder on your Desktop
- Create a folder under
C:\Program Files\MyMediaForAlexa
calledffmpeg
- Copy the unzipped contents of the file you downloaded into the new
ffmpeg
folder. The full path to ffmpeg should now be C:\Program Files\MyMediaForAlexa\ffmpeg\bin\ffmpeg.exe - Open the My Media Console by browsing to http://localhost:52051
- Click on the Settings tab and enable FLAC transcoding
- Verify that My Media for Alexa has located the FFmpeg.exe binary in the location you copied it to in step [4], or if blank, enter the full path for the FFmpeg.exe file and press 'Set'
Mac OS
- Download a pre-compiled version of FFmpeg from this link.. Select the macOS 64-bit option under the 'Architecture' heading and ensure you choose the 'Static' linking option. (Alternatively, if you are a really advanced user, you can of course compile from the source code available at http://ffmpeg.org).
- Unzip the downloaded file to a temporary folder on your Desktop
- Open 'Finder' and open your Home directory
- You should see a folder called 'Applications', open this
- Create a folder called 'ffmpeg' under this Applications folder (or use another path of your choosing if you prefer, eg /usr/local/bin/ffmpeg is another good choice)
- Copy the unzipped contents of the file you downloaded into the new
ffmpeg
folder. The full path to ffmpeg should now be something like/Users/[youruser]/Applications/ffmpeg/bin/ffmpeg
- Open the My Media Console by browsing to http://localhost:52051
- Click on the Settings tab and enable FLAC transcoding
- Verify that My Media for Alexa has located the ffmpeg binary in the location you copied it to in step [4], or if blank, enter the full path for the ffmpeg executible file and press 'Set'
Raspberry Pi
- Open a terminal on your Raspberry Pi, either by using the GUI or using ssh
- Copy and paste this commands into your terminal:
sudo apt-get install ffmpeg
You may be asked to confirm you want to complete the installation, if so, type 'y' for yes. - Once installation is complete, open the My Media Web Console and click the Settings tab
- Click the option "Enable Transcoding Support" to 'On'
- The installation path for ffmpeg should be automatically populated with the location of ffmpeg