VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Member
    Join Date
    May 2005
    Location
    Northern California
    Search Comp PM
    Hello All,

    For some movies that I don't wish to use a full DVD on, I've been compressing the DVD into a 1400MB AVI file, then I run 3 of those through DIKO to get 3 sets of mpv/mp2 files for each of the movies, and that way I can put 3 good quality movies on one DVD. I also run the files through DVDLab Pro which is why I need mpv/mp2 files.

    I would imagine there is an easier way to go from a DVD (or vob files) to a 1400MB compressed mpv/mp2 set, but I'm having a tough time finding a solution.

    So is there a way to go from DVD to 1400MB mpv/mp2 set without having to compress to AVI in the middle?
    Quote Quote  
  2. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    Sure! Just demux original m2v, reencode @ a lower bit rate. Absolutely no need to go thru AVI as an intermediate step. And AVI file size has absolutely nothing to do with what size your m2v file will be.
    I imagine you could even use DVDShrink, set it to custom size (1.4 GB) and let it shrink it down. Not as good quality as reencoding, but much faster.

    /Mats
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    can't diko open dvd? or is it the diko gold version.
    Quote Quote  
  4. Member
    Join Date
    May 2005
    Location
    Northern California
    Search Comp PM
    Just demux original m2v, reencode @ a lower bit rate
    How exactly would I do that? Which tools might you recommend for that?

    can't diko open dvd? or is it the diko gold version
    I'm using the latest version of regular diko, and I do see the option to open DVD files but it's greyed out, so yeah, maybe only the gold version can do that, but thanks for the tip, that's worth looking into.
    Quote Quote  
  5. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    Originally Posted by chapterthree
    Just demux original m2v, reencode @ a lower bit rate
    How exactly would I do that? Which tools might you recommend for that?
    There are many ways, but if you start with a full DVD, rip main title with DVDDecrypter in IFO mode, check "Enable stream processing", check "Demux".
    To avoid having the output split, set File Splitting to "None" under the IFO tab under Tools->Settings menu.

    /Mats
    Quote Quote  
  6. Member
    Join Date
    May 2005
    Location
    Northern California
    Search Comp PM
    I guess my question is how would I re-encode the files?
    Quote Quote  
  7. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    By loading the m2v into a Mpeg2 encoder, like TMPGEnc or Procoder or QuEnc or CCE or ... - there are many - and reencode it to m2v again (but at a lowe bit rate).

    /Mats
    Quote Quote  
  8. Member
    Join Date
    May 2005
    Location
    Northern California
    Search Comp PM
    OK great, I'll look into those, thanks
    Quote Quote  
  9. Member
    Join Date
    Jun 2002
    Location
    United States
    Search Comp PM
    Indeed, you should completly skip the AVI format. This is how I re-encode a DVD to a DVD, at a lower bitrate, without using DVDShrink.

    1) Demux the DVD into audio into AC3 and video into M2V (if I want subtitles, I let that stay in the VOB, but only the ones I want) with DVD Decrypter. Important to my way: Set the output to IFO mode, and in the options for IFO Mode, have File Splitting set to NONE. (Must use NTFS for hard drive, FAT32 won't allow this -- Win2000/XP only).
    2) Use DGMPGDEC (http://www.doom9.org) and load the M2V file in, and if it is NTSC, set output to Force FILM (unless it is a TV episode or native 30fps material).
    3) Now, using AVISynth, I can create a script to load the D2V file using MPEG2Source function, after loading the DGDecode.dll file. I can also resize it here, if I wanted. For example, I can fit more material on a DVD if the resolution is lower, since the bitrate can be lower to make that resolution look better. If I wanted, I can use 480x480 as the resolution, being sure to add borders where needed. However, if you want to continue to use the DVD resolution that is the easiest thing to do, and results in quality better than what you have (since this avoids the AVI encode).
    4) In Cinema Craft Encoder (CCE), I load the AVS script I just made into it, and then set the correct bitrate and number of passes I want (generally 6, but for long movies I would do more; for short movies, I use DVDShrink, so to even use CCE I would have to have a movie that has atleast a 35% compression in DVDShrink once it's been stripped down to just the movie, English audio and subs, so that is why the minimum number of passes is about 6 that I do -- this method I use for high quality outputs only -- but also suits this very well).
    5) I then use pulldown.exe (doom9, I think, if you can't find it, DVD Lab does this anyways), to set the ouput file as 29.97 fps and not 23.976 fps -- because 23.976 isn't compatible with DVD. This doesn't take long, and doesn't re-encode the video at all.
    6) Then I use DVDLabPro to make the VOBs, and simple menu if desired.
    7) If I wanted subs, I would take the VOB + IFO and run it through SubRip, and then have DVDLabPro work with it.

    Depending on the lengths of the movies, I might seriously consider encoding at 480x480 instead of 720x480 (change x480s to x576 if you use PAL / 25fps material). Three 2 hour movies would yield a video bitrate of just 1548kbps -- best suited for 480x480 and NOT 720x480. Be aware that 480x480 is SVCD resolution, and can be put on DVDs, but has a maximum bitrate of 2520kbps and not the 9800 offered by DVD. I think it will look better. The difference is 1548k @ 720x480 will be noticeably blocky, while 1548k @ 480x480 will be far less blocky, but has a distortion that is caused by the lower horizontal resolution. I think the SVCD res will look better, personally.

    No encoding of audio is necessary -- it is the exact same audio as on the original DVD. Although, I would also consider using the stereo audio on the disc rather than the 5.1, just to save space, depending on if the movie benefits from 5.1 or its video more.
    Quote Quote  
  10. Member
    Join Date
    May 2005
    Location
    Northern California
    Search Comp PM
    Joex444,

    Thanks for the suggestion. Do you have an example AVS script that I can look at or use? I'm not familar with creating AVS scripts.

    Thanks
    Quote Quote  
  11. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    Excellent guide - I wish I had the patience to give replies like that!
    A few minor things tho - Dropping res to 480x480: I'd rather drop to half D1 (352*480) which unlike 480x480 is a valid (NTSC) DVD resolution.
    And then there is the same restriction on bitrate regardless of resolution -you can well use 352x480 (or the illegal 480x480) at full DVD bitrate (9800) even if that'd be a real waste.
    Only exception is when using mpeg1 @ VCD res (352*240 NTSC) which also happens to be valid as DVD video - I think max bitrate is somewhere like 1800 kbps.

    /Mats
    Quote Quote  
  12. Member
    Join Date
    Jun 2002
    Location
    United States
    Search Comp PM
    Sure, the AVS Script might look something like this:

    loadplugin("DGDecode.dll")
    mpeg2source("movie.d2v")

    then, to resize, I might do something like this after those two lines:

    BilinearResize(480, 480)

    If I wanted 352x480, then (352, 480)

    Things to note:

    DGDecode should be in the directory with the M2V, D2V, and AVS file especially, else you have to use the full path (ie, loadplugin("C:\Program File\AviSynth2\Plugins\DGDecode.dll") -- DGDecode.dll *not* part of AviSynth, it is part of DGMpgdec). You use mpeg2source (a function from dgdecode.dll, not part of AviSynth natively) to load the D2V file (dgmpgdec output) not the M2V file.

    CCE will not resize video, so you must resize it in the script.

    Also, I'm using AviSynth 2.5, I believe I use that instead of 2.0 because DGDecode only works with 2.5.

    Mats is right that 480x480 is illegal on DVDs. It's supported by some DVD players but not all. Mine does, and I've used that with good results. You can easily try a little sample (after the mpeg2source line, use trim(0,1000) to grab the first 1000 frames, don't worry about audio) put it on a DVD-RW or DVD+RW disc, and see if it plays. If not, try the 352x480 and see how that works. 1000 frames is a little more than 40 seconds, you should be able to tell if things work right or not in that time frame, and with CCE, this should take about 3-4 minutes to encode with a few passes, perhaps 1-2 minutes with 1 pass, assuming a decently modern PC.

    CCE is really fast for a MPEG2 encoder, and has the best quality I've seen. I believe I get somewhere around 2.1-2.4 for speed (this is 2.1 - 2.4x real time, thus, at 23.976 fps it is around 50-58 fps encode speed) for DVD 720x480. This is on a year old Athlon 3000+ (400MHz bus), 512MB PC3200 DDR Dual Channel 2.5-3-3-6, and two Seagate ATA/100 8MB 7200RPM 120GB drives in RAID0. Give or take, I'd say it's equal to about a 3.0 or 3.2GHz P4, depending (a 3.0 with dual channel, and raid, a 3.2 with single channel and 1 hard drive).
    Quote Quote  
  13. Member
    Join Date
    Jun 2002
    Location
    United States
    Search Comp PM
    Oh, one last thing. You don't actually have to demux if you don't want to or if you're still using FAT32 for some reason.

    DGMPGDec can take the VOBs (multiple VOBs), and write out that D2V file so the AviSynth script that you load into CCE (you can drag the AVS script into CCE, it doesn't actually let you load AVS nativley, but it will work) is one continuous file, and the output will also be one continuous file.

    DGMPGDec can also demux the audio from the VOB set, writing it out to the same directory as the D2V file. So, now you would have a D2V file, a bunch of VOBs, and an AC3. If you demux it with DVDDecrypter, you have a D2V file, a M2V file, and an AC3. Either way, they both work. DGMPGDec takes longer to write the D2V file if it also demuxes audio, though, so, for speed, the DVDDecrypter method is best.
    Quote Quote  
  14. Member
    Join Date
    May 2005
    Location
    Northern California
    Search Comp PM
    OK so I followed the steps that Joex444 mentioned, ran the file through CCE with 6 passes, and the file that was outputed was good quality, but it had a stutter to it, every few seconds you could see a bit of a stutter. Any ideas as to why that would be, and what I might have done wrong?

    Also, is there a tool that somebody would recommend to calculate the bitrate I should use in CCE? It lists the average bitrate, the min and the max, so how would I calculate all 3?

    Thanks
    Quote Quote  
  15. Member mats.hogberg's Avatar
    Join Date
    Jul 2002
    Location
    Sweden (PAL)
    Search Comp PM
    You only have to (and can) calculate the average bit rate. What you set min and max to, doesn't affect resulting file size, just how much the encoder can vary the bitrate.
    The VideoHelp brc is one of the best.

    /Mats
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!