digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: How to filter away these things? (http://www.digitalfaq.com/archives/avisynth/5097-avisynth-how-filter.html)

Razorblade2000 08-19-2003 04:12 PM

Avisynth: How to filter away these things?
 
I guess u c what i mean... :D

Script:
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")

AviSource("some.avii")
ConverttoYV12()
BlindPP()
GripCrop(480, 480, source_anamorphic=false)
GripSize(resizer="BicubicResize")
GripBorders()

pic 2+3 were taken via vdub
pic 1 was taken via the print key in fullscreeen mode

Pic1: ceyling (is it spelled that way... i mean the opposide of floor)
Pic2: the sky
Pic3: the seat

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

Dialhot 08-19-2003 05:41 PM

The only way is to take the original DVD and make the KVCD from there.
Sorry but this Divx was made with the feet.

Razorblade2000 08-19-2003 05:48 PM

The DivX is FINE!!!!
Its just the script... somehow won't give me proper results (ehwn viewing it)... although it doesn't do much...


I am currently trying sth else:
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\undot.dll")
LoadPlugin("C:\Filters25\vaguedenoiser.dll")
AviSource("F:\some.avi",false)
undot()
VagueDenoiser(threshold=0.8)
mergeluma(unfilter(30,30))
BicubicResize(352, 256, 0, 0.6, 8, 0, 624, 256)
AddBorders(0, 112, 0, 112)




BTW:
Vaguedenoiser got quite fast!

vhelp 08-19-2003 05:52 PM

hi razorblade2000,

This is one of those buggy codec issues w/ AVS and color space.

Scenario 1
Another cause could be... your codec and AVS color space.. and/or a combo
of how AVS is utilizing your codec and the filters color space, or some
filter converter you used ie, ConvertToYV12 etc.. Sometimes, it's just a
simple filter removal or upgrade change that fixes everything. Anyways..

Scenario 2.. virtualdub..
FWIW, on my 2nd pc, if I feed in any kind of .avi source (any kind) and
I press the first button, [>>1] and viewed the source, it would
show similar to yours, "solar flare'like" (or 16k color output)
But, if I press the second button after it, [>>0] it would show the
true colors. Some kind of setup issue going on their. I've never ben able
to figure out:
* What causes it, and
* How to fix it.
.
.
On my main pc, I can press either button, and the color quality is the same
througout.. 24bit colors.


Now, this color issue could be caused by Scenario 1 only, or it could be
from Scenario 2, OR a combination of the two.


If you decuce that Scenario 1 is your main problem, then you'll have to
figure out what is causing this to happen. It could just be that vdub is
not setup properly or just doesn't like your source, but that you can continue
w/ your AVS script inside TMPG :)

If you deduce that Scenario 2 is your issue, then that's a simple fix..
just DON'T press the first button. Encoding will be fine (cross your fingers)


Note, be warey about Satellite captures.. as they suffer this slight color
annoyance to some degree too (for other reasons like low bitrate, for instance)

I hope the above made some sense of it all.

Good luck,
-vhelp

kwag 08-19-2003 05:54 PM

It's a color space issue (CODEC) from DivX -> MPEG conversion.
I wouldn't even bother with that DivX :!:

-kwag

vhelp 08-19-2003 06:06 PM

Hi again Razor..

Boy, do I feel a bit domb :screwy: cause I did not read your script source
correctly (was deduced by others as a divX) I should have realized this
from getgo.

Although my other response may serve some use in your case, chance
are, that it may not just as well. As others indicated, it could just be the
divX source. I know, I know.. but it plays well, and you don't notice any
thing.. untill you get ready to encode it 8O

If you are really stumped by this issue, and you can't resolve it, then might
I suggest you do an experiment of your own, and do a DVD rip (hopefully
of the same Movie) and if at all possible, use the same method that was
used by that divX source - - like you'll problably not find the method. But,
give it a try, so that you can see for sure (w/out a doubt) that it was either
the source, or the system/codec issue described above :!:

Good luck again, my friend,
-vhelp

Dialhot 08-19-2003 06:14 PM

Quote:

Originally Posted by Razorblade2000
The DivX is FINE!!!!
Its just the script... somehow won't give me proper results (ehwn viewing it)... although it doesn't do much...

Oh ! I thougth you took the pictures directly from the avi, not from the filtered result. Sorry.

Go see the thread I suggested to you in an other post, I think it will be good.

Razorblade2000 08-19-2003 06:14 PM

somehow seems to work fine with the new script...


BTW.
Which codec does avisynth take? vfw or dshow? (-->divx or ffdshow... my divX CODEC is quite old I guess as I dont use/update it often)

Dialhot 08-19-2003 06:16 PM

Avisynth always take codec with "avisource" command, and directshowfilter with "directshowsource" command.

Razorblade2000 08-20-2003 05:22 AM

Hmmm... funny... converttorgb24() at the end seems to make everything ok :?:

using this script atm:

LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\atc.dll")
LoadPlugin("C:\Filters25\Blockbuster.dll")


m_width=480
myoverscan=2

AVISource("some.avi",false)
Converttoyv12()

Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823)
ATC(1,2,4,0.5,false)
TemporalSoften(2,7,7,3,2)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5823)

gripCrop(m_width, 480, overscan=myoverscan,source_anamorphic=false,dest_a namorphic=false)
GripSize(resizer="lanczosresize")
GripBorders()
converttorgb24()



EDIT:
works fine without converttorgb24() now too?!? I don't really understand...

Dialhot 08-20-2003 05:28 AM

Edited : (no more relevant)

Razorblade2000 08-20-2003 05:52 AM

Only a converttoyuy2() seems to give me these strage colors

Dialhot 08-20-2003 06:00 AM

You shouldn't do any convert at all :

1/ all the gain of avs2.5 upon avs2.08 is based on the work in YV12 colorspace : it's better, it's faster.
Every script should start with a convertToYV12 like yours. But ...

2/ last divx and xvid codecs give output directly in YV12, so you should install these last version and remove the "convertoYV12" of your script !

Note: to see if you have a yv12 compatible codec on your HD just do this :

Code:

Avisource("somefile.avi")
Subtitle(String(IsYV12()))

Open this in wmp, if you have "True" in the left top corner of the picture, that means that you are already in YV12 colorspace after the avisource. If not, that means that you need a "convertToYv12" or to change your codec (as told in point 1 and 2 above).

kwag 08-20-2003 10:12 AM

Everyone seeing all the constant DivX problems :?:
I'm really getting tired (and bored) of DivX(XviD) topics (and problems) :roll:
Maybe KVCD.Net should just "drop" DivX topics completely, and concentrate on "Advanced Video conversion" as our title on the top of the forum says :roll: :!:
Which means conversions from high quality MPEG-1/2, MJPEG/HuffYUV captures, etc. NOT third generation loosy (MPEG-4) conversions :!:
Sorry, but I just had to let the steam out, as I'm seeing too many "DivX" related posts lately :?

-kwag

jorel 08-20-2003 10:50 AM

Quote:

Originally Posted by kwag
Everyone seeing all the constant DivX problems :?:
I'm really getting tired (and bored) of DivX(XviD) topics (and problems) :roll:
Maybe KVCD.Net should just "drop" DivX topics completely, and concentrate on "Advanced Video conversion" as our title on the top of the forum says :roll: :!:
Which means conversions from high quality MPEG-1/2, MJPEG/HuffYUV captures, etc. NOT third generation loosy (MPEG-4) conversions :!:
Sorry, but I just had to let the steam out, as I'm seeing too many "DivX" related posts lately :?

-kwag

@ all friends:

excuse me to write this but... :oops:
i don't like divx,and don't have!

one of the reasons?
or the color of the skin it too green or like a lobster(red wine?)
(see the avatar colors of Phil and Wolfi...seems from divx)

another?
hard to re encode!

more?
need more?
ok,don't play in my (and tons) dvd players!

:wink:

Dialhot 08-20-2003 05:31 PM

Quote:

Originally Posted by jorel
one of the reasons?
or the color of the skin it too green or like a lobster(red wine?)
(see the avatar colors of Phil and Wolfi...seems from divx)

It's a normal and known problem of NTSC (Never Twice the Same Color). It's not to a electronic pro that I will learn that :-)

And my avatar is yellow, all yellow. It is not green or red, it's yellow. And it's a special, wanted, effect. Not a problem of divx :-)

For the other thing, I agree with Kwag. I'm also pissed of seeing a thread starting by "Hello, I'm a newbie, I just download a divx and I want to make a KVCD from there".

Do newbies never see (and understand, if it's not too much for them) disclamers ?

For my part I won't give anymore help for Divx.

vhelp 08-20-2003 07:25 PM

Hi guys..

@ Dialhot..

Jorel wrote:
Quote:

one of the reasons?
or the color of the skin it too green or like a lobster(red wine?)
(see the avatar colors of Phil and Wolfi...seems from divx)
I have to admit, I'm w/ Jorel on this too. I thought it WAS << GREEN >> 8O
But, thanks to you, and now that I've had a closer L 8O 8O K I can clearly
see that it's << YELLOW >> !!

Take it easy all,
-vhelp

Dano 08-20-2003 08:13 PM

You must have RGB24 input to TMPGenc. I used to get similar color problems with mpeg-2 TV caps and now add ConvertToRGB24() to the ends of my scripts and get correct colors. The problem arises when the convertto command is not present because then the Windows compressor is called upon and it does a poor job at it (what a surprise huh?). An added bonus is you get a decent speed increase as well. Have yet to try this and see if it makes any difference on DVD backups.

jorel 08-20-2003 09:31 PM

@ Phil and vhelp.
:wink:
the avatars was used as example,let me try to explain better...
Phil avatar:
to turn the color of the skin yellow,
was needed more green to got the yellow result.
Wolfi avatar:
to turn the color like "lobster",
was needed more "red wine"(more magenta/dark red),
to got this result.

again was my poor english...
better if i was wrote:
"or the color of the skin have too green or ..."
and i wrote.."seems from divx",
and not "came from divx" .

was better or worse my "explanations"?!?!?

resuming:
divx ever change the general matizes....
in the skin have more green or more "red wine"(lobster color)!

better now my friends?
:wink:
sorry my poor english,please.
:oops:

kwag 08-20-2003 09:37 PM

To me, DivXs look like they have an unnatural transparency :!:
I don't know exactly what it is, but it doesn't look natural.
It does a wonderful job on very low bitrates, but it sucks on high speed motion. Even MPEG-1 scales better than MPEG-4 on high bitrates :roll:

-kwag


All times are GMT -5. The time now is 11:16 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.