Quantcast Avisynth: First Attempt with MA Optimal Script - Colors All Wrong! - digitalFAQ.com Forums [Archives]
  #1  
09-22-2003, 07:48 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Help!

I have been happily chugging along with the "old" avisynth 2.08 optimal script for months now, but I finally decided to jump into the 21st century and try the MA script with Avisynth 2.52.

I am obviously doing something wrong, because the results are unwatchable!

I don't know how to describe it exactly, but the picture looks as though it was sent through a "watercolor filter" in Photoshop or something. Sort of like when you try to view a detailed picture on your computer, when you set the color quality to 16-colors.

The source here is a very clean DVD. The script I used is an exact copy of the latest motion adaptive optimal script, Ver. July 8, 2003 @15:45 GMT.

Does anyone know what I am talking about

Does anyone know how to correct the problem?

If you are just confused by this email, please send me a PM with instructions on how to insert pictures in posts, and I will gladly show you what I am talking about.

Many thanks in advance!
Icarus
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-23-2003, 09:10 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
I hope a picture is worth a thousand words, because after close to 50 views, I haven't received a single reply!

If I wasn't clear enough in my description, here is what I am talking about:

This is a frame from the Groundhog Day DVD:



And this is what the frame looks like after the Motion Adaptive Optimal Script:



What am I doing wrong, and how do I fix it?

With all the KVCD experts on this board, I know someone must be able to help me!

Thanks again,
Icarus
Reply With Quote
  #3  
09-23-2003, 09:17 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
seems very low CQ used in tmpgenc!

please,post more informations about:
is from dvd or avi,
final time of the movie,
CQ used to encode and how do you got the value,
audio bitrate,
resolution choosed.....
Reply With Quote
  #4  
09-23-2003, 09:32 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
@Icarus3000,

Get the latest version of MPEG2DEC3.dll.

-kwag
Reply With Quote
  #5  
09-24-2003, 05:22 AM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag:

Source: DVD
Movie Length: 101 minutes
Final CQ: 58.1 (from CQMatic)
Audio: 128
Final Resolution: 544x480

I will download the latest version of mpeg2dec3.dll and try again!

Thanks,
Icarus
Reply With Quote
  #6  
09-24-2003, 05:25 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag:

I downloaded the newest version of mpeg2dec3.dll with identical results as before.

It must be one of the filters in the optimal script - I can't believe noone else is having this problem!

Is there any specific filter you would recommend tweaking/removing??

Thanks,
Icarus
Reply With Quote
  #7  
09-24-2003, 09:10 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Kwag:

By method of elimination I discovered the source of all my problems, but I don't know how to fix it!

Even with no other filters, the same effect occurs when I use mpeg2dec3_25_dll_20030728.

I can open the .d2v file just fine on its own, and I can also open the file fine using mpeg2dec.dll (instad of mpeg2dec3.dll).

The problem now is that when I use mpeg2dec.dll with the MA script, I get an error message telling me that only planar images as YV12 are supported, and half my video is all weird:




Any ideas? Can you tell me which version of mpeg2dec3.dll you are using?

Thanks,
Icarus
Reply With Quote
  #8  
09-24-2003, 09:19 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Icarus,

I'm using the latest version of mpeg2dec3.dll

-kwag
Reply With Quote
  #9  
09-26-2003, 01:29 AM
logan555 logan555 is offline
Free Member
 
Join Date: Nov 2002
Location: Italy
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to logan555
Had the same problem on my new XP machine except that my picture was all weird.
To solve I added at avisource the RGB32 option and the conversion to yv12.

.....
AVISource("cap.avi",false,"RGB32")
converttoyv12()
.....
__________________
Resistence is futile.
Reply With Quote
  #10  
09-26-2003, 02:17 PM
Holomatrix Holomatrix is offline
Free Member
 
Join Date: Aug 2002
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Try adding ConvertToYUY2() to the end of your script. Sound like some other plugin you have is trying to do the conversion and messing things up. Add that line so that AVISYNTH does the conversion.
Reply With Quote
  #11  
09-26-2003, 05:06 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Holomatrix,

using ConvertToYUY2() to the end of your script,
solve your problems with " messing strange blocks" like in the
second image posted

thanks in advance!
Reply With Quote
  #12  
09-26-2003, 08:23 PM
Markymoo Markymoo is offline
Free Member
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Yes using ConvertToYUY2() will solve the problem after the filters at end.

If using dvd2avi(dvd2svcd) then it automatically inserts ConvertToYUY2()
at beginning of script so you need to select "edit script before encoding" in dvd2avi before it encodes.

Big Tea Sipper
Reply With Quote
  #13  
09-26-2003, 10:57 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
maybe is my mistake Markymoo

or your source is .avi(i don't use),or CCE as encoder in d2s!
then d2s automatically inserts ConvertToYUY2() cos CCE need it!

when you are using Tmpgenc as encoder in d2s,
it automatically inserts ConvertToRGB32() in the scrpt "FrameSel.avs"
if you choose "use frame selection" or in "preview video (still picture)"
only to show the image in the frame selection window or in the preview .

choosing "edit when dvd2 avi is done"or"edit as part of video encoding",
you can edit and save the script before d2s call the encoder but
don't automatically inserts ConvertToYUY2() or ConvertToRGB32()
in the script if Tmpgenc was choosed as encoder.

i'm still thinking that the problem posted by Icarus3000 is:
low CQ, high resolution and the time lenght for this dvd source
and isn't problems with mpeg2dec3.dll or "messing plugins" and .avi sources.
some dvd sources can give good results with this CQ abd resolution,
others don't cos they have differents parameters and actions
and need more bitrate in more scenes,then show some blocks.
my recomendations for Icarus3000 in another thread:
change the resolution from 544x480 to 480x480,
than you got more CQ and less blocks (or no blocks)!
the image will be better in the whole movie!

see that logan555 post a solution when the source is .avi !
Holomatrix post another solution when the plugins are "messing things up".
i don't have this 2 types of problems.

what i really want to know is:
if my source are vobs,
doing dvd2avi project and choosing
Tmpgenc as encoder with scrip.avs,
if i use ConvertToYUY2() in the end of the script will
remove this type of problems like in the picture posted
this is my doubt!

thanks again!
Reply With Quote
  #14  
09-27-2003, 11:10 AM
Markymoo Markymoo is offline
Free Member
 
Join Date: Aug 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Yes dealing mainly with Avi at moment but results are very similar. I haven't used dvd2avi for awhile as i'm experiementing with CCE and Mainconcept. I like to keep an open mind and use what gives me superior results.

I'm pretty sure Icarus3000 is using dvd2avi because he gets the planar difference error in line 1 as ConvertToYUY() is being inserted before everything and its done by dvd2avi internally in the code and you cant turn that off so have use edit and cut and paste ConvertToYUY() at bottom as its better at end than straight after the source file doing all this screws up batch mode.

I agree has nothing to do with mpeg2dec3.dll. I have found some sources need ConvertToYV12() and wont accept ConvertToYUY()

If you get the above video problems it should solve it no matter vob or avi because its the same related error staring you in the face.
Reply With Quote
  #15  
09-27-2003, 12:46 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
ok!
you wrote:
"Yes dealing mainly with Avi at moment but results are very similar."
no, the results are not similar, have big differences using vobs!

and:
" I like to keep an open mind and use what gives me superior results."

open mind and superior results...great...!

read this(copied from another post):
"posted and waiting for the master:
http://www.dvd2svcd.org
click on "Submit a bugreport here" and search the
ID 106,Assigned,Feature Request.
of course,will be a fantastic solution!"
still there and waiting for the developer!

then take a read on this little guide and try to get
fantastics results using d2s.
http://www.kvcd.net/forum/viewtopic.php?t=3576

ps:
i don't use d2s no more but it's great of course!

.....and:
"If you get the above video problems it should solve it no matter vob or avi because its the same related error staring you in the face."
no....i don't have this type of problems and don' t post it.
i only want to know if using "convert.bla,bla" can solve the problem
like in the picture posted!
this is the idea when icarus3000 post the problem calling for help
and got this recomendations!
in the first post of icarus3000 is wrote:
"Does anyone know how to correct the problem?"

it should solve?!?!
...i'm still waiting the answer here...and icarus3000 too!
we need one "yes" or "no"....not "maybe"!

the answer is for help someone when needed!


thanks.
Reply With Quote
  #16  
09-29-2003, 10:30 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Good news!

ConvertToYUY2() at the end of my script solved the problem!

Jorel: It had nothing to do with the CQ or the resolution, because as I mentioned before, even with a CQ of 100 and different resolutions, the problem occured!

Thanks for all your help!


Icarus
Reply With Quote
  #17  
09-29-2003, 11:00 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Icarus3000
Good news!

ConvertToYUY2() at the end of my script solved the problem!

Jorel: It had nothing to do with the CQ or the resolution, because as I mentioned before, even with a CQ of 100 and different resolutions, the problem occured!

Thanks for all your help!


Icarus

very cool Icarus3000!
please, (and sorry for bore)
what resolution are you using in the MA script (still 544x480 ?)and
what CQ you get now
is 16:9 or 4:3
23,976
Min and Max bitrate
and the great doubt:
using mpeg2dec.dll and ConvertToYUY2() at the end of the script
cos you wrote:
"I can open the .d2v file just fine on its own, and I can also open the file fine using mpeg2dec.dll (instad of mpeg2dec3.dll)."
or is the mpegdecoder YV12 from nic? (MPEG2DEC.DLL substitute [YUY2] )

all informations will be great!
thanks in advance!


ps:
i have lots of questions cos in the readme of
MPEG2Dec3 : MPEG-2 Decoder for Avisynth 2.5+ (v1.10) 20030728
is wrote:
"Warning - YV12 inside !!
This filter is designed for Avisynth 2.5 and above
it's able to output in RGB24,YUY2 and YV12 colorspaces"

then it is really confuse for me cos the readme show that this version will work!
Reply With Quote
  #18  
10-01-2003, 03:39 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
I didn't like the results i was getting with the "ConvertToYUY2()" work-around, so I went back to using the Avisynth 2.08 script

I don't understand why so few people are having this problem. The combinations and permutations of:

- DVD2AVI version
- Colorspace used
- MPEG2DEC version used
- Whether to add "ConvertToYUY2()"

are all too much for me, and yet none of these issues are clearly spelled out in any guides I have seen! I suspect that the "workaround" is not ideal for the optimal script, as all the functions are being performed in one colorspace, and then converted to yuy2 at the end - I don't know much about avisynth, but I would guess that this is not the ideal way to do things.

Question: How to I tell what colorspace my DVD is in? my .d2v file is in?

Thanks!
Icarus
Reply With Quote
  #19  
10-02-2003, 01:44 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
DVDs are always in YV12.

If you use the latest DVD2AVI and MPEG2DEC3.dll from Donald Graft's site, http://neuron2.net , you should have no problems at all. Conversion to YUY2 should not be needed at any point unless you use a filter that requires YUY2 input.

If you have problems, try installing Koepi's latest development XviD binary, you'll find it at http://koepi.roeder.goe.net . It acts as a YV12 decoder which might help you in this case.

If you have installed any codecpacks, get rid of them instantly. They are bound to give you lots of problems.
Reply With Quote
  #20  
10-02-2003, 08:29 AM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Boulder:

Good point about the codecs. I will try to remove all codecs from my computer and see if that helps.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KVCD: First Attempt with Script, What do you think? KunGFu-L33t Video Encoding and Conversion 3 11-16-2003 07:06 AM
Avisynth: My attempt on a new script ak47 Avisynth Scripting 4 10-07-2003 01:23 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: Whats wrong with my script? ftin Avisynth Scripting 4 06-05-2003 09:16 AM
Avisynth: Anything wrong in my script? Razorblade2000 Avisynth Scripting 4 05-16-2003 09:26 AM

Thread Tools



 
All times are GMT -5. The time now is 07:11 PM  —  vBulletin Jelsoft Enterprises Ltd