Quantcast Avisynth: CQ Matic Static Script? - Page 2 - digitalFAQ.com Forums [Archives]
  #21  
10-25-2003, 11:28 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
Quote:
Originally Posted by audioslave
What do you mean with "Your borders aren't block aligned : you aren't in the best configuration and your CQ suffer from this." How do I correct this?
He means this: AddBorders(16, 137, 16, 137)
The borders are not divisible by 16. Where did you get the 137 from

-kwag
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
  #22  
10-25-2003, 11:33 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
I loaded the d2v file into TMPGEnc and then went to clip frame. I cut the borders out and then entered the numbers in MovieStacker.
Kwag, what codec do I need to be able to run the script without having to use ConvertToX()?

EDIT: Downloading FFdshow right now. Hopefully this codec will solve the issue.
EDIT 2: Nope, didn't work...
__________________
AudioSlave
Reply With Quote
  #23  
10-26-2003, 12:22 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Can this thing be related to that I demuxed the VOB's in DVD2AVI as RGB? Shall I demux as YUV instead?
__________________
AudioSlave
Reply With Quote
  #24  
10-26-2003, 04:10 AM
bman bman is offline
Free Member
 
Join Date: Apr 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
@ AudioSlave
To gain 2-3 CQ points try : min - 100 & and max - 2500 ( as DialHot suggested )
U'll get CQ close to 60 or even more !!!
bman
Reply With Quote
  #25  
10-26-2003, 06:24 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Okay, let see point after point.

1/ it is not possible you have error without the converts :
- blindPP need to be in YV12 so you are in such colorspace when you reach this line
- Convolutin3d has a YV12version called "Convolution3DYV12.dll". Do you have it ?
- Undot also work in YV12 colorspace

==> no need to convertToYUY2 then back to YV12

2/ FFDshow is a DIRECTSHOWFILTER and whatever you set in it, it will never affect your encoding has avisynth use CODECS only !
(except if you use "directshowsource" in the script, or if you uncheck the ReadAVS.dll in tmpgenc and you work in DirectShow mode in it. But that i sHIGHLY recommended to not do that.

3/ for finding your borders, use moviestacker ! This tool is for that ! And more, with avs2.52, Moviestacker has only ONE purpose : to determinate the borders

4/ yes, you have to demux as YUV. At least, that what I always do but I don't really know what is the impact there.
Reply With Quote
  #26  
10-26-2003, 02:34 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
I've just downloaded the correct version of Convolution3D (YV12) and it works like a charm No more color space errors. Thank you for your help. I'm also test encoding the script with MergeChroma and MergeLuma to see how much I gain in compression and to find out how the quality is effected.
I also re-demuxed the movie to YUV colorspace (instead of RGB), and got correct resizing values from MovieStacker (as far as I know).
So, this is how my (Dialhot's) script currently look:
Quote:
## Static script ##

MPEG2Source("D:/Rippat/Reloaded/The Matrix Reloaded (YUV).d2v")

BlindPP(cpu=4)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
LanczosResize(448, 414, 9, 0, 702, 576)
Undot()
TemporalSoften(2, 7, 7, 3, 2)
MergeChroma(blur(1.50))
MergeLuma(blur(0.1))
AddBorders(16, 81, 16, 81)
DCTFilter(1, 1, 1, 1, 1, 1, 0.5, 0)
I will post my results as soon as the testing is finished.
__________________
AudioSlave
Reply With Quote
  #27  
10-26-2003, 04:48 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
No, your borders are still not block aligned ! They must be divisible by 16 !
There is a slider in moviestacker to adjust how the margin are fixed : it seems that you choosed "centered" and that is not what you have to do. Choose "block aligned".

PS: I did a test with the blurs and the CQ_VBR raised from 19.27 to 19.37. No a great gain.
Reply With Quote
  #28  
10-26-2003, 05:05 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
@Dialhot

Thank you for informing me. I'm not very used to MovieStacker, but thanks to you I think I figured it out.
Now the script looks like this:
Quote:
MPEG2Source("D:/Rippat/Reloaded/The Matrix Reloaded (YUV).d2v")

BlindPP(cpu=4)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
LanczosResize(448, 416, 11, 0, 698, 576)
Undot()
TemporalSoften(2, 7, 7, 3, 2)
MergeChroma(blur(1.50))
MergeLuma(blur(0.1))
DCTFilter(1, 1, 1, 1, 1, 1, 0.5, 0)
AddBorders(16, 80, 16, 80)
Is this correct?

EDIT: Oh, I forgot. I also removed the MergeChroma/Luma lines.
__________________
AudioSlave
Reply With Quote
  #29  
10-26-2003, 05:20 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
It seems perfect
Reply With Quote
  #30  
10-26-2003, 05:55 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Phew. At last...
I used the script I posted in my lastest reply, and this is what I found out:
(I ran prediction with CQMatic)

* Without MergeChroma, MergeLuma I got CQ 57,43.
* With MergeChroma, MergeLuma I got CQ 58,72.

That's not bad for a 132 minutes PAL movie in SVCD resolution (480x576).
Is it worth using MergeChrom/Luma to gain ~1.3 in CQ My guess would be that it's better to use BicubicResizer than MergeChroma/Luma to gain a few CQ points, but I would like to know what you guys think.

Thank you VERY much for all your help so far, Dialhot and kwag

Edit: I used 64 for MIN bitrate and 2500 for MAX bitrate.
__________________
AudioSlave
Reply With Quote
  #31  
10-26-2003, 06:53 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
I think a raise in CQ than more than .5 point woths the work.

Using bicubic will affect the visual result more than using the mergechroma/luma blur. It's better to keep your script as it is now.
Reply With Quote
  #32  
10-26-2003, 07:03 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Okay, then I guess the testing phase is over. Time for the real encode.
Thank you once again.
__________________
AudioSlave
Reply With Quote
  #33  
10-26-2003, 07:03 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by audioslave
AddBorders(16, 81, 16, 81)
Well gentlemen borders with a height of 81 isn't that bad as it seems theoretically

CAUSE! There seems to be a bug im TmpgENc refering to macroblock orientated border encoding.
So as its shown above the perfect borders at top and bottom each should be a result devidable by 16 +1

In this thread I quoted a site where its very well explained and proofed
http://www.kvcd.net/forum/viewtopic.php?t=6070

But I think woun't give you that amount of CQ advantage.
Reply With Quote
  #34  
10-26-2003, 08:21 PM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Here we go again... My previous prediction was made with the intention of using 128kbps audio. I made a new prediction for 112kbps audio. And what do you know, the CQ jumped up to 62,55 and the quality of the movie is quite amazing if you consider it's 132 minutes long
__________________
AudioSlave
Reply With Quote
  #35  
10-27-2003, 04:23 AM
Edlund Edlund is offline
Free Member
 
Join Date: Jul 2003
Location: Pazardjik, Bulgaria
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by audioslave
Yes, that would be fantastic. But my burner doesn't support 90-99min CD-R's
Have you tried this: in Nero->Preferences->General->uncheck "Start with new compilation" + "Check for correct disc format before burning" + "Check joilet filenames before burning" AND in Nero->Preferences->Expert features enable overburn 99 minutes?

When I first did this I recorded succesfully a 90 min cd which then played flawless on my dvd-player. The strange thing is that when I tried this second time Nero didn't accept the 90 min cd.
Anyway a 90 min cd costs here as much as two 80 min cds so this is not a big problem
Reply With Quote
  #36  
10-27-2003, 09:35 AM
audioslave audioslave is offline
Free Member
 
Join Date: Mar 2003
Location: Sweden
Posts: 725
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Edlund! No, I haven't tried your suggestion yet. But you can be sure I will. If this works I will be SO happy! Thanks for the tip.
__________________
AudioSlave
Reply With Quote
  #37  
02-02-2004, 10:14 AM
cweb cweb is offline
Free Member
 
Join Date: Jan 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
2/ try temporalcleaner insteed of temporalsoften. I find it faster and smarter. (use TemporalCleaner(round(5+nf), round(11+nf))
I know this is old -- but was this correct? It doesn't seem to be, for me at least... I tried to use temporalcleaner in the MA script but it slowed down the encode by 2000%!

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalCleaner( round(5+nf), round(11+nf)) ")

Edit: oops - the big delay was due to my replacing of STMedianFilter with MipSmooth... That was way slow..
I replaced it back, and I'm using temporalcleaner now... it's fast again...
Reply With Quote
  #38  
02-02-2004, 10:33 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
note : I never tried to use temporalcleaner on the last version of MA script.

Before we had "unfilter ? temporalsoften", and now "Unfilter.temporalsoften". The results with temporalcleaner can be different.
Reply With Quote
  #39  
02-02-2004, 04:19 PM
cweb cweb is offline
Free Member
 
Join Date: Jan 2003
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
note : I never tried to use temporalcleaner on the last version of MA script.

Before we had "unfilter ? temporalsoften", and now "Unfilter.temporalsoften". The results with temporalcleaner can be different.
The CQ result didn't look bad..
I haven't made a comparison with both methods however...
Reply With Quote
  #40  
02-02-2004, 07:34 PM
bigggt bigggt is offline
Free Member
 
Join Date: Mar 2003
Location: IamCanadian
Posts: 848
Thanks: 0
Thanked 0 Times in 0 Posts
@ Dialhot

could you please post your script here that you use for dvd rips.there was too many different versions in this thread so i'm not sure which one you use now.

Thanx
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: White static? Jimblob Avisynth Scripting 4 04-26-2004 08:04 AM
DVD2Avi - script avisynth et CQ matic. Encore une question spirou Conversion et d'Encodage de Vidéo (Français) 1 02-28-2004 11:16 AM
Avisynth: How about an Optimal Static Script? audioslave Avisynth Scripting 7 11-03-2003 10:23 AM
Avisynth: Adding scene change blur to static script? audioslave Avisynth Scripting 7 11-02-2003 11:23 PM
capturing TV cartoons, but get some hissing/static in the sound nicksteel Video Capturing / Recording 13 09-22-2003 09:18 AM

Thread Tools



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