DV8FromTheWorld / JAADec

JAAD is an AAC decoder and MP4 demultiplexer library written completely in Java. It uses no native libraries, is platform-independent and portable. It can read MP4 container from almost every input-stream (files, network sockets etc.) and decode AAC-LC (Low Complexity) and HE-AAC (High Efficiency/AAC+). Fork of:
https://sourceforge.net/projects/jaadec/
Other
28 stars 27 forks source link

issues when playing mp4 file #11

Open dieterstueken opened 6 years ago

dieterstueken commented 6 years ago

while playing sample ftp://mpaudconf:adif2mp4@ftp.iis.fhg.de/mpeg4audio-conformance/compressedMp4/al05_48.mp4 I got errors. With some patches I got them resolved.

see: https://github.com/dieterstueken/JAADec/commit/3da3f83bc3b87b465337edeb8b97df1d9bbedb78 and https://github.com/dieterstueken/JAADec/commit/9854a70ce55d5a5b7498884370241de89580f64e

dieterstueken commented 6 years ago

playing a 5.1 sample containing coupling channel elements al07_44.mp4 (ftp://mpaudconf:adif2mp4@ftp.iis.fhg.de/mpeg4audio-conformance/compressedMp4/al07_44.mp4) reveals even more errors:

The number of channels calculated by PCE is wrong: The returned count is the number of elements not taking into account if the element is mono or stereo (SCE/CPE).

Decoding of CCE does not work after some ancient refactoring from 2011.

More than two channels can not be sent to a SourceDataLine. The SampleBuffer simply sends too much bytes. Either we have to provide several SourceDataLines or a Sample buffer must know which are the relevant stereo channels.

stigc commented 5 years ago

Hey dieterstueken, have you seen this? You seem to be able to fix these kind of errors. Thanks

https://github.com/DV8FromTheWorld/JAADec/issues/10#issuecomment-449839732