ittiam-systems / libmpegh

MPEG-H 3D Audio Low Complexity Profile Decoder. Encoder: https://github.com/ittiam-systems/libmpeghe
http://www.ittiam.com/
BSD 3-Clause Clear License
88 stars 18 forks source link

can it decode sony 360-reality-audio ? #5

Closed serious-snow closed 2 years ago

serious-snow commented 2 years ago

sony 360-reality-audio based on MPEG-H 3D audio.but i can't decode it

it shows "fatal error: Ittiam mpegh_dec core coder module :Initialization: : Initialization fatal error"

SakethSathuvalli commented 2 years ago

Hi,

Will it be possible to share the stream with us? This can help us find the exact reason for the initialization failure!

Thanks!

serious-snow commented 2 years ago

https://drive.google.com/file/d/1vGPje25oqB-KFobcbQl8HlIguwL-o7Jn/view?usp=sharing

thanks,it download from tencent QQ music

serious-snow commented 2 years ago

I don't know it whether be encrypted

AnnshaMerlin commented 2 years ago

Thanks for sharing the stream!

We have downloaded the stream and looked into the cause for the decoding failure. We found that the stream parameter indicates that it is Low Complexity profile level 4. Our decoder supports upto Low Complexity profile level 3.

However, it can be decoded with our decoder with a simple workaround. The workaround solution is to comment line number 1483 in libmpegh/decoder/ia_core_coder_init_config.c , rebuild our decoder and run again. We tested this hack at our end and the stream is decoding fine.

Hope this helps!

Thanks, Annsha

serious-snow commented 2 years ago

Thanks very much ,it was decoded successfully. But I still can't play it by ffmpeg or other player. Anyway, it's better than before.

AnnshaMerlin commented 2 years ago

Can you try changing audio settings in VLC and try once. Initially we also couldn't play and we did this.

image

serious-snow commented 2 years ago

Yes,it was work! Thanks again!

AnnshaMerlin commented 2 years ago

Could you please close this issue?

D3rel commented 2 years ago

Hi,

Will it be possible to share the stream with us? This can help us find the exact reason for the initialization failure!

Thanks!

Hi @serious-snow, can you analyze this file and tell me what's going on, or if this tool can decode this type of file... or if any adjustments need to be done for this. I'm getting the message: _"fatal error: Ittiam mpeghdec core coder module :Initialization: : Initialization fatal error"

Well, I've been using your tool for a while, it's great and it's working perfectly for 22.2 audios (LC@L4) after I modified the file _ia_core_coder_initconfig.c following the instructions given by the message from @AnnshaMerlin. But this mod is not working for this file.

DL | https://drive.google.com/file/d/1SBaBWJBLdHn_gFk-nZ7UrwEOcRxvkcSB/view?usp=sharing

Mediainfo:

Format                      : MPEG-4
Format profile              : Base Media / Version 1
Codec ID                    : mp41 (iso8/isom/mp41/dash/cmfc)
File size                   : 44.0 MiB
Duration                    : 3 min 50 s
Overall bit rate            : 1 603 kb/s
Encoded date                : UTC 2022-06-15 20:47:25
Tagged date                 : UTC 2022-06-15 20:47:25

Audio
ID                          : 1
Format                      : MPEG-H 3D Audio
Format profile              : LC@L4
Codec ID                    : mha1
Duration                    : 3 min 50 s
Bit rate                    : 1 599 kb/s
Channel(s)                  : 24 channels (22.2)
Channel layout              : Lw Rw C LFE Lb Rb L R Cb LFE2 Lss Rss Tfl Tfr Tfc Tc Tbl Tbr Tll Tsr Tbc Bfc Bfl Bfr
Sampling rate               : 48.0 kHz
Frame rate                  : 46.875 FPS (1024 SPF)
Stream size                 : 43.9 MiB (100%)
Encoded date                : UTC 2022-06-15 20:47:25
Tagged date                 : UTC 2022-06-15 20:47:25
Signal group #1             : 12 objects
 Type                       : Object
 Number of objects          : 12 objects
Codec configuration box     : mhaC

What I could notice of difference between the files that the tool can decode for this one, is the codec. It's working for:

Format profile              : Base Media / Version 2
Codec ID                    : mp42 (mp42/isom)

Waiting for your reply, and Thanks in advance :)