Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: tfodor on May 18, 2016, 02:13:51 PM

Title: Append video file size too big ?
Post by: tfodor on May 18, 2016, 02:13:51 PM
Hello,
I try to append 2 MJPEG AVI video (with PCM audio) with direct copy, without any processing.
The resulting file size is much bigger than expected. :(
File A: 2 minutes, 240 MB (fps=29,97)
File B: 2 minutes, 225 MB (fps=29,97)
Appended file: 4 minutes, 697 MB almost 1,5x bigger than A+B.

Does somebody know why this happens, and how can I append more efficiently?
A+B = 465MB??
I have similar behavior with VirtualDub. :(

Thanks in advance for your help!
Regards,
Tibor
Title: Re: Append video file size too big ?
Post by: mean on May 18, 2016, 02:17:19 PM
Maybe overhead due to remuxing correctly
If that's the case, it would happen also if you just copy one single file
Title: Re: Append video file size too big ?
Post by: tfodor on May 18, 2016, 02:48:24 PM
Thanks for your hint, I made a test just saving one file with direct stream copy:
File A: 240MB -> 358MB
File B: 225MB -> 339MB
Adds up to 697MB exactly.
Well it is still a pain, what "correct" and "incorrent" muxing could be...
Any hint on this? The original video was created by a Car Cam DVR.
Title: Re: Append video file size too big ?
Post by: mean on May 18, 2016, 03:11:34 PM
They probably do one single chunk with all audio in it => overhead = 12 bytes
"Correct" muxing => overhead  = 12 bytes per ~ 40 ms
Title: Re: Append video file size too big ? (duplicated chunks?)
Post by: tfodor on May 19, 2016, 05:30:26 PM
Thanks for the hint, I made a try saving the AVI without audio this time to avoid overhead, but the file size still increased by 1.3.
I made a little analysis with VirtualDub -> Hex Editor -> RIFF chunk tree, and found that the resulting file has probably (based on their size) duplicate chunks. :(
Do you have any idea why, and how to overcome this problem?

Orig file: Start.AVI 4MB 60 frames, video 45 chunks, audio 24 chunks

VD save as direct stream copy, no audio:
Result file: Start_noaudio.avi 5.4 MB 60 frames, video 60 chunks (17 duplicates).
Title: Re: Append video file size too big ?
Post by: mean on May 19, 2016, 08:23:07 PM
Maybe frame rate is altered
That would explain the duplicates