gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.95k stars 330 forks source link

Mono stream detected as Stereo #248

Open rahbari opened 2 years ago

rahbari commented 2 years ago

Some single channel audio stream are detected as 2 channel while ffmpeg correctly detect mono.

cconcolato commented 2 years ago

Do you have more details? How do you see 2 channels? Do you have a file to share?

cconcolato commented 2 years ago

This issue may be similar to https://github.com/gpac/mp4box.js/issues/261.

hughfenghen commented 3 months ago

Prefer using the channel count obtained from DecoderSpecificInfo in the ESDS box.

https://github.com/bilibili/WebAV/blob/7694db198905e9302de33017361212a90400ef1d/packages/av-cliper/src/mp4-utils/mp4box-utils.ts#L113