How To Fix ffmpeg
Posted: Wed Apr 24, 2013 2:22 am
So, I've noticed in the last two versions at least (4.7 and 4.8 for sure; I don't recall if this was an issue in 4.6) that some FLAC files will not stream properly through the web interface. The file will transcode, but will not start playing until scrubbing past the first second of the track. This gets pretty obnoxious, but I figured out that it's a problem with the version of ffmpeg supplied with subsonic.
So, here's how I fixed it on my server, which is running Ubuntu 10.04, but this should work on any Ubuntu system certainly, likely any Debian system, and substituting the package manager commands for appropriate ones, likely any other Linux system as well.
This requires the "multiverse" repositories to be enabled on Ubuntu (in my case, lucid/multiverse, lucid-updates/multiverse and lucid-security/multiverse)
now either remove or rename the shipped ffmpeg package:
and symlink in the system one:
and you're done!
So, here's how I fixed it on my server, which is running Ubuntu 10.04, but this should work on any Ubuntu system certainly, likely any Debian system, and substituting the package manager commands for appropriate ones, likely any other Linux system as well.
This requires the "multiverse" repositories to be enabled on Ubuntu (in my case, lucid/multiverse, lucid-updates/multiverse and lucid-security/multiverse)
- Code: Select all
sudo apt-get install ffmpeg libavcodec-extra-52 libavdevice-extra-52 libavfilter-extra-0 libavformat-extra-52 libavutil-extra-49 libpostproc-extra-51 libswscale-extra-0
now either remove or rename the shipped ffmpeg package:
- Code: Select all
sudo mv /var/subsonic/transcode/ffmpeg /var/subsonic/transcode/ffmpeg-bak
and symlink in the system one:
- Code: Select all
sudo ln -s `which ffmpeg` /var/subsonic/transcode/ffmpeg
and you're done!