justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
868 stars 147 forks source link

Process terminates prematurely when joining mp4 files #289

Open oshbo opened 4 years ago

oshbo commented 4 years ago

Using tsmuxerGUI, added (add button) the first file and joined (join button) 4 additional files... each file was approximately 1GB each in size. Started the process using the Blu-ray folder option. The process started but terminated at 19.7% with a "moov atom not found" error. Based on the percent completed, it appears that the error occurred after the first file was muxed. Please advise. Here is the meta file:

MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --auto-chapters=5 --vbv-len=500
V_MPEG4/ISO/AVC, "D:\tsmuxer\Source\test (1).mp4"+"D:\tsmuxer\Source\test (2).mp4"+"D:\tsmuxer\Source\test (3).mp4"+"D:\tsmuxer\Source\test (4).mp4"+"D:\tsmuxer\Source\test (5).mp4", insertSEI, contSPS, track=1, lang=und
A_AC3, "D:\tsmuxer\Source\test (1).mp4"+"D:\tsmuxer\Source\test (2).mp4"+"D:\tsmuxer\Source\test (3).mp4"+"D:\tsmuxer\Source\test (4).mp4"+"D:\tsmuxer\Source\test (5).mp4", track=2, lang=und
justdan96 commented 4 years ago

Can you reproduce the issue with smaller files (~20MB each)?

oshbo commented 4 years ago

Sure and I had the same issue with 20MB files. I attached jpgs of the input and output windows.

I went into the BD folder to look at the m2ts file and it was 9 sec in length. Each of the 20M input files were 26 sec in length so it appears that the process terminated before the first file was fully muxed.

Input Output

justdan96 commented 4 years ago

Can you share those files < 20MB? We can try to reproduce the same issue.

oshbo commented 4 years ago

I do not have the original file but I created an AVC/AC3 file with a similar size. The audio track is null so no sound but it is there. Open the attached file and make 5 additional copies. This is how I ran the original test (above). Thanks.

test20M (1).zip

lighterowl commented 4 years ago

@jcdr428 Can you have a look? The error still appears with the current master, and ffmpeg doesn't throw any errors while processing this file.