digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Removing DCTs in the source (http://www.digitalfaq.com/archives/encode/4880-removing-dcts-source.html)

Wolfi 08-15-2003 06:41 PM

I'm looking forward to try your new divx script who seems great, at least what I've read :D Maybe you'll get some more question about aviS. 2.5x, I have'nt tried it out yet :? so be prepered :twisted:

//Wolfi

vmesquita 08-16-2003 01:02 PM

I combined girv and DialHot script with lanczos resize:

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)
lanczosresize(720,272).addborders(0,104,0,104)

And got great results! Very sharp but not oversharp. Most dancing blocks gone! Great! All be using this for all DivX sources now!

[]'s
Vmesquita

Dialhot 08-16-2003 01:12 PM

Hey, you just removed undot from my script and didn't even quote my name beside girv's. You are a cheater :mnkypile:

vmesquita 08-16-2003 01:28 PM

Oh, sorry DialHot!

Just edited and fixed! I am loving this thread! Thanks DialHot and girv for such amazing results! Much better than the stuff I was using before.

[]'s
Vmesquita

bigggt 08-16-2003 04:43 PM

Ok guys i just tried this script

Quote:

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



AviSource("C:\My Movie.avi")
Blockbustermethod="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)
Blockbustermethod="noise",detail_min=1,detail_max= 10,variance=0.5,seed=5823)
LanczosResize(496, 318, 6, 0, 532, 288).AddBorders(16, 81, 16, 81)
with the same cq(70) as a movie i encoded last week with the motionAdaptive script and my results seem to be a lot better wiht the motion script?

The picture is a lot sharper and i seem to get less of the dancing blocks(can someone point these out to me somewhere because i don't know if i'm looking for the right thing)with the otimal script.

Now in short everyone is getting better results with the scripts in this thread except me and i can't figure it out.

Dialhot 08-16-2003 04:55 PM

The script is better for removing defaults introduced by former avi compression : uggly blocks in flat uniform colored area that are generaly in the background (walls, dark areas, dancing lights...)

Depending the quality of your source, it's possible that you don't have any of these defaults present in the avi, so you don't see the benefit :-)

BTW, don't you have a sample smaller with this script than with the MA one ? That mean that the final CQ for the complete movie will be upper, and so the quality better.

Note: did you copy/paste your script or just type it by hand ? Because it's full of errors and can't run like this :!:

bigggt 08-16-2003 05:52 PM

@ Dialhot

Thanx for the reply

first off it is a very clean avi,also i figured it would be a different cq but i just loaded the avs into tmpge and hit start.

also about the script i did copy and paste but it kind of got screwed up but could you please point out all the errors :D .(it did run in tmpge no problem)

Thanx

Dialhot 08-16-2003 05:58 PM

Simple : in the two "blockbuster" lines, the opening parenthesis is missing (between "blockbuster" and "method")

PS: Ontario ? So the power is back again tonight ? ;-)

bigggt 08-16-2003 06:40 PM

Thanx Dialot,yea that was just an error on my part but the opening parenthesis are in my script.

We got our power back as of 3 pm Friday (we were powerless for just over 23 hours)it was horrible the temperatures were in the high 80's but i guess it could have been a lot worse.

Thanx again

vmesquita 08-18-2003 12:32 PM

I just would like to announce that I added the script I used to my DivX/DVD to KDVD/KSVCD using CCE/Tmpgenc Guide as the DivX suggested Script! Thanks Girv and DialHot!

[]'s
Vmesquita

Wolfi 08-19-2003 02:24 PM

I just need to make some questions clear for me :?

1. In this new script (this is such a noob question I'm to used with 2.0x), were should I write my resolution, I can only see this command :arrow: :!: m_width, 480, sould'nt it also be
Code:

m_height, 540,
or whatever res. you want to use, so if I want 540x480 how should I write :?: :oops:

Code:

AVISource(movie,false)

#Post-Process
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)

#Resize, overscan and borders

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

#Subtitles #
############
TextSub(subtitle) # Add a # in the begining of this line if you don't need subtitles.

converttoyuy2()

2. Should I use "Higher quality" or "Motion Estimate fast" or is "Motion Estimate" something you dont use with divx sources?

//Wolfi

Dialhot 08-19-2003 03:41 PM

WHERE DID YOU FIND THIS SCRIPT ???

The two firts parameters of gripcrop are the width and the height;
So you have to write Gripcrop(540,480,..........)

Note: seeing the script I'm quite sure that you have a line "m_width = 540" somewhere at the top of the script and you missed it !

Wolfi 08-19-2003 04:11 PM

Quote:

Originally Posted by vmesquita
I just would like to announce that I added the script I used to my DivX/DVD to KDVD/KSVCD using CCE/Tmpgenc Guide as the DivX suggested Script! Thanks Girv and DialHot!

[]'s
Vmesquita

Okej I found it in the DivX/DVD to KDVD/KSVCD guide. And now I can see what misstake I did. Sorry bothering you :!:

//Wolfi

Dialhot 08-19-2003 05:38 PM

Don't worry Wolfi, you're not boreing me. I was just surprised about this script I never seen before. That's all ;-)

vmesquita 08-19-2003 06:12 PM

@Dialhot
As I announced, I added this script to my guide as the DivX script. This is the complete version:
-----------------------------------------------------------------------------
################################################## ####################
# Based on Optimized Script to remove DCT Blocks by Girv and DialHot #
################################################## ####################
##############
# Parameters #
##############
#Use 720 or 352 to KDVD, 528 352 to K(S)VCD
m_width=720
subtitle="name_of_the_subtitle.smi" # Add a # in the beginning of this line if you
#don't need subtitles.movie="name of the movie.avi"
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.



##########
# script #
##########
AVISource(movie,false)

#Post-Process
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)

#Resize, overscan and borders

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

#Subtitles #
############
TextSub(subtitle) # Add a # in the begining of this line if you don't need subtitles.

converttoyuy2()
---------------------------------------------------------------------------

@Wolfi
There's no variable for height since it's always 480. Ok you could use 320x240, but that's not very likelly. Use High Quality, Motion Estimate is just for the MA script which I don't recommend with DivX sources.

incognito 08-19-2003 10:13 PM

I'm going to give it a try on an AVI tonight.

Wolfi 08-20-2003 09:08 AM

Okej that script is written for dvd2svcd right but if I want to use this script for avisynth v2.52 and tmpgenc should it look like this then. You'll have to tell me if I'm wrong :!:

Code:

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

AVISource("C:\movie.avi,false") 

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_anamorphic=false)
GripSize(resizer="lanczosresize")
GripBorders()

TextSub("C:\movie.srt")
converttoyuy2()

Confused 8O

This part makes me SO CONFUSED :(
Code:

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

If I want to use this new divx script in tmpgenc and not dvd2svcd should I then replace the "gripCrop" line with this line if I want the resolution 540x480 :arrow:
Code:

lanczosresize(540,480).addborders(my_values)
god help me out....

//Wolfi

Dialhot 08-20-2003 09:14 AM

Wolfi, the line
Code:

gripCrop(m_width, 480, overscan=myoverscan,source_anamorphic=false,dest_anamorphic=false)
is tied to an other line in the top of the script that you missed !
Code:

#Use 720 or 352 to KDVD, 528 352 to K(S)VCD
m_width=720

That is the line to modify if you want to use the script correctly.

In fact you can either write
Code:

m_width=540
gripCrop(m_width, 480, overscan=myoverscan,source_anamorphic=false,dest_anamorphic=false)

Or a shorter (and less confusing) way :
Code:

gripCrop(540, 480, overscan=myoverscan,source_anamorphic=false,dest_anamorphic=false)
And you can use this directly in tmpgenc.

Note: you missed also the line where "myoverscan" is defined. Look at the top the original script of vmesquita carrefully.

Wolfi 08-20-2003 09:56 AM

Then I will try again :P

Code:

LoadPlugin("C:\Filters\MPEG2Dec3.dll")
LoadPlugin("C:\Filters\atc.dll")
LoadPlugin("C:\Filters\ASharp.dll")
LoadPlugin("C:\Filters\Blockbuster.dll")
LoadPlugin("C:\Filters\VSFilter.dll")

AVISource("C:\movie.avi,false")

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(540, 480, overscan=2,source_anamorphic=false,dest_anamorphic=false)

GripSize(resizer="lanczosresize")
GripBorders()

TextSub("C:\movie.srt")
converttoyuy2()

Now I have four questions :roll:

1. Can you see errors in the script or is the whole structure wrong :?:

2. I need VSFilter to be able to add subtitles right :?:

4. Can you tell me if these .dll files are the only ones I need: MPEG2Dec3.dll, Blockbuster.dll, atc.dll, VSFilter.dll and ASharp.dll. Or do I need ASharp.dll :?:

3. What differences is it between "false" and "true" :?:

//Wolfi

Dialhot 08-20-2003 10:09 AM

Quote:

Originally Posted by Wolfi
1. Can you see errors in the script or is the whole structure wrong :?:

Yes I do :-)

It's not AVISource("C:\movie.avi,false") but AVISource("C:\movie.avi",false)

Quote:

2. I need VSFilter to be able to add subtitles right :?:
Yes.

Quote:

4. Can you tell me if these .dll files are the only ones I need: MPEG2Dec3.dll, Blockbuster.dll, atc.dll, VSFilter.dll and ASharp.dll. Or do I need ASharp.dll :?:
As you can see, "asharp" is never used in the script so you do not need to load the corresponding dll

Quote:

3. What differences is it between "false" and "true" :?:
The same than between "black" and "white", or "day" and "night" :-))
Can you be more precise in your question ?

[/i]

girv 08-20-2003 10:34 AM

Quote:

Originally Posted by vmesquita
I just would like to announce that I added the script I used to my DivX/DVD to KDVD/KSVCD using CCE/Tmpgenc Guide as the DivX suggested Script! Thanks Girv and DialHot!

wooo, fame at last :D

Wolfi 08-20-2003 11:18 AM

Oke now then :)
Code:

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

AVISource("C:\movie.avi",false)

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(540, 480, overscan=2,source_anamorphic=false,dest_anamorphic=false)

GripSize(resizer="lanczosresize")
GripBorders()

TextSub("C:\movie.srt")
converttoyuy2()

I've seen false in I think every script and also true. I dont actually know how to be more precise. Is these two commands like YES or NO or something. I dont know what I'm looking for here...these two words comes up every were, aspecially false :idea:

//Wolfi

girv 08-20-2003 11:26 AM

@wolfi: yes "true" and "false" mean much the same as "yes" and "no".

eg: a parameter might be called "enable high quality mode", then
"true" => yes, enable high quality mode
"false" => no, dont enable high quality mode

Hope thats clear?

Wolfi 08-20-2003 11:42 AM

Juppz all clear :) Thank for helping me getting started with aviS. v2.52 :lol: I love to see this script in action :twisted:

//Wolfi

incognito 08-20-2003 12:37 PM

Quote:

Originally Posted by vmesquita
As I announced, I added this script to my guide as the DivX script.

Where's the complete guide? I'd like to check it out. You never know what you can learn. :D

Wolfi 08-20-2003 12:49 PM

http://www.kvcd.net/forum/viewtopic.php?t=5142&start=0 I think :idea:

//Wolfi

incognito 08-23-2003 04:24 AM

OK the guide says to use avisynth 2.5 which I have. I thought Blockbuster was removed from 2.5? So i saw the sticky about how to load 2.0 plugins in 2.5 and i get
Code:

Blockbuster: clip must be in YUY2 format
Am I missing something?

vmesquita 08-23-2003 05:15 AM

incognito,

Blockbuster is an external avisynth filter. There is a 2.5 version. Please download the filters pack in the thread of guide.
This error is happening because 2.0x plugins only accepct YUY2 input, not YU12() which is Avisynth 2.5 native colorspace. This would also work:
converttoyuy2().blockbuster(...)
But it is better to use the 2.5x blockbuster.

[]'s
Vmesquita

incognito 08-23-2003 11:01 AM

Thanks.

Payasa 08-24-2003 07:44 AM

Quote:

Undot()
Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823)
ATC(2,3,5,0.5,false)
TemporalSoften(2,7,7,3,2)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5823)
GripCrop(352, 288+0+0, overscan=1, source_anamorphic=false, dest_anamorphic=false)
GripSize(resizer="LanczosResize")
DCTFilter(1,1,1,1,1,1,0.5,0)
GripBorders()
since i`m using svcd resolution should i edit the svcd resolution like this?
one for pal and one for ntsc?

Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823)
ATC(2,3,5,0.5,false)
TemporalSoften(2,7,7,3,2)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5823)
GripCrop(480, 480/576+0+0, overscan=1, source_anamorphic=false, dest_anamorphic=false)
GripSize(resizer="LanczosResize")
DCTFilter(1,1,1,1,1,1,0.5,0)
GripBorders()

vmesquita 08-24-2003 10:26 AM

@Payasa

Yes!

[]'s
Vmesquita

Wolfi 08-24-2003 02:38 PM

In this new script, what do you think of adding DCTFilter or STMfilter :?:

Code:

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)

//Wolfi

Dialhot 08-24-2003 03:38 PM

Quote:

Originally Posted by Wolfi
In this new script, what do you think of adding DCTFilter or STMfilter :?:

STMedianFilter is useless as ATC does the same job.
But I use to add DCT in the end of the script, but I confess I do this more because I do it for all my scripts than because it's really usefull ;-)

Wolfi 08-25-2003 11:25 AM

hehe :lol: Can you tell me how your DCTfilter line looks please :) And a few questions about DVTfilter :arrow:

1.Will DCTfilter make the final output size smaler?

2. How will it effect the quality?

//Wolfi

Dialhot 08-25-2003 11:37 AM

Quote:

Originally Posted by Wolfi
1.Will DCTfilter make the final output size smaler?

Yes, that is why I always use it.

Quote:

2. How will it effect the quality?
It has no effect on the quality, that is why I always use it. :-D

DCTFilter(1,1,1,1,1,1,0.5,0)

incognito 08-25-2003 01:08 PM

This script with CQMatic rocks. Thanks.

Bombai 08-29-2003 01:18 AM

How would be the final script for divx sources? thanks guys...

EDIT: It's possible that would be this that i have post after?

Bombai 08-29-2003 01:25 AM

Quote:

Originally Posted by Wolfi
Oke now then :)
Code:

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

AVISource("C:\movie.avi",false)

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(540, 480, overscan=2,source_anamorphic=false,dest_anamorphic=false)

GripSize(resizer="lanczosresize")
GripBorders()

TextSub("C:\movie.srt")
converttoyuy2()

I've seen false in I think every script and also true. I dont actually know how to be more precise. Is these two commands like YES or NO or something. I dont know what I'm looking for here...these two words comes up every were, aspecially false :idea:

//Wolfi

I'm confused, in the dll section if I use gripcrop, is not necessary to load GripFit_YV12.dll?

thanks a lot...

Dialhot 08-29-2003 03:25 AM

Quote:

Originally Posted by Bombai
I'm confused, in the dll section if I use gripcrop, is not necessary to load GripFit_YV12.dll?

Yes it is necessary. But the best way is to put ALL plugins into the "plugins" directory of avs2.52 and you won't need any loadplugin line at all !

Bombai 08-29-2003 03:48 AM

ok, thanks dialhot...

Only another question, is not necessary undot() and Limiter, in this script that i have posted?

thanks again...


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