News:

--

Main Menu

Copy LPCM audio in mp4 - incompatible format

Started by L1nK, April 18, 2022, 08:10:16 PM

Previous topic - Next topic

L1nK

Hello everyone,
first of all thanks for that great piece of software!
Unfortunately, I ran into an issue when cutting a video from my Sony RX100M5A. I just want to remove some seconds at the beginning and the end. Therefore, I want to use the ,,copy" feature.
When I try to save the file with MP4 Muxer I get an error message, that the audio is not compatible. Exporting with MKV Muxer works fine. I think it has something to do with the audio format LPCM.
So I would like to ask, if it is possible to implement the LPCM audio format for exporting to mp4?
Thanks a lot!
Here the information on the input file:
=====================================================
Video
=====================================================
Codec (FourCC): H264
Auflösung: 1920 x 1080
Seitenverhältnis: 1:1 (1:1)
Bildrate: 50.000 fps
Mittlere Bitrate: 50270 kbps
Gesamtdauer: 00:00:53,720
Pixel format: YUV 4:2:0, 8-bit
Color range: Limited (MPEG)
Color primaries: BT.709
Transfer characteristics: xvYCC
Color space: BT.709

=====================================================
Extradata des Video-Codecs
=====================================================
Größe: 317
Hex: 01 64 00 2A FF E1 00 34 27 64 00 2A AC D3 01 E0 08 9F 97 01 6A 02 16 02 80 00 04 B0 00 01 D4 C0 76 40 00 72 70 00 00 F4 24 17 79 71 B2 00 03 93 80 00 07 A1 20 BB CB 87 C2 21 14 58 03 00 42 28 (+253 Bytes)

=====================================================
Audio (1 aktive Tonspur)
=====================================================
Codec: LPCM
Kanäle: Stereo
Bitrate: 192000 Bps / 1536 kbps
Abtastrate: 48000 Hz
Gesamtdauer: 00:00:53,769

eumagga0x2a

LPCM in MP4 is a spec violation which libavformat (i.e. FFmpeg) we use in the MP4 muxer doesn't support. LPCM (big- or little-endian) is possible in MOV you should use instead of MP4.

L1nK

Ok thanks for the info. Strange, that Sony is using this spec violation though...
Also I never had any issues playing this clip.

eumagga0x2a

Even if most players incl. all FFmpeg-based ones accept such MP4 files, FFmpeg (libavformat is a part of FFmpeg) doesn't support creating such MP4 files, and Avidemux as a user of FFmpeg libraries can output only what FFmpeg can produce.