digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: First attempt with MA Optimal Script - colors all wrong! (http://www.digitalfaq.com/archives/avisynth/5744-avisynth-first-attempt.html)

Icarus3000 09-22-2003 07:48 PM

First attempt with MA Optimal Script - colors all wrong!
 
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 :oops:

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

Icarus3000 09-23-2003 09:10 PM

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:

http://www.digitalfaq.com/archives/error.gif

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

http://www.digitalfaq.com/archives/error.gif

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

jorel 09-23-2003 09:17 PM

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..... :!:

kwag 09-23-2003 09:32 PM

@Icarus3000,

Get the latest version of MPEG2DEC3.dll.

-kwag

Icarus3000 09-24-2003 05:22 AM

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

Icarus3000 09-24-2003 05:25 PM

FAILURE :(
 
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

Icarus3000 09-24-2003 09:10 PM

Good news and bad news!
 
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:


http://www.digitalfaq.com/archives/error.gif

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

Thanks,
Icarus

kwag 09-24-2003 09:19 PM

Hi Icarus,

I'm using the latest version of mpeg2dec3.dll

-kwag

logan555 09-26-2003 01:29 AM

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()
.....

Holomatrix 09-26-2003 02:17 PM

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.

jorel 09-26-2003 05:06 PM

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!
:wink:

Markymoo 09-26-2003 08:23 PM

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

jorel 09-26-2003 10:57 PM

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!
:wink:

Markymoo 09-27-2003 11:10 AM

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.

jorel 09-27-2003 12:46 PM

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!"
:arrow: 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?!?!
:arrow: ...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!

:wink:
thanks.

Icarus3000 09-29-2003 10:30 PM

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

jorel 09-29-2003 11:00 PM

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

:wink:
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:
:arrow: 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!

Icarus3000 10-01-2003 03:39 PM

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 :cry:

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

Boulder 10-02-2003 01:44 AM

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.

Icarus3000 10-02-2003 08:29 AM

Boulder:

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


All times are GMT -5. The time now is 10:22 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.