Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st March 2004, 01:15   #1  |  Link
kecci
Registered User
 
Join Date: Feb 2003
Posts: 8
Something must be wrong...

I'm trying to encode the Italian version of Trigun (an anime for those who don't know ) DVD and I'm finding myself in VERY strong difficulties like never before...at 640x480 with XviD 1.0 RC2, cartoon mode, VHQ4 and all those things, i get a 560mb for a 24 min episode first pass when my aim was ~230mb/ep...the result is obviously horrible (with a simple script consisting of FieldDeinterlace, UnDot and Convolution3D).
I think that this is due to a strange interlacing of the source. It seems like there are some "edges" on the lines of drawings that move all the way making the codec go crazy. I'm trying to find some filters to solve this problems but I am a newbie in this field and I really don't know where to start from (if from deintarlacing or from edge-softening or deblocking or god-knows-what-ing ).
Please could some one enlighten me?
I'm linking you a 10sec cut of the VOB just to make you realize...

TIA everyone for your support!

Bye!

EDIT: sorry everyone for my English...I'm Italian
kecci is offline   Reply With Quote
Old 1st March 2004, 01:56   #2  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
Oh-Oh...

Again and again, fieldblended PAL.

This Anime is a conversion from NTSC to PAL.

the only way to get it correctly deinterlaced, is IMO to use restore24:

http://forum.doom9.org/showthread.ph...901#post451901
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 1st March 2004, 12:10   #3  |  Link
kecci
Registered User
 
Join Date: Feb 2003
Posts: 8
Great avatar!
Mant thanks, scharfis_brain...I'm trying right now. I didn't understand perfectly the arguments this restore24() (i obviously picked up your modified version).
[]
Tested right now
This script
Code:
setmemorymax(256)
setworkingdir("E:\divx\gordianknot\")

import("restore24.avs")
import("bobmatcher.avs")

loadplugin("masktools141.dll")
loadplugin("kerneldeint.dll")
loadplugin("avisynth_c.dll")
loadplugin("smartdecimate.dll")
loadplugin("mpeg2dec_.dll")
loadplugin("mpeg2dec3.dll")
loadplugin("unfilter.dll")
loadplugin("sangnom.dll")
loadplugin("tomsmocomp.dll")

mpeg2source("f:\trigun03\cut_proj.d2v",cpu=4,iPP=true)

converttoyuy2(interlaced=true)

restore24(tomsbobsoft(last),bobmatcher(last))
gives this error: "script error: there is no function named "overlay" (bobmatcher.avs, line 89)
(C:\Documents and Settings\Administrator\Desktop\try.avs, line 21)"
What's wrong?
kecci is offline   Reply With Quote
Old 1st March 2004, 12:32   #4  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
please update your avisynth!

or replace the overlay-command in bobmatcher

with layer(out1,out2,"fast")
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 1st March 2004, 13:22   #5  |  Link
kecci
Registered User
 
Join Date: Feb 2003
Posts: 8
Thank you! With the layer command it seems to work! (updating avisynth to 2.54 I get a strange message about avisynth_new_c and avisynth_c.dll ) The whole deinterlacing quality is awesome, but it seems that there are still some duplicates frames...
Look at the cat in this clip (encoded XviD 1.0 RC2 q2)...do I need to adjust some thresold or make some frame-rate variation or this is the best i can squeeze out of this DVD?
I used this script to encode the sample
Code:
setmemorymax(256)
setworkingdir("E:\divx\gordianknot\")

import("restore24.avs")
import("bobmatcher2.avs")

loadplugin("masktools141.dll")
loadplugin("kerneldeint.dll")
loadplugin("avisynth_c.dll")
loadplugin("smartdecimate.dll")
loadplugin("mpeg2dec_.dll")
loadplugin("mpeg2dec3.dll")
loadplugin("unfilter.dll")
loadplugin("sangnom.dll")
loadplugin("tomsmocomp.dll")
loadplugin("convolution3d.dll")
loadplugin("undot.dll")

mpeg2source("f:\trigun03\trigun_9.d2v",cpu=4,iPP=true)

converttoyuy2(interlaced=true)
restore24(tomsbobsoft(last),bobmatcher(last))
crop(20,6,688,564)
converttoyv12()
Convolution3D(preset="animeLQ")
UnDot()
UnFilter(-5,-5)
LanczosResize(640,480)
Again, thank you for helping me!
kecci is offline   Reply With Quote
Old 1st March 2004, 15:06   #6  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
you will have to live with the blended cat.
(I've noticed this with your test-sample)

It is a just to small feature, compared to the whole picture.
This is, why it isn't catched correctly.


But I think, that this small issue won't be that noticable.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 1st March 2004, 22:41   #7  |  Link
kecci
Registered User
 
Join Date: Feb 2003
Posts: 8
Ok...the deinterlacer is now working perfect! (far better than the FieldDeinterlace I used before ) but the problem is still there. First pass is ~510mb (for a 24min ep with no audio ) using Convolution3D (animeLQ preset). Could you advice me some filters like Conv3D to reduce the filesize by cut off blocks and artifacts and/or sharpen the image?
Right now I'm messing up with MSmooth and later I'll give Dup a try
kecci is offline   Reply With Quote
Old 2nd March 2004, 02:26   #8  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Hi-

One way to improve the quality is to lower the resolution to 512x384. Even the NTSC version doesn't compress so well. In my opinion that beats filtering the hell out of it, and it'll encode faster as well.
manono is offline   Reply With Quote
Old 2nd March 2004, 19:16   #9  |  Link
Bogalvator
Registered User
 
Join Date: Jun 2003
Location: Northampton, England
Posts: 187
Hey kecci check out the 'Speed and Compression of filters' sticky in this forum.

Seems like Faerydust() and PeachSmoother() might be what you looking for to increase compressibility.

Also manono's suggestion is a good one - sometimes you just have to cut your losses and lower the resolution and 512x384 will still look fine.
Bogalvator is offline   Reply With Quote
Old 3rd March 2004, 00:16   #10  |  Link
kecci
Registered User
 
Join Date: Feb 2003
Posts: 8
@all: Thanks to everyone for your advices!
I'm almost there ...I've achieved a ~280mb first pass using MSmooth and BilinearResize-ing (instead of Lanzcos) to 512x384px! The video I want should be around 195-200mb, so I'm very very close.
Just to inform you...during my maaaaany attempts I tried using DeShaker to make the image more still and save bits...and the results were not bad at all!! Now I've discharged this option because of its slowness (it would require 4-three-hour-passes to make a episode!) but someday I will try it combined with Dup and I'll see where I can get

@Bogalvator: I already tried PeachSmoother() but at default values, MSmooth gives better compressibility. So now I'm sticking with it, but I'll give FaeryDust() a try ASAP!

Bye and thanks again!
kecci is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.