memory allocation error muxing AAC data from MPEG TS
Original reporter: mbunkus
Reported via email:
Muxing a specific MPEG transport stream file with AAC data it in throws a lot of warnings about skipping data due to no AAC headers being found. Mor importantly, muxing aborts with a message that 4 GB of data could not be allocated.
Output (several lines of warnings omitted):
mkvmerge v5.9.0 ('On The Loose') built on Dec 9 2012 15:37:01
'G:\Timeshift_01-17 17-55-12_MEGA HD.ts': Using the demultiplexer for the format 'MPEG transport stream'.
'G:\Timeshift_01-17 17-55-12_MEGA HD.ts' track 1: Using the output module for the format 'AVC/h.264'.
'G:\Timeshift_01-17 17-55-12_MEGA HD.ts' track 2: Using the output module for the format 'AAC'.
The file 'C:\Users\Resident\Desktop\Timeshift_01-17 17-55-12_MEGA HD.mkv' has been opened for writing.
'G:\Timeshift_01-17 17-55-12_MEGA HD.ts' track 1: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1920/1080.
Warning: 'G:\Timeshift_01-17 17-55-12_MEGA HD.ts' track 2: Skipping 941 bytes (no valid AAC header found). This might cause audio/video desynchronisation.
Progress: 0%
....
Warning: 'G:\Timeshift_01-17 17-55-12_MEGA HD.ts' track 2: Skipping 2797 bytes (no valid AAC header found). This might cause audio/video desynchronisation.
Warning: 'G:\Timeshift_01-17 17-55-12_MEGA HD.ts' track 2: Skipping 513 bytes (no valid AAC header found). This might cause audio/video desynchronisation.
Error: memory.cpp/safememdup() called from file src/output/p_aac.cpp, line 75: malloc() returned nullptr for a size of 4294967288 bytes.
Edited by Moritz Bunkus