VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 35
  1. Hi,
    My dog has acquired a taste for DVD's, so I decided to save some of my DVD's by storing them on my computer. To save space I want to convert them to divx. To do this I bought TmpgEnc Xpress. I tried it on one of the DVD's. However the divx has a big black border around the screen, that wasn't there in the original DVD. I've searched some forums (including this one) but cannot figure out what it is I'm doing wrong.

    I hope someone will help.

    First I select the main video file from the DVD, using the Source wizard.
    Click image for larger version

Name:	Source.jpg
Views:	2185
Size:	110.0 KB
ID:	16492
    I understand it is important to make the divx in the same resolution as the original. As you can see, the original is 720x576.

    I hit "edit"
    Click image for larger version

Name:	clip properties.jpg
Views:	1508
Size:	180.6 KB
ID:	16493
    Again 720x576pixels, aspect ratio PAL 16x9

    I hit "filters"
    Click image for larger version

Name:	Filters.jpg
Views:	1486
Size:	170.7 KB
ID:	16494
    The filter "picture resize" is always on, I can't turn it of. Someone suggested to turn of the "keep aspect ratio" I tried it with this one on and off, both with the same result. I also tried changing "full screen" into "full screen (without border) with the same result.

    After this I hit "OK"
    Click image for larger version

Name:	File Output.jpg
Views:	2277
Size:	160.7 KB
ID:	16495
    As you can see, the divx should be 720x576 pixels, aspect ratio PAL16x9, just like the original DVD.

    Click image for larger version

Name:	Result.jpg
Views:	1575
Size:	203.3 KB
ID:	16496
    And this is a screencap from the outputed file. It has a big annoying black border. When I try to play it on my TV the border is even bigger

    I'm at a loss, so I really hope someone can help me out.
    flipje
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    It should have borders at top and bottom because it's wider than 16:9. Around 2.4:1 aspect ratio.

    If you zoom to full screen you shouldn't get any borders at left and right.
    Quote Quote  
  3. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    What am I doing wrong ? Several things.

    720*576 is the Storage Aspect Ratio of the dvd - in fact EVERY PAL dvd - you do NOT want to re-encode to that.
    16:9 is the Display Aspect Ratio of the DVD - there are only two 4:3 and 16:9 - but most movies are not exactly this.

    You must re-encode to what the actual aspect ratio for the particular movie is - that info should be on the box - ie 2.35 to 1, 2.40 to 1 etc. So you get your calculator out and divide your desired width by the first number. Thus for 2.35 to 1 your encode would be, using 720 pixels width, 720 * 304 (306 rounded down to the nearest division of 4, you can also use divsions of 8 and 16).

    Whether that program allows you to do this I do not know. Most users here would use free software sunch as Handbrake or avidemux.
    Quote Quote  
  4. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Oh. And your target bit-rate is rediculously high.
    Quote Quote  
  5. @Baldrick: I know it should have border at the bottom and top, but there shouldn't be any at the left and right. I tried zooming, but then half of the subtitle is removed as well

    @DB83: at the backside of the box there is a white square with 2.35:1; I'm guessing this is what you meant?
    So I tried again with 720x306, tmpgenc changed this to 720x308. Guess this doesn't matter to much?

    Now it is all distorted, streched.



    The above one is the original DVD, the other one is what I end up with. Both shots are at the same moment in the movie.

    Any more help?
    Image Attached Thumbnails Click image for larger version

Name:	Original.jpg
Views:	405
Size:	103.7 KB
ID:	16500  

    Click image for larger version

Name:	New.jpg
Views:	382
Size:	86.0 KB
ID:	16501  

    Quote Quote  
  6. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Check the VLC player settings . These are clearly wrong
    Quote Quote  
  7. Member
    Join Date
    Aug 2010
    Location
    Indian Ocean
    Search Comp PM
    Use "picture crop" inside filters to crop away black borders before you encode. Then uncheck "keep aspect ratio" inside picture resize. You'll have to do the math to decide on final dimensions, but this way you'll encode with 1:1 display aspect ratio.
    Last edited by Island_Dweller; 26th Feb 2013 at 04:20.
    Quote Quote  
  8. Member
    Join Date
    Jan 2007
    Location
    United States
    Search Comp PM
    the picture is anamorphic
    a wide "movie frame" compressed inside the DVD video frame demensions, when played the DVD player displays a wider PIXEL ratio

    IF you could look at a single frame of the video as it is stored on the DVD it would looked squished circles would be tall ovals
    faces would be too thin

    as stated above you have too crop the borders before final encoding

    because the borders are part of the processed 'frame' when changing from dvd to any other format

    i would very likely keep the borders and just zoom up on playback

    i mean are you really going to watch these instead of the DVD's

    if they are primarily for backup, why worry about the borders/box
    you can remove that when & if you need to reprocess to make new DVD's

    me i would buy a bigger drive and just copy the DVD's as is with out changing to Dvix
    Quote Quote  
  9. Hi,
    Sorry it took me a day to come back here, and again thanks for the replies.

    I tried playing the divx of my last post in media player in stead of VLC. In media player it all dimensions look ok. So, it seems DB83 was right and the distortion is due to a wrong setting in VLC. I tried to change some of VLC's settings but I can't figure out what is wrong.
    Any help with that would again be appeciated. (Or should I open a new thread for that?)

    @Island_dweller and theewizard: I tried cropping but that way half of the subtitles are removed as well. I'm Dutch so I would like to keep them.

    @theewizard: My dog is ruining my DVD collection. I know it sounds weird but she literally at some of them. Therefore I want to keep them on my HD. If she destroys an other one I can at least burn the divx again. So I hope it isn't necessary, but I think it will be. Unfortunately I can't buy a bigger HD, because of financial reasons. This is also the reason why I can't just buy a new DVD.

    flip
    Quote Quote  
  10. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    There are 3 settings in the video menu that control how the picture is displayed.

    What I would do is:

    1. Set 'Aspect Ratio' and 'Crop' to 'Default' and 'scale' to on (ticked)

    If that does not solve the issue then alter 'Aspect Ratio' and 'Crop' one at a time

    I would also play the original dvd in VLC. That should view correctly with the settings as 1.
    Quote Quote  
  11. Again, sorry it took some time for me to reply.
    I've been trying different settings for VLC. All settings were as DB83 suggested, and so resulted in a distorted picture. Also playing the DVD in VLC with these settings I get the distorted picture.

    The best looking picture I got with a ratio of 16:9. this is true for both playing the DVD and the divx (which I ripped using 720x306) However using these settings the borders are back again. This time the border at he sides are black, but the border at the top and bottom are more dark gray.

    I will try and see how my DVD-player plays the divx. If the picture is fine then, then it's ok.

    flip
    Quote Quote  
  12. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Well I can only think that it is the camera setting that is causing the distortion using these VLC settings.

    You can easily test this by playing a commercial dvd using these settings.

    But for the sake of repeating myself adnausem, but now for the very last time, just post a small example of the original video. Give the guys something tangible to work with. If you do not then we can hardly help any more.
    Quote Quote  
  13. Well, I tried playing the divx on my TV using my DVD-player. The image looked a bit streched, and there were two big black bars at the top and bottom. Each of these was nearly as big as the image itself.

    @DB83: of course I played the original DVD in VLC, using the settings you named earlier. These are also the default settings. To me everything looks fine this way. To make sure you agree I'll post a cap.
    Click image for larger version

Name:	Naamloos.jpg
Views:	1450
Size:	164.7 KB
ID:	16593
    I've posted the results of the ripping in the beginning of this thread.
    Also to repeat yourself ad nauseam (yes, two words and an extra "a") you should have asked for a small example of the original in your replies before; you didn't.

    I would love to post an example but how on earth am I going to do that? It's a DVD so I can't just cut a part out of it. Well, not without ripping it, which was the problem in the first place. If you explained this somewhere else, a link will suffice.

    flip
    Quote Quote  
  14. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    My apologies. There is another thread I was contributing to which had an odd AR problem.

    Got them mixed up. Put it down to old age, too my alcholol or a combination of both.

    I do not do much re-encoding. Technically this is NOT ripping. But if your AR is correct is 2.35:1 AND pixels are square (remember that on the dvd they are not and there is a DAR flag of 16:9 which no longer applies on the re-encode) there is no reason for it not to be correct. But now looking at the OP again, these settings seem to be present and I do wonder if it is these that are throwing you.

    What I now suggest is that you try other software. Autogk, which allows re-encodes in xVID and Divx usually nails the AR bit so give that one a go.
    Quote Quote  
  15. It's ok, we al make mistakes. And I'm gratefull for the help.

    I installed Autogk but it won't accept DVD files, so I'm not sure how this will help me?
    Quote Quote  
  16. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    So you are trying to rip/re-encode direct from the dvd ? Not a good idea.

    You rip the rip to your HDD. That is use a program such as dvddecrypter or similar.

    You import the ifo file in to autogk. Autogk should also be able to import a vob from your hdd if you rip the movie, without the extras to one large vob.
    Quote Quote  
  17. Originally Posted by DB83 View Post
    You rip the rip to your HDD. That is use a program such as dvddecrypter or similar.

    You import the ifo file in to autogk. Autogk should also be able to import a vob from your hdd if you rip the movie, without the extras to one large vob.
    Just a small correction. If you open the first movie VOB in AutoGK, the rest will follow. It's not necessary to make a single large VOB first. And if there are subs you want, you should open the IFO.

    But I agree with you. He's having so much trouble with this that it might be better to let an automatic all-in-one program do the job until he gets the hang of it and can do it himself.
    Quote Quote  
  18. Try this:

    Keep your original TMPGenc settings with the following changes:

    Under resize use full screen without borders
    Under format set your size to 1024x576, Aspect Ratio 1:1

    Try a small sample and see if that works.
    Quote Quote  
  19. @smrpix: when I use a size of 1024x576, AR 1:1, I get a movie which plays just fine on my pc, without the borders. However for some reason my DVD-player can't play it. It just displays a message that the file is unplayable; it doesn't tell me what the problem.

    Using autoGK I get a file which plays fine on both the pc and the DVD-player, with just small borders at the top and bottom. So that would be fine. However the picture is all grainy; looks like the resolution is way down all of a sudden. I didn't make any changes to the resolution myself.

    Well, I just couldn't stand the fact that I didn't get the hang of tmpgenc; I mean, I'm a PhD so I should be able to do this....
    I took a better look at the file autoGK made. It has 720x304 pixels, which is as DB83 recommended in the first place. However when I tried DB83's advice the first time tmpgenc changed it to 720x308, which I accepted. So this time I reencoded the movie, this time with 720x304 pixels. Thus not accepting the change tmpgenc made.

    The result is a perfectly playable movie, a clear image, and no borders at the sides. So I guess we finally did it.
    Still I think it's uncanny how much effect such a small change is size (308 to 304) has on the endresult.

    @DB83: somewhere you told me the bitrate is way to high. A bitrate of 3000 is just the default setting of tmpgenc and on other boards I find the same number. Would you recommend a lower number? It would save a lot of extra diskspace.....
    Quote Quote  
  20. Glad it worked out. 304 is divisible by 16, 308 is not. Seems to be a requirement of your player.
    Quote Quote  
  21. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    You can not specifically set the bit rate in autogk.

    You do it in one of 2 ways. You either set a custom file size - I have always found 10-15 meg per minute to be quite acceptable or a target quality - 75% is what seems to be suggested.

    IIRC 10-15 meg per minute equates to a bit rate of approx 1500 mbs

    Your end result was possibly grainy since you set the target too low. Autogk has another preset of 700 meg which is rather too low for more than 1 hour of video using xVID or Divx.

    It will always depend on the quality of your source tho.
    Quote Quote  
  22. Originally Posted by DB83 View Post
    Your end result was possibly grainy since you set the target too low.
    Right, and without a log there's really no way to tell where it went wrong. Whenever posting about AutoGK problems, please post the log it creates. It usually sheds light in where it went wrong (or where the user made it go wrong).
    Quote Quote  
  23. To fix the back border problem using AutoGK, use Ctrl+F9 to open the hidden options after loading a video. Tick the "Tune autocrop parameters" box. Increase the threshold setting a little. It's set to 34 by default. Increasing it to 35 is usually enough to get rid of any remaining black borders.

    Alternatively, adjust the cropping manually in the "force cropping" section. Any cropping you add manually will be the auto-cropping, plus the cropping you add. To disable auto-cropping completely and set the cropping manually, change the threshold to zero. The "Tune autocrop parameters" box must be ticked to adjust the cropping manually.

    Keep in mind, AutoGK resizes differently to most other programs in order not to distort the picture. Without writing a long explanation, it's possible you might increase the cropping by a few pixels but according to the preview it makes no difference. If that's the case, increase the manual cropping a little more until it does.

    For the poor quality AutoGK encode issue..... which version of Xvid do you have installed? If in doubt, or if you've installed a copdec pack which may have included Xvid etc..... uninstall Xvid completely and re-install AutoGK while letting it install the version of Xvid it comes bundled with. Other versions of Xvid could have AutoGK using all sorts of odd Xvid settings. And to start with, tick the "enable standalone support" box in AutoGK's hidden options and set it to "ESS". That'll get AutoGK to create an AVI any DVD player should play. If the picture quality is still poor, then it's probably because you're aiming for too small a file size.
    Quote Quote  
  24. @smrpix: so as long as I use 304, or any division of 16, it should be oke?

    Anyway, I know this discussion is beyond the original question so I hope it's oke to continue.
    All I did with autoGK, was inputting the original video and hitting "Add Job" and "start." All the rest was done (or not done) by autoGK itself. So I didn't change any bitrate. I just asked because of DB83's remark:

    Originally Posted by DB83 View Post
    Oh. And your target bit-rate is rediculously high.
    Source video is a commercial DVD, so that shouldn't be the problem.
    The video is about 2hours long (2 hours 1 minute and a few seconds). If 10-15MB per minute is normal, it should be a bitrate of about 1200-1800MB. If autoGK uses 700MB as default, that sounds rather low to me. Or am I at fault here?

    Here is the log it created:
    [4-3-2013 14:21:31] AutoGK 2.55
    [4-3-2013 14:21:31] OS: Windows Vista (6.1.7601).2
    [4-3-2013 14:21:31] Job started.
    [4-3-2013 14:21:31] Input file: G:\VIDEO_TS\VTS_06_1.VOB
    [4-3-2013 14:21:31] Output file: E:\VTS_06_1.avi
    [4-3-2013 14:21:31] Output codec: XviD
    [4-3-2013 14:21:31] Audio 1: Audio Stream 0 AC3
    [4-3-2013 14:21:31] Subtitles: none
    [4-3-2013 14:21:31] Format: AVI
    [4-3-2013 14:21:31] Target size: 2040Mb
    [4-3-2013 14:21:31] Audio 1 settings: Auto
    [4-3-2013 14:21:31] Started encoding.
    [4-3-2013 14:21:31] Demuxing and indexing.
    [4-3-2013 14:22:02] Processing file: G:\VIDEO_TS\VTS_06_1.VOB
    [4-3-2013 14:22:02] Processing file: G:\VIDEO_TS\VTS_06_2.VOB
    [4-3-2013 14:22:02] Processing file: G:\VIDEO_TS\VTS_06_3.VOB
    [4-3-2013 14:22:02] Processing file: G:\VIDEO_TS\VTS_06_4.VOB
    [4-3-2013 14:22:02] Processing file: G:\VIDEO_TS\VTS_06_5.VOB
    [4-3-2013 14:22:02] Source resolution: 720x576
    [4-3-2013 14:22:02] Found PAL source.
    [4-3-2013 14:22:02] Source aspect ratio: 16:9
    [4-3-2013 14:22:02] Analyzing source.
    [4-3-2013 14:23:52] Source has percentage of interlacing in motion areas: 0.00
    [4-3-2013 14:23:52] Source is considered to be progressive.
    [4-3-2013 14:23:52] Output will contain 182940 frames
    [4-3-2013 14:23:52] Using VAQ in XviD
    [4-3-2013 14:23:52] Audio1 size: 351,241,728 bytes (334.97 Mb)
    [4-3-2013 14:23:52] Overhead: 1,219,584 bytes (1.16 Mb)
    [4-3-2013 14:23:52] Video size: 1,786,633,728 bytes (1703.87 Mb)
    [4-3-2013 14:23:52] Running compressibility test.
    [4-3-2013 14:23:52] Writing the following script to E:\agk_tmp\VTS_06_1_comptest.avs
    ================================================== =========
    LoadPlugin("E:\PROGRA~2\AutoGK\DGMPGDec\DGDecode.dll")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\autocrop.dl l")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\RemoveGrain SSE3.dll")

    movie = mpeg2source("G:\VIDEO_TS\agk_tmp\VTS_06_1.d2v")
    cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=0,threshold=34,samplestartframe=0,leftad d=0,rightadd=0,topadd=0,bottomadd=0)
    fixed_aspect = 1.42222222222222
    c_width = width(cropclip)
    c_height = round(height(cropclip) / fixed_aspect)
    input_par = float(c_width)/float(c_height)
    input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
    out_width = 704
    out_height = round(float(out_width) / input_par)
    hmod = out_height - (floor(out_height / 16 ) * 16)
    out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
    new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
    autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=new_aspect,threshold=34,samplestartframe =0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
    LanczosResize(out_width,out_height)
    RemoveGrain(mode=2)
    SelectRangeEvery(300,15)
    ================================================== =========
    [4-3-2013 14:25:13] Duration was: 1 minute, 21 seconds
    [4-3-2013 14:25:13] Speed was: 112.15 fps.
    [4-3-2013 14:25:13] Compressibility percentage is: 103.38
    [4-3-2013 14:25:13] Chosen resolution is: 720x320 ( AR: 2.25 )
    [4-3-2013 14:25:13] Predicted comptest value is: 96.03%
    [4-3-2013 14:25:13] Running first pass.
    [4-3-2013 14:25:13] Writing the following script to E:\agk_tmp\VTS_06_1_movie.avs
    ================================================== =========
    LoadPlugin("E:\PROGRA~2\AutoGK\DGMPGDec\DGDecode.d ll")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\autocrop.dl l")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\RemoveGrain SSE3.dll")

    movie = mpeg2source("G:\VIDEO_TS\agk_tmp\VTS_06_1.d2v")
    cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=0,threshold=34,samplestartframe=0,leftad d=0,rightadd=0,topadd=0,bottomadd=0)
    fixed_aspect = 1.42222222222222
    c_width = width(cropclip)
    c_height = round(height(cropclip) / fixed_aspect)
    input_par = float(c_width)/float(c_height)
    input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
    out_width = 720
    out_height = round(float(out_width) / input_par)
    hmod = out_height - (floor(out_height / 16 ) * 16)
    out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
    new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
    autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=new_aspect,threshold=34,samplestartframe =0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
    LanczosResize(out_width,out_height)
    RemoveGrain(mode=2)
    ================================================== =========
    [4-3-2013 14:41:54] Duration was: 16 minutes 40 seconds
    [4-3-2013 14:41:54] Speed was: 182.81 fps.
    [4-3-2013 14:41:54] Expected quality of first pass size: 102.50%
    [4-3-2013 14:41:54] Trying to adjust settings.
    [4-3-2013 14:41:54] Switching b-frames off
    [4-3-2013 14:41:54] Chosen resolution is: 720x320 ( AR: 2.25 )
    [4-3-2013 14:41:54] Predicted comptest value is: 76.67
    [4-3-2013 14:41:54] Re-running first pass.
    [4-3-2013 14:41:54] Writing the following script to E:\agk_tmp\VTS_06_1_movie.avs
    ================================================== =========
    LoadPlugin("E:\PROGRA~2\AutoGK\DGMPGDec\DGDecode.d ll")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\autocrop.dl l")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\RemoveGrain SSE3.dll")

    movie = mpeg2source("G:\VIDEO_TS\agk_tmp\VTS_06_1.d2v")
    cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=0,threshold=34,samplestartframe=0,leftad d=0,rightadd=0,topadd=0,bottomadd=0)
    fixed_aspect = 1.42222222222222
    c_width = width(cropclip)
    c_height = round(height(cropclip) / fixed_aspect)
    input_par = float(c_width)/float(c_height)
    input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
    out_width = 720
    out_height = round(float(out_width) / input_par)
    hmod = out_height - (floor(out_height / 16 ) * 16)
    out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
    new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
    autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=new_aspect,threshold=34,samplestartframe =0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
    LanczosResize(out_width,out_height)
    RemoveGrain(mode=2)
    ================================================== =========
    [4-3-2013 14:59:30] Duration was: 17 minutes 35 seconds
    [4-3-2013 14:59:30] Speed was: 173.25 fps.
    [4-3-2013 14:59:30] Expected quality of first pass size: 76.31%
    [4-3-2013 14:59:30] Running second pass.
    [4-3-2013 15:34:07] Duration was: 34 minutes 37 seconds
    [4-3-2013 15:34:07] Speed was: 88.05 fps.
    [4-3-2013 15:34:07] Job finished. Total time: 1 hour, 12 minutes 36 seconds

    Again thanks for all the help,
    flip
    Quote Quote  
  25. Originally Posted by flipjeboot View Post
    so as long as I use 304, or any division of 16, it should be oke?
    It looks like it wants a width no greater than 720 and seems to want mod 16 dimensions. That's all we can say for sure. I haven't seen a model# in this thread (though it may be buried in there somewhere.)
    Quote Quote  
  26. @hello_hello:
    The problem with the black border occurred when using tmpgenc XPress. When I used AutoGK there were no black borders; only the black bars at top and bottom which is normal. Only problem when I used autoGK was picture quality, which was really poor.
    According to the release notes which came with the codec I'm using Xvid 1.3.1 64-bit (built on 02.04.2011)

    As I said in my previous reply, maybe bitrate was just to low. Also I'll wait if anyone can see any problems in the log I posted.
    If this doesn't help I'll look into your suggestions.
    Quote Quote  
  27. Originally Posted by flipjeboot View Post
    According to the release notes which came with the codec I'm using Xvid 1.3.1 64-bit (built on 02.04.2011)
    My advice would be not to. As one example, AutoGK uses the appropriate Xvid Home Theatre profile when encoding. The wrong version of Xvid can have it using a mobile profile instead, which in turn can limit the bitrate unnecessarily and probably causes AutoGK to make all sorts of incorrect quality assumptions.
    AutoGK also adjusts the minimum and maximum quantizers according to the compression test result which may not happen correctly, it can use a custom encoding matrix and I don't know if that'd work correctly with the wrong Xvid version.....

    I'm fairly confident if you use the version of Xvid which comes bundled with AutoGK, the quality problems you're having will go away. I'm fairly sure AutoGK uses Xvid 1.2.1.
    According to the log file you posted AutoGK thinks the quality should be spectacular (when apparently it's not?), so something isn't working correctly.

    As a general rule you'd want the original compression test result to be somewhere between 70% and 75% (ideally) without AutoGK reducing the resolution too much (if it's on auto) or trying to adjust anything. It can be a bit of trial and error to get the file size roughly right. The initial compression test result in your log file reported a quality of greater than 100% for the chosen file size, so ultimately AutoGK tried to make it harder for Xvid to compress the video by disabling b-frames and re-running the first pass. Even so, the final quality was still 76% which should be quite good. Around 70% to 75% is supposed to be the optimum compression/file size ratio for Xvid.

    If you're not in a hurry, use the single pass encoding method while leaving the quality on 75%. Set the desired video width and audio type manually. When AutoGK is done, note the resulting file size and use it for a 2 pass encode. The compression test result and final quality should both be around 70 to 75% and the quality should be very good. If it's not, something is wrong.
    That's how I used to encode episodic DVDs with AutoGK. I'd let it run a single pass 75% encode on each episode, note the file size for each, and use those file sizes for 2 pass encodes. Naturally it takes longer as you're encoding everything twice, and the file sizes will vary all over the place, but the quality will always be the same. If you keep the original audio rather than convert it to MP3, it's a lot quicker as obviously the step of re-encoding the audio is skipped.

    If you find AutoGK isn't keeping your CPU busy enough when encoding the video (Xvid isn't necessarily great at utilising a multicore CPU to it's full potential) you can run 2 encodes at a time. Or it's handy to be able to set up a second encode while one is already running. Simply open the properties for the shortcut which you use to run AutoGK and add " -multi" to the target section. It might end up looking something like this:
    "C:\Program Files\AutoGK\AutoGK.exe" -multi
    Then you can run more than one instance of AutoGK at a time. If you do, you must use a different output folder for each instance of AutoGK, or it'll end in tears.
    Last edited by hello_hello; 5th Mar 2013 at 09:47.
    Quote Quote  
  28. Originally Posted by roma_turok View Post
    Did you try HandBrake?
    Yeah, I thought about suggesting something along those lines myself. Xvid has had it's day. Using the x264 encoder would be a better option. Plus it has true quality based, single pass encoding. Just pick a quality and run the encode. No need to fuss over file sizes and 2 pass encoding.
    Quote Quote  
  29. No I didn't try Handbrake before.
    I tried encoding the movie using autoGK and Handbrake. Just to see if there's any difference in quality in the endresult. I think both results are great.
    This time the result of AutoGK was great too. I'm not sure why it was so bad last time, since I'm not aware of any changes in the settings. I did notice AutoGK was finished working a lot sooner than the last time.
    I'l post the log, may this will shed any lights?

    [6-3-2013 17:06:37] AutoGK 2.55
    [6-3-2013 17:06:37] OS: Windows Vista (6.1.7601).2
    [6-3-2013 17:06:37] Job started.
    [6-3-2013 17:06:37] Input file: G:\VIDEO_TS\VTS_06_0.IFO
    [6-3-2013 17:06:37] Output file: E:\autoGK\DVDFILES.avi
    [6-3-2013 17:06:37] Output codec: XviD
    [6-3-2013 17:06:37] Audio 1: English AC3 6ch
    [6-3-2013 17:06:37] Subtitles 1: Nederlands wide
    [6-3-2013 17:06:37] Format: AVI
    [6-3-2013 17:06:37] Target quality: 75%
    [6-3-2013 17:06:37] Audio 1 settings: Original
    [6-3-2013 17:06:37] Started encoding.
    [6-3-2013 17:06:37] Demuxing and indexing.
    [6-3-2013 17:07:07] Processing file: G:\VIDEO_TS\VTS_06_1.VOB
    [6-3-2013 17:07:07] Processing file: G:\VIDEO_TS\VTS_06_2.VOB
    [6-3-2013 17:07:07] Processing file: G:\VIDEO_TS\VTS_06_3.VOB
    [6-3-2013 17:07:07] Processing file: G:\VIDEO_TS\VTS_06_4.VOB
    [6-3-2013 17:07:07] Processing file: G:\VIDEO_TS\VTS_06_5.VOB
    [6-3-2013 17:07:07] Source resolution: 720x576
    [6-3-2013 17:07:07] Found PAL source.
    [6-3-2013 17:07:07] Source aspect ratio: 16:9
    [6-3-2013 17:07:07] Analyzing source.
    [6-3-2013 17:08:57] Source has percentage of interlacing in motion areas: 0.00
    [6-3-2013 17:08:57] Source is considered to be progressive.
    [6-3-2013 17:08:57] Output will contain 182940 frames
    [6-3-2013 17:08:57] Preparing subtitles.
    [6-3-2013 17:09:07] Running single pass encoding.
    [6-3-2013 17:09:07] Writing the following script to E:\autoGK\agk_tmp\DVDFILES_movie.avs
    ================================================== =========
    LoadPlugin("E:\PROGRA~2\AutoGK\DGMPGDec\DGDecode.dll")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\autocrop.dl l")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\vsfilter.dll")
    LoadPlugin("E:\PROGRA~2\AutoGK\filters\RemoveGrain SSE3.dll")

    movie = mpeg2source("E:\autoGK\agk_tmp\DVDFILES.d2v")
    cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=0,threshold=34,samplestartframe=0,leftad d=0,rightadd=0,topadd=0,bottomadd=0)
    fixed_aspect = 1.42222222222222
    c_width = width(cropclip)
    c_height = round(height(cropclip) / fixed_aspect)
    input_par = float(c_width)/float(c_height)
    input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
    out_width = 720
    out_height = round(float(out_width) / input_par)
    hmod = out_height - (floor(out_height / 16 ) * 16)
    out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
    new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
    autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=new_aspect,threshold=34,samplestartframe =0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
    LanczosResize(out_width,out_height)
    RemoveGrain(mode=2)
    VobSub("E:\autoGK\agk_tmp\DVDFILES.idx")
    ================================================== =========
    [6-3-2013 17:38:59] Duration was: 29 minutes 51 seconds
    [6-3-2013 17:38:59] Speed was: 102.13 fps.
    [6-3-2013 17:38:59] Job finished. Total time: 32 minutes 21 seconds


    Anyway the result when using Handbrake is great too. The resulting movie has a somewhat smaller size (1,08GB v 1,58GB) and it did it's job in about half the time autoGK needed. And really I can't see any difference in quality of the resulting movie.

    Now only problem I might have with Handbrake is, that I can only encode into .mkv or .mp4. I know my DVD can't play mkv's; I'm not sure about mp4's. I will test this when I have some time to do so. I will let you know....
    flip
    Quote Quote  



Similar Threads

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