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]


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

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