New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mp4box failed with PCM audio #2470
Comments
|
could you upoad your test files ? |
|
we indeed has an issue with the wav parser, thanks for the report. I cannot reproduce the MP4Box crash with 24 bit PCM, could you detail further (command line and source file) ? |
|
I tried different versions of mp4box and a lot of samples. Unfortunately I cannot find now the exact version and the sample which caused a crash. Note mp4box up to v2.2 imports PCM_S24LE as PCM_S32BE with the tag mp4box v2.2.1 does not import 24-bit PCM audio with the error message Hope you can fix 24-bit PCM import. Thanks. |
- added big-endian formats for s24, s32, flt and dbl - completed endianness support in mixer - added qt v7 lpcm support - added big-endian support for ipcm and fpcm (mp4 raw pcm) - added missing wave and enda boxes for qtv1 pcm - MP4Box -info now shows correct info for all pcm muxing types
|
Now fixed on master, thanks for the report. |
|
Thanks. Note .wav files do not support BE format. |
|
please upload test files |
|
24 and 32 bit to mp4 works fine here (playback tested in gpac and QT on OSX). If you test with ffplay or other players, it's possible that the player does not properly support ipcm and fpcm (my ffplay build always report pcm_s16le). 24 and 32 bit to mov, either audio entry v1 (in24+enda ...) or v2 (lpcm), works fine as well |
|
mp4box imports MOV just fine, but cannot import 24-bit or 32-bit WAV. Samples: http://slydiman.me/ffmpeg/pcm/audio16le.wav http://slydiman.me/ffmpeg/pcm/audio24le.wav http://slydiman.me/ffmpeg/pcm/audio32le.wav bad_wav24le.mp4 and bad_wav32le.mp4 can be played correctly only in VLC player (that doesn't mean VLC is good). Try to playback http://slydiman.me/ffmpeg/pcm/bad_wav24le.mp4 or http://slydiman.me/ffmpeg/pcm/bad_wav32le.mp4 MediaPlayerClassic from k-lite codec pack and any Windows player (except VLC) cannot playback these files correctly too. Note 1: Note 2: bad_wav24le.mp4 and bad_wav32le.mp4 contain ipcm Sound Sample Description v0. Note 3: |
|
Thanks for your thorough tests ! We had an issue keeping the QT brand while remuxing to isom, which made ipcm in mp4 failed in QT. All ipcm and fpcm files are working on QT - the reports you see saying
Indeed now fixed (also for qtv1) - note that a player should not trust this info for isobmff, as the ipcm/fpcm sample entry gives "definitive info" about the sample size.
yes, we default to v0 in mp4 as much as possible, however for QT we move to v1 most of the time, as v0 only supports 'raw ' and 'twos' and no sample entry child boxes, according to QTFF.
Do that at your own risks (I would not recommend it):
|
Unfortunately I cannot ask Google Chrome to check MP4Box -info for the correct bitness info. It and many other players simply use the base Sound Sample Description.
Thanks. I'm still waiting for nightly builds for tests |
Hi, Indeed, some services hadn't restated properly after a power cut this week-end. I've fixed it, now the system will catch up with the late builds. I'll update when it's all done. thanks |
|
nightlies should now be up to date |
|
Thanks. I have checked it and everything works fine. |
I tried to use mp4box to remux MP4 files recorded by cameras SONY.
Most SONY cameras records PCM_S16BE 48000Hz, 2 channels with the audio tag
twos.SONY FX3 records PCM_S24BE 48000Hz, 2 channels with the audio tag
ipcm.I also saw some files with the audio tag
lpcm.mp4box from GPAC v2.0 worked with PCM 16-bit audio:
mp4box -add video.h264 -add audio.wav -new mux.mp4produces a correct and playable MP4 file (audio.wav is PCM_S16LE, 48000Hz, 2 channels).
mp4box from GPAC v2.2+ (including the latest) creates a MP4 file with the correct audio handler
twosbut the audio data is missing at all.stco,stsz, etc. are empty for the audio track.Note most players are used the audio stream for sync with the timeline, so the resulting file is not playable. It is possible only to seek and see a static picture.
Note mp4box crashes on PCM 24-bit audio files.
The text was updated successfully, but these errors were encountered: