-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg
and libfdk_aac
- consider switching to opus
?
#503
Comments
Thank you. This is an interesting discussion. I could certainly use The larger issue is that there are optional codecs that are not included in all versions of FFmpeg, which makes sense but still kinda sucks. And you're right, I'm starting from Homebrew, which automatically includes AAC. But I also didn't have any trouble with the Docker image of FFmpeg, so maybe there might be distribution restrictions on it, as well? It looks like I need to do a bit of homework first, to get up to speed with where you are on this. In the meantime, I'll double-check that OGG encoding works and turn that on as an alternative. |
Okay, the latest code on And, though OGG works great on Firefox, it doesn't work on Safari, leaving us to fall back to MP3s. So, there's always trade offs, I guess. I'm going to keep this open for now, and a ticket to look for ways to enable AAC on servers that can (easily) support it, without causing tons of error messages on those that don't. |
I recall faircamp having the same problem with Safari (because I ran into the bug and helped debug it). I think mp3 as the fallback for Safari there as the solution, but the dev may have figured out a more elegant solution since then. |
Running Emissary on Debian Bookwork I see
Unknown encoder 'libfdk_aac'
errors fromffmpeg
whenever audio files are converted because the version offfmpeg
I have does not include the library for converting audio toaac
. This doesn't appear to cause any problems besides errors, because I thinkmp3
is also being used as a fall back.Emissary uses
ffmpeg
to convert media files.ffmpeg
is a GPL license, which prevents it from being distributed with various proprietary codecs, includingaac
. Although many versions offfmpeg
do include theaac
(it can be compiled with this encoder). The version of ffmpeg you'd get on MacOS, (maybe through homebrew?) does include it, but the version offfmpeg
in many repositories for many common Linux distros (in my case, Debian) do not. Compilingffmpeg
with this library myself is possible, but it might be worth switching out a proprietary codec likeaac
entirely to avoid this headache for others, or build in some checks and different fall back codecs. I've worked with lots of different server applications that useffmpeg
under the hood and never had to look at trying to compile or acquire a version with convert-to-aac
support. I guess at a minimum it should be considered for any installation instructions for Emissary (possibly Ubuntu Server doesn't have this issue, but I'm not sure).I'm familiar with the
opus
format for web streaming of music from faircamp (https://codeberg.org/simonrepp/faircamp) which seems it is becoming a preferred format for web streaming music over.mp3
and others, maybe switching to that for audio files rather than something with patent/license issues would be an idea?The text was updated successfully, but these errors were encountered: