[FFmpeg-user] MP4-Video does not play audio on Android 8; audio stream size tagged wrong

Ulf Zibis Ulf.Zibis at CoSoCo.de
Wed Oct 25 13:05:24 EEST 2023

Am 25.10.23 um 06:50 schrieb Classic SSG Enjoyer:
> Use Opus. Opus delievers better audio quality than AAC/Vorbis
> On Tue, 24 Oct, 2023, 11:01 pm Ferdi Scholten, <ferdi at sttc-nlp.nl> wrote:
>> Hi,
>>>> Vorbis audio is officially not supported by the mp4 container
>>>> specifications.
>>>> Matroska does not have this problem as it supports almost all known
>>>> codecs.
>>>> These are the audio codecs that are in the mp4 specifications: AAC,
>>>> ALS, SLS, MP3, MP2, MP1, CELP, HVXC, TTSI, SAOL, Apple Lossless,
>>>> FLAC, Opus
>>>> Others can be muxed in, but most players will not support playing those.
>>> Much thanks for this valuable information.
>>> Because I want to add several audio streams to a MP4 video, I'm
>>> looking for an audio codec, with optimal compression. As AAC in my
>>> context needs 128 kb/s, but Vorbis only 90 kb/s, I thought, it was a
>>> good choice.
>>> Which audio codec you would suggest, which has a wide range of
>>> compatibility, except AAC?
>>> Maybe Opus?
>>> For the video I want to use HEVC.
>>> Is there a possibility to encode AAC_HE with FFmpeg and would it make
>>> sense?
>> -Ulf
>> For good compression and good quality you should use Opus, it delivers
>> (much) better audio quality than any variant of AAC let alone Vorbis for
>> the same bitrate. when you don't specify a bitrate, libopus uses 95 kb/s
>> as default for stereo audio.
>> -Ferdi

Thanks to Ferdi and Classic.
Yes, Opus plays well on Android and iPhone.


More information about the ffmpeg-user mailing list