Log in

View Full Version : How to shrink mpeg file?


compusic
19th March 2009, 04:09
Hi, is there a tool that can shrink mpeg file directly, just like DVD Shrink does to DVD?

I need to shrink a mpeg file's size for certain reason, but can't re-encoder the whole file again.

thanks in advance.

netmask
19th March 2009, 06:42
No tool available. If you want to reduce the size then you either edit out bits you don't need and do a stream copy - no re-encoding and maintains quality or re-encode at a lower resolution or convert to MPEG1 (re-encode) DVDShrink btw re-encodes to a lower resolution to make the files fit a DVD5 format btw. It's the old universal equation "something for nothing does not compute"

setarip_old
19th March 2009, 07:53
@netmask
Hi!DVDShrink btw re-encodes to a lower resolution to make the files fit a DVD5 format btwNo - Sounds like you're confusing resolution with bitrate...

chornobyl
19th March 2009, 09:52
What about REJIG
http://forum.doom9.org/showthread.php?s=&threadid=66777

netmask
19th March 2009, 22:23
@netmask
Hi!No - Sounds like you're confusing resolution with bitrate...

Yes you are quite right - the brain cells of this 71 year old sometime suffers a 'moment of confusion' . i only wish there was a method to shrink a MPEG2 as the OP requested, without re-coding.

LoRd_MuldeR
19th March 2009, 22:38
Hi, is there a tool that can shrink mpeg file directly, just like DVD Shrink does to DVD?

Yes. Avidemux (http://tinyurl.com/4t53rs) can do that! Just open your MPEG-2 file and set "Video" to "MPEG-2 requant". Also set "Format" to "MPEG-PS (A+V)" and Keep "Audio" on "Copy".
Also you can click "Configure" to set the "Shrink Factor". Finally goto "File" -> "Save" -> "Save Video" and you are done...

i only wish there was a method to shrink a MPEG2 as the OP requested, without re-coding.

What's wrong with Avidemux' method?

netmask
20th March 2009, 01:29
I am curious to know how AVIMUX reduces the size of a MPEG2 file without re-encoding - does it do a stream copy and what aspects of a mpeg2 file it reduces considering it has video and one soundtrack to start with. What does it do? I'm puzzled as so may people over at the Beyonwiz forum have asked the same question - we are not talking about VOB files but MPEG2 file that contain 1xA+1xV and nothing else. The OP is not clear what the source of his MPEG2 file is from but is clear about not wishing to re-encode. Most of my MPEG2 files are already PS.

laserfan
20th March 2009, 01:50
Didn't know about Avidemux. I bought a payware tool Super MPEG2 Transcoder and have been happy with it; very fast and no noticeable degradation (tho I use it to shrink MPEG2 files that are "close" e.g. 5Gb to 4.7Gb for DVD-5).

LoRd_MuldeR
20th March 2009, 01:55
I am curious to know how AVIMUX reduces the size of a MPEG2 file without re-encoding - does it do a stream copy and what aspects of a mpeg2 file it reduces considering it has video and one soundtrack to start with. What does it do? I'm puzzled as so may people over at the Beyonwiz forum have asked the same question - we are not talking about VOB files but MPEG2 file that contain 1xA+1xV and nothing else. The OP is not clear what the source of his MPEG2 file is from but is clear about not wishing to re-encode. Most of my MPEG2 files are already PS.

It basically uses the same technique used by the well-know DVDShrink ;)

Instead of decoding and re-encoding the MPEG-2 stream, it simply re-quantizes the existing MPEG-2 streams.
Most important that method doesn't need to re-calculate the motion vectors, which saves a lot of time.
This won't beat a good MPEG-2 encoder, but it's much faster and up to some degree the quality is reasonable.

I don't know how Avidemux' re-quantization method compares to DVDShrink or other (commercial) tools, though...

laserfan
20th March 2009, 02:40
It basically uses the same technique used by the well-know DVDShrink [re-quantizes]...AFAIK this is what Super MPEG2 Transcoder does as well.

I will try AviDemux next time and see if I can notice any advantage/disadvantage between the two.

MrC
22nd March 2009, 09:30
If file is mpeg2, ReJig (File Mode) can easily do what you need.

;)

Bye

compusic
31st March 2009, 11:18
Thank you for all the replys.
I'll try the tools mentioned.
I has tried ReJig, it does what I need. but I have to do one more step, that's remux the files, since it'll demux the mpeg file while "shrinking".

LoRd_MuldeR
31st March 2009, 16:00
I has tried ReJig, it does what I need. but I have to do one more step, that's remux the files, since it'll demux the mpeg file while "shrinking".

With Avidemux you should be able to avoid that step. It can output the MPEG-2 stream in a MPEG PS or TS container...

smok3
31st March 2009, 16:04
or author the quick 'dvd folder' with a tool like muxman, then you can drop that folder into DVDShrink.

LoRd_MuldeR
31st March 2009, 16:36
or author the quick 'dvd folder' with a tool like muxman, then you can drop that folder into DVDShrink.

But again you'd need to demux the MPEG stream first, as Muxman requires elementary streams as input. At least the "free" version that I have used ;)

Also I don't think that authoring your MPEG-2 file to a Video-DVD, shrinking the DVD and finally re-ripping the MPEG-2 file from the shrunken DVD is the most convenient method...

Allbestmessage
15th April 2009, 10:27
I dont think Shrink can recode just an mpeg file. You would have to use somthing like Nero vision express to do it.

LoRd_MuldeR
15th April 2009, 13:46
I dont think Shrink can recode just an mpeg file. You would have to use somthing like Nero vision express to do it.

No you don't! You just need a tool like Muxman or DVDAuthor to create the "VIDEO_TS" structure (VOB/IFO files) from your original MPEG-2 file.
Then DVDShrink can process these DVD files, just like any other other DVD. Finally you can re-rip your MPEG-2 file from the "shrunken" DVD and your are done.
But as explained before, this may not be the most convenient method to shrink a plain MPEG-2 file...