Log in

View Full Version : M2VDownsizer by Makira


RobK
18th August 2022, 14:40
Years ago, Metakine Inc., the makers of DVDRemaster for the Mac released the source code for M2VDownsizer under the GPL-2. One can still find it via the Wayback machine.

It still compiles and works. But it will crash when compressing small M2V files with a high lowering factor less than 2. This is probably not too surprising since it was written for compressing m2v video from DVD-9 discs so that they would fit on DVD-5 discs.

$ M2VDownsizer 1.46 3 47163618 < sample_3840x2160.m2v > sample_test.m2v
M2VDownsizer by Makira.
Using 1.460000 as factor, 47163618 as size and 3 as quality - 2 cpu(s).
Assertion failed: (buf < obuf + BUF_SIZE), function putbits, file mpeg2enc/putbits.c, line 35.
Abort trap: 6


Has anyone updated this code?

P.S. When you run it on the command line, you will see
"M2VDownsizer by Makira"

Is Makira the same Makira on this forum?

Emulgator
20th August 2022, 20:36
I would resize to 720x480/576 before using that app.
I guess that 3840x2160 was unhandled back then, and still is.

So it would boil down to real reencoding and not thowing away Hi-frequency coeffs as most DVD-9-to-5 apps did.

RobK
22nd August 2022, 17:11
Yes. It looks like M2VDownsizer is really designed to shrink m2v MPEG-2 video from DVD's. So far, I have had no problems shrinking such video. It is not surprising that Metakine decided to use it in their DVDRemaster product for the Mac.

In my experience so far, with MPEG-2 video encoded at higher resolutions, M2VDownszier may crash depending on the resolution.