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
87 stars 20 forks source link

Can't decode 24 object #1

Closed vinhlilo90 closed 1 year ago

vinhlilo90 commented 2 years ago

When I try to decode MPEG-H with 24 object program is stuck at begining and not run . How to fix it ?

AnnshaMerlin commented 2 years ago

Thanks for trying our MPEG-H decoder! Would it be possible to share the stream you used or any location in public domain where it is accessible? If this not possible, could you give us some insights on stream properties like MPEG-H profile level, error you are encountering while running our decoder.

Thanks!

vinhlilo90 commented 2 years ago

Thanks for trying our MPEG-H decoder! Would it be possible to share the stream you used or any location in public domain where it is accessible? If this not possible, could you give us some insights on stream properties like MPEG-H profile level, error you are encountering while running our decoder.

Thanks!

Thanks for reply me , here is the link for the stream i try to decode : https://drive.google.com/file/d/1_NiNFP7mg9Cufh2nbXBbLBcxVLv_sooK/view?usp=sharing When I try decode this it stuck and not running frames image

Properties.txt

Thanks

AnnshaMerlin commented 2 years ago

Thanks for sharing the stream! We will check the issue at our end and get back to you.

Thanks!

vinhlilo90 commented 2 years ago

Thanks for sharing the stream! We will check the issue at our end and get back to you.

Thanks!

Thanks you , I'll waiting for that. Have a nice day

SakethSathuvalli commented 2 years ago

Hi,

We have downloaded the stream and looked into the cause for the decoding failure. We found that the stream parameter indicates that it is profile level 4. (The entry Format profile : LC@L4 in Properties.txt ). Our decoder supports upto profile level 3. We are looking into how we can support this stream with our existing implementation. We will keep you updated on the progress .

Thanks, Saketh

AnnshaMerlin commented 2 years ago

Hi,

We would like to know whether it is possible for you to encode this content as baseline profile level 3 MPEG-H stream?

Thanks, Annsha

vinhlilo90 commented 2 years ago

Hi,

We would like to know whether it is possible for you to encode this content as baseline profile level 3 MPEG-H stream?

Thanks, Annsha

I'm sorry . I don't know about that , I just find that on the internet and trying to decode them

AnnshaMerlin commented 2 years ago

Hi,

Could you please share the details of the source of this MPEG-H stream ?

Thanks, Annsha

AnnshaMerlin commented 2 years ago

Hi,

As mentioned previously, the stream you shared belongs to profile level 4 which is not supported by our decoder.

However, on investigating the stream's properties further we found that though the profile level indicator for the stream is level 4, 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 and build our decoder. We tested this hack at our end on version 1.2 of the decoder (the latest on main branch) implementation.

Hope this helps!

Thanks, Annsha

vinhlilo90 commented 2 years ago

Hi,

As mentioned previously, the stream you shared belongs to profile level 4 which is not supported by our decoder.

However, on investigating the stream's properties further we found that though the profile level indicator for the stream is level 4, 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 and build our decoder. We tested this hack at our end on version 1.2 of the decoder (the latest on main branch) implementation.

Hope this helps!

Thanks, Annsha

I try rebuild it and comment it but i can't decode them . Can i ask how to decode them ? Thanks

AnnshaMerlin commented 2 years ago

Hi,

Could you please let us know if you are using the latest decoder code? We tried out and we are able to decode successfully with latest version.

Thanks, Annsha

AnnshaMerlin commented 2 years ago

Hi @vinhlilo90 ,

Could you please let us know if you got a chance to try the work around on our latest decoder commit!

Thanks, Annsha

vinhlilo90 commented 2 years ago

Hi @vinhlilo90 ,

Could you please let us know if you got a chance to try the work around on our latest decoder commit!

Thanks, Annsha I try the lasted but seem it not running

AnnshaMerlin commented 2 years ago

Hi,

Its surprising to hear that after building with the work around you are still not able to decode. We are able to decode with the workaround at our end. Could you give us little more information on which platform you are building - MSVS/Linux/MAC ?

Thanks Annsha

vinhlilo90 commented 2 years ago

Hi,

Its surprising to hear that after building with the work around you are still not able to decode. We are able to decode with the workaround at our end. Could you give us little more information on which platform you are building - MSVS/Linux/MAC ?

Thanks Annsha

Im building with MSVS

AnnshaMerlin commented 2 years ago

Hi,

We did a fresh clone of the repository. Steps we tried are given below.

  1. git clone https://github.com/ittiam-systems/libmpegh.git
  2. Comment line number 1483 in libmpegh\decoder\ia_core_coder_init_config.c
  3. Open libmpegh\build\msvs\ia_mpeghd_testbench.sln and rebuild
  4. Run the file -ifile:1.SomethingJustLikeThis.m4a -ofile:1.SomethingJustLikeThis.wav

image

Thanks, Annsha

vinhlilo90 commented 2 years ago

Hi,

We did a fresh clone of the repository. Steps we tried are given below.

  1. git clone https://github.com/ittiam-systems/libmpegh.git
  2. Comment line number 1483 in libmpegh\decoder\ia_core_coder_init_config.c
  3. Open libmpegh\build\msvs\ia_mpeghd_testbench.sln and rebuild
  4. Run the file -ifile:1.SomethingJustLikeThis.m4a -ofile:1.SomethingJustLikeThis.wav

image

Thanks, Annsha

Thanks you so much for helping me . I will try and give the result soon <3

bunnykek commented 2 years ago

Hi,

We did a fresh clone of the repository. Steps we tried are given below.

  1. git clone https://github.com/ittiam-systems/libmpegh.git
  2. Comment line number 1483 in libmpegh\decoder\ia_core_coder_init_config.c
  3. Open libmpegh\build\msvs\ia_mpeghd_testbench.sln and rebuild
  4. Run the file -ifile:1.SomethingJustLikeThis.m4a -ofile:1.SomethingJustLikeThis.wav

image

Thanks, Annsha

followed the same, but still unable to decode image image

SakethSathuvalli commented 2 years ago

Hi @bunnykek,

Thanks for trying our decoder! 24 Channel support in our decoder has certain limitations.

Can You share details about the stream "01 - STAY [Explicit].m4a" -

Incase, You are not aware of (or) don't have any other tool to get this information please share the stream if that's okay with You.

We will examine the decode failure and get back to You!

Thanks! Saketh

bunnykek commented 2 years ago

Yeah. Here we go, streamfile : https://file2directlink.herokuapp.com/436487300993973184757977224/01%20-%20STAY%20%5BExplicit%5D.m4a It will stay for 24hrs only

SakethSathuvalli commented 2 years ago

Thanks for sharing the stream! We are able to access it. We will check further and get back to You!

bunnykek commented 2 years ago

Thanks for sharing the stream! We are able to access it. We will check further and get back to You!

Any updates/fix?

SakethSathuvalli commented 2 years ago

https://github.com/ittiam-systems/libmpegh/issues/1#issuecomment-1075500392

Hi,

We looked into the cause for the decode failure of the stream you shared!

We found that entries for certain fields in the MP4 container, which are important for decoding are missing. Specifically, the stsz box count - this field denotes the number of audio frames in the file. This has a value zero in the stream You shared.

Can You let us know if you have any version of this stream without the mp4 container - generally called as "mhas" stream with file extension ".mhas"

(or)

Alternatively will it be possible for you to regenerate the same stream with all fields taken care?

Meanwhile we will see if we can find a work around for handling streams like this with missing or inappropriate "MP4-box" specific fields.

Thanks!

SakethSathuvalli commented 2 years ago

Hi, We did a fresh clone of the repository. Steps we tried are given below.

  1. git clone https://github.com/ittiam-systems/libmpegh.git
  2. Comment line number 1483 in libmpegh\decoder\ia_core_coder_init_config.c
  3. Open libmpegh\build\msvs\ia_mpeghd_testbench.sln and rebuild
  4. Run the file -ifile:1.SomethingJustLikeThis.m4a -ofile:1.SomethingJustLikeThis.wav

image Thanks, Annsha

Thanks you so much for helping me . I will try and give the result soon <3

Hi, @vinhlilo90 - Can You please let us know if You tried this at your end ?

SakethSathuvalli commented 1 year ago

Closing the issue as cause and workaround are provided and due to no activity for long time.