KDVD: Blurry picture M2V?
Hi everyone,
I have a problem creating a KDVD.. * I ripped a DVD (with DVD Decrypter) * then I created a D2V file with DVD2AVI (which gave me a .ac3 and .d2v) file... * then I adjusted the following AVISynth script to match my needs : ---------------------------- Begin AVS Script ---------------------------- ################################################## ################ # Using Kwag?s Motion Adaptive Filtering to get more compression # ################################################## ################ ################################# # Load Plugins for Avisynth 2.5 # ################################# LoadPlugin("C:\knight\mpeg2dec.dll") LoadPlugin("C:\knight\undot.dll") LoadPlugin("C:\knight\asharp.dll") LoadPlugin("C:\knight\grip.dll") LoadPlugin("C:\knight\STMedianFilter.dll") LoadPlugin("C:\knight\unfilter.dll") ############## # Parameters # ############## myanamorphic=true # change to false if on step 6 you had 4:3 instead of 16:9 #Use 720 or 352 to KDVD, 528 352 to K(S)VCD m_width=720 #subtitle="VTS_01_0.sub" # Add a# in the beginning of this line if you don't need #subtitles or change for the name of the sub file created on step 7. movie="name_of_the_project_DVD2AVI.d2v" myoverscan=1 # Test values from 0 to 3 here. Bigger files produce more quality but #a value too big will cause undesirable black borders on your TV. MaxTreshold = 1.50 nf = 0 # Current frame. ################ ## Functions ### ################ function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2 } ########## # Script # ########## MPEG2Source("c:\knight\knight.d2v") #Resize, over scan and borders undot() Limiter() asharp(1, 4) GripCrop(m_width,480,overscan=myoverscan,Source_an amorphic=myanamorphic,dest_anamorphic=false) GripSize(resizer="BicubicResize") STMedianFilter(8, 32, 0, 0 ) MergeChroma(blur(MaxTreshold)) MergeLuma(blur(0.1)) ## Linear Motion Adaptive Filtering ## # # ( Portions from AviSynth's manual ) - This will apply temporalsoften to # very static scenes, and apply variable blur on moving scenes. # We also assign a variable - and this is why a line break is inserted: SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \ unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \ TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") # # # GripBorders() #Subtitles # ############ #VobSub(subtitle) # Add a # in the beginning of this line if you don't need #subtitles. converttoyuy2() ---------------------------- End AVS Script ---------------------------- * after that I load the KDVD (PAL - Full D1) template in TMPGenc * and second I load the AVS in TMPGenc.. But when I encode it I'm getting the following .m2v (download here : http://62.131.123.182/test.m2v - ~3.8MB ) As you can see, the picture is a bit blocky & blurry. How can this be ? I've been guide-, manual-, and FAQ-reading all day long.. and still can't find a solution to my problem. (btw. the movie is about 127 minutes long and will be around 1,8 gb.. is this ok ?) please let me know. Thanks in advance, Happy new year, JJ |
Re: Blurry picture (M2V).. Can anybody help me please ?
Quote:
Check that you have the latest MPEG2dec3.dll. -kwag |
Re: Blurry picture (M2V).. Can anybody help me please ?
Quote:
looking at the script you posted, I must advise you that it is based on an older version of Kwag's optimal MA script. Now, when you say you load the d2v file in tmpgenc I don't quite understand. Why did you make that nice Avisynth script first? Please check that you have Avisynth v2.53 installed on your system along with ReadAVS v0.1 so that tmpgenc can read your avisynth scripts. Also check the line "ConvertToYuY2" on your script. You shouldn't need that one. Try comenting it by inserting the # (hash) sign before that command. Just tell me how it went, ok? Quote:
|
Double posting 8O
|
Hi all!!
First off : Thanks for replying at such a short notice!!! @rds_correia Quote:
I did place a # before the line with ConvertToYuY2 but TMPGenc complained that the file that I was trying to load (the AVS file) wasn't supported.. Questionmarks keep rising ..... :S btw. AVISynth version is 2.5 (newest --> just downloaded it) @Kwag I renamed the mpeg2dec3.dll to mpeg2dec.dll (too lazy to adjust the script ;)) I don't know which version I have... or if it's the newest... file specs are : Mod-date : 28-07-2003 Filesize : 254.028 (maybe you know ;)) Again, thanks for helping! grtz, JJ |
Quote:
Quote:
|
Quote:
Quote:
grtz, JJ |
Hi Istjapie,
But two things I don't get. One, have you already installed Nic's XviD codec so you can start working directly in YV12 colorspace :?: Because once you do so you will no longer see a message from tmpgenc when you are using your avisynth script without the ConvertToYUY2() line :wink: Two, have you got ReadAVS installed or not :?: If you haven't then there is no way you can be using avisynth scripts in tmpgenc right now 8O Procede installing it right away. Two and a half, could it be that you have ffvfw installed in your PC? If so remove it from your system. |
Quote:
Quote:
|
Quote:
My advice : always unckeck Directshow support in VFAPI tab of tmpgenc. This way you are sure you never use it. |
Hi All,
@rds_correia How could I be so stupid!! I don't have the XviD codec installed :oops: But the funny thing is; when I change it to ConvertToRGB24(), it works perfectly! And the quality is DVD-like! So... my next (stupid ? ;)) question would be... what's the difference in colorspacing ? About ReadAVS.. maybe it's installed automatically alongside another program.. I didn't install it by myself... I did not Install ffvfw nor fddshow on my pc.. At first I did but Windows 2000 (my OS) gave me a fatal error when starting TMPGenc... so when I re-installed AVISynth, i skipped the option.. @Dialhot Quote:
About the codec : see above (Stupid me ;)) About your post about ffvfw/ffdshow... I don't understand what you are saying... with ffvfw you can make your VOB's appear like 1 avi file IIRC ? or am I just plain stupid ? (oke ... don't answer that last question :D :D :D) I hate Micro$oft aswell (can't wait 'till this all will be possible under Linux so I can get rid of this dualboot thing :)) but why is loading an AVS file via Directshow "not" the thing to do ? ;) (and yes, I disabled it :)) @ All Like I said before.. I changed "ConvertToYUY2" to "ConvertToRGB24" and it works like a charm right now (movie is encoding 'as-we-speak') But, I still don't know if this is the "right" way to do it... I also tried to install the Xvid codec and comment out "ConvertToYUY2" but I still get the error from TMPGEnc "Cannot load or unsupported" :( ("ConvertToYUY2" does work after the Xvid install but with the same bad quality as in the beginning as shown in the sample) grtz, JJ btw. Are YUY2 and YV12 the same thing ? btw2. Many thanks for these great tips & advise that you're all giving me! |
Quote:
Quote:
Quote:
Quote:
ffdshow and ffvfw both handle YV12 but they are Directshow filters, not codec. As you can see above you need something on your PC that handle YV12 else you have an error in TMPGENC. That can be the Xvid codec but if it is not installed and if the "DirectShow source" support is checked in tmpgenc, the avs script is opened via the directshowfilter "ffdshow". Do you understand ? Quote:
Quote:
Quote:
Quote:
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.