User User name Password  
   
Saturday 27.9.2025 / 00:07
Search AfterDawn Forums:        In English   Suomeksi   Pć svenska
afterdawn.com > forums > archived forums > divx / xvid > dvd -- avi (have looked at guides)
Show topics
 
Forums
Forums
DVD -- AVI (have looked at guides)
  Jump to:
 
Posted Message
steve7777
Junior Member
_
23. October 2006 @ 10:57 _ Link to this message    Send private message to this user   
Hello all,

It has been a long time since I've encoded a DVD to XviD and am seeking some assistance.

Having a DVD on my HDD, I'd crack open Donlad Grafts "DGMPEGDec MPEG1/2 Decoder and Frame Server". This would produce a .d2v file if my memory is any good.

They I'd write a script for AVISYNTH that would serve the frames into VirtualDub Mod. The sound was already demuxed with the above plug-in.

Does that make sense? I also used IVTC to clean up the video when it was interlaced.

I'm just wondering what is common practice these days, and what yeilds the best results (quality wise).

Thanks,

Steve
Advertisement
_
__
aldaco12
AfterDawn Addict
_
25. October 2006 @ 06:23 _ Link to this message    Send private message to this user   
Yes, it makes sense. I too use VirtualDubMod to make DVD -> AVI (so I can add any kind of audio I Demux [ReJig to have AC3 delay =0!] or encode the decode WAV file (which has delay=0) to MP3/AC3 2 ch using other applications: HeadAC3he (the one I prefere because it can encoode WAV --> MP3 CBR) or FFMPEG GUI (the one I use only if HeadAC3he cannot encode the sound file, thing that happens only when HeadAC3he loads a stream demuxed from some AVIs.

To make VirtaulDub read D2V files you have two choices:
- transform the D2V file in a pseudo-AVI using the VFAPI reader codec;
- install avisinth + writing a script file (loadD2V.AVS)

MPEG2Dec3dg_mpeg2source("C:\your_movie_directory\Movie.d2v")
ConvertToYUY2()

(MPEG2Dec3dg.dll is an AviSynth plugin you've put in its \plugin directory, a little better than the standard DLL MPEG2Dec3.dll)

After loading the D2V, load with the Stream___Stream List -> Add command the sound and use the filters described in ours guide.

Just remember to use the batch mode to make the two runs necessary to make a XviD Multipass AVI file.

VirtualDub(Mod) also is able to call internal XviD bitrate calculator, to create a perfect 700 MB AVI file.

Just a caution: read the 16_9 DivX guide, but use the VirtualDub filter order explained in the 4_3 guide:
1) Deinterlace to de-interlace the video (or the AVI will be made of kay-frames only).
2) Null Transform to remove the black bars. The standard movie will become a XxY movie, where X = 720 - CropW - CropE, Y = 480/576 - CropN - CropS (NTSC/PAL)
3) Resize, to have a slighyly smaller screen (about 600-640 x Y'). [X x Y --> X' x (X/X')*Y to keep aspect ratio]. To resize I use the Lanczos algorythm.

Please note: this method is very good but is not immediate to learn. But once you have managed to make your first AVI file, you're done.
I don't think it's 'common practice'. I think WinAVI is more common (but I never used it).

This message has been edited since posting. Last time this message was edited on 25. October 2006 @ 06:27

steve7777
Junior Member
_
25. October 2006 @ 16:27 _ Link to this message    Send private message to this user   
Thanks, that's how I'll proceed. Looks like it gives you the most configuration options and really lets you customize the quality.

Is XviD still the codec of choice, I tried h264 a a while ago (read: a long while ago) but it wasn't ready for prime time.

Thoughts?
celtic_d
AfterDawn Addict
_
25. October 2006 @ 18:10 _ Link to this message    Send private message to this user   
There are some decent H.264 encoders now. For instance x264 is excellent. I just wouldn't recommend using it via Vdub. You can still use DGIndex and AVISynth though since the cli encoder accepts AVISynth scripts as input.

Sounds like you pretty much had the right idea in your first post.
aldaco12
AfterDawn Addict
_
27. October 2006 @ 04:15 _ Link to this message    Send private message to this user   
celtic_d speaks of things on too much detail for me (why aren't you the moderator of this forum? If interested, PM me and I'll recommend you to the Afterdawn staff....)
steve7777
Junior Member
_
30. October 2006 @ 17:01 _ Link to this message    Send private message to this user   
Alright, so I did my first encode and I'm not 100% satisfied. I configured XviD as per the following guide:

http://www.short-media.com/review.php?r=267&p=1

First, I ran DGIndex and using the "Forced Film" funciton in the Video --> Field Operation menu, it got rid of my interlacing issues (material in question was 99% Film according to DGIndex's preview function (F5))

Then I created the following script for AviSynth:

Quote:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("Video.d2v")
Crop(0,58,0,-62)
Lanczos4Resize(608,256)

The material in question was anamorphic (2.35:1), so I cropped out the black bars (it suprised me that the top and bottom bars weren't the same size).

After that, I pulled up VirtualDub Mod and did a 2 pass "Fast Recompress", 1200kbps target quality.

Basically, the video looks good when it's at it's original size, but even then some blocking is apparent. When I crack it open fullscreen... it looks O.K, but I've seen better.

Then I thought I could implement a filter in the AviSynth script above, but that would be an exercise in futility, because all I'd be doing is cleaning up the source video, and not the end result.

So there you have it... I was thinking of putting the file through VirtualDub Mod with and AviSynth Script that would perform some sort of optimisations (of which I know nothing about), and use the "Direct Stream Copy" built in to Virtual Dub.


Now I realise that my screen resolution is 1440x900, so I guess it's normal that the quality of the video degrades when you blow it up(I presume VLC and WMP don't have a very sophisticated resize filter)


So what should I do?

1- Off the bat use AviSynths "Lanczos4Resize" and resize it to, say 1216x512? The problem I see with this solution is that XviD would really be spreading the quality really thin using the same 1200kbps settings.

2- Use FFDShow and let it do on the fly post-processing for all my XviDs? I don't see the point as I have the oppertunity to customize the various quality settings off the bat anyways.

3- Other suggestions from gurus?

I really appreciate all the help, maybe my expectations are too high? I know that XviD won't look as good as the original DVD but the blocking (especially in solid colors like shots of the sky, walls, etc.) is really annoying.

P.S. I used a custom matrix in the XviD encoding: Dideé's SixofNine Quantization Matrix

It was recommended by the author of the guide mentionned above and this "Didee" character is also a Doom9.org forum member.

Regards,

Jimmy

This message has been edited since posting. Last time this message was edited on 30. October 2006 @ 17:02

steve7777
Junior Member
_
3. November 2006 @ 09:14 _ Link to this message    Send private message to this user   
bump
aldaco12
AfterDawn Addict
_
8. November 2006 @ 01:07 _ Link to this message    Send private message to this user   
I proposed to do things simpler, and therefore I propose to do the 'crop' and 'resizing' stuffs using VirtualDub's filters (Resize for the Lanczos or Bicubic resizing and Null Transform for the cropping as explained in our guide) after having made it to load the VOB set (the D2V).

I personally use AviSynth only to make VirtualDub open D2V files, but if celtic_d is right you'd better use the VFAPI reader codec, instead.

I prepare the audio separately (using HeadAC3he of FFMPEG GUI) and then I add it with VirtualDubMod (the D2V file is only for the video part).
Or you can aply very complicated guides, but I'll let you alone in this. You choose..

This message has been edited since posting. Last time this message was edited on 8. November 2006 @ 01:08

Advertisement
_
__
 
_
steve7777
Junior Member
_
8. November 2006 @ 03:39 _ Link to this message    Send private message to this user   
Thanks for the help, I'll try both out and see which I prefer
afterdawn.com > forums > archived forums > divx / xvid > dvd -- avi (have looked at guides)
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork