nu774 / fdkaac

command line encoder frontend for libfdk-aac
Other
260 stars 58 forks source link

ERROR: unsupported profile #57

Closed HironoKenta closed 10 months ago

HironoKenta commented 10 months ago

Hi nu774, I'm running a Kubuntu 23.10 and I having issue trying to encode HEv1 and HEv2 files, it also return the same error for ELDv2 profile.

I replaced the fdkaac v1.0.0 of repos to a 1.0.5 and a master compiled from sources, but nothing changes.

fdkaac version

:~$ fdkaac
fdkaac 1.0.5
Usage: fdkaac [options] input_file
Options:
 -h, --help                    Print this help message
 -p, --profile <n>             Profile (audio object type)
                                 2: MPEG-4 AAC LC (default)
                                 5: MPEG-4 HE-AAC (SBR)
                                29: MPEG-4 HE-AAC v2 (SBR+PS)
                                23: MPEG-4 AAC LD
                                39: MPEG-4 AAC ELD
[...]

libfdk_aac version

libfdk-aac-dev/mantic,now 2.0.2-3~ubuntu1 amd64

libfdk-aac2/mantic,now 2.0.2-3~ubuntu1 amd64

good runs

:~$ fdkaac -m 3 -p 2 -o test.m4a test.wav
[100%] 02:23.931/02:23.931 (77x), ETA 00:00.000   
6347358/6347358 samples processed in 00:01.878

:~$ fdkaac -m 2 -p 2 -o test.m4a test.wav
[100%] 02:23.931/02:23.931 (87x), ETA 00:00.000   
6347358/6347358 samples processed in 00:01.645

:~$ fdkaac -m 3 -p 23 -o test.m4a test.wav
[100%] 02:23.931/02:23.931 (63x), ETA 00:00.000   
6347358/6347358 samples processed in 00:02.283

:~$ fdkaac -m 3 -p 39 -o test.m4a test.wav
[100%] 02:23.931/02:23.931 (64x), ETA 00:00.000   
6347358/6347358 samples processed in 00:02.254

bad runs

:~$ fdkaac -m 3 -p 5 -o test.m4a test.wav
ERROR: unsupported profile

:~$ fdkaac -m 2 -p 5 -o test.m4a test.wav
ERROR: unsupported profile

:~$ fdkaac -b 50 -p 5 -o test.m4a test.wav
ERROR: unsupported profile

:~$ fdkaac -m 2 -p 29 -o test.m4a test.wav
ERROR: unsupported profile

:~$ fdkaac -m 1 -p 29 -o test.m4a test.wav
ERROR: unsupported profile

:~$ fdkaac -b 32 -p 29 -o test.m4a test.wav
ERROR: unsupported profile

:~$ fdkaac -m 3 -p 44 -o test.m4a test.wav
ERROR: unsupported profile

test.wav info

General
Complete name                            : /home/***/test.wav
Format                                   : Wave
Format settings                          : PcmWaveformat
File size                                : 24.2 MiB
Duration                                 : 2 min 23 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 411 kb/s

Audio
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 2 min 23 s
Bit rate mode                            : Constant
Bit rate                                 : 1 411.2 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Stream size                              : 24.2 MiB (100%)
nu774 commented 10 months ago

"unsupported profile" error happens when the encoder (libfdk-aac) refused only by the AOT number (5 or 29). Perhaps ubuntu's package maintainer has decided to build / distribute libfdk-aac without SBR support due to some patent concerns or something. Ask them.

Or you could build libfdk-aac from the source and static link to it.

nu774 commented 10 months ago

https://bugs.launchpad.net/ubuntu/+source/fdk-aac/+bug/2037404 https://gitlab.freedesktop.org/wtaymans/fdk-aac-stripped/-/merge_requests/2/diffs

HironoKenta commented 10 months ago

Well I solved it replacing the /usr/lib/x86_64-linux-gnu/libfdk-aac.so.2.0.2 with self compiled /usr/local/lib/libfdk-aac.so.2.0.2 from mstorsjo's source (make install rightfully don't put it into /usr/lib/, but seems this lib superimpose over the /usr/local/ one).

I can't remove libfdk-aac2 package coz doing it will broke pipewire dependency.

I hope someone will be helped by this bugreport and I thank you for your time and support. (still upset Ubuntu's mantainers didn't add a reference to the changes in descriptions/names)