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 17th July 2008, 20:01   #1  |  Link
ficofico
Registered User
 
Join Date: Nov 2006
Posts: 146
Better than this.... n95 video quality

I'm trying to improve this kind of video file... I'm very happy of the result but I ask here if someone have some suggestion for further improve this video.

Here i post the original video file and 2 other file after different avisynth encoding....


DOWNLOAD SAMPLE

ORIGINAL VIDEO FILE


x264 settings:

Code:
--crf 22 --bframes 6 --ref 6 --filter -2,-1  --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --merange 8 --no-fast-pskip --weightb  --me umh --b-pyramid   --weightb --direct auto   --vbv-maxrate 25000  --threads auto --thread-input --progress --no-dct-decimate --no-psnr --no-ssim
avisynth script:

Code:
ffmpegsource("video.mp4", seekmode=1)
setmemorymax(ram)
assumefps(fico)
converttoYv12()

source = last
w=width()
h=height()
backward_vec2 = source.MVAnalyse(isb=true, delta=2,blksize=16,search=3,pel=2,dct=0,idx=1)
backward_vec1 = source.MVAnalyse(isb=true, delta=1,blksize=16,search=3,pel=2,dct=0,idx=1)
forward_vec1 = source.MVAnalyse(isb=false, delta=1,blksize=16,search=3,pel=2,dct=0,idx=1)
forward_vec2 = source.MVAnalyse(isb=false, delta=2,blksize=16,search=3,pel=2,dct=0,idx=1)
maskp1 = mvmask(kind=1, vectors=forward_vec1, ysc=255).UtoY()
maskp2 = mvmask(kind=1, vectors=forward_vec2).UtoY()
maskp3 = mvmask(kind=1, vectors=backward_vec1, ysc=255).UtoY()
maskp4 = mvmask(kind=1, vectors=backward_vec2).UtoY()
maskf = average(maskp1, 0.25, maskp2, 0.25, maskp3, 0.25, maskp4, 0.25).spline36resize(w,h)
smooth = source.mt("fft3dfilter(bw=16, bh=16, bt=3, sigma=4, plane=4)")
source2 = maskedmerge(source,smooth,maskf)
source2.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=400,idx=3)

source=last
backward_vec = source.MVAnalyse(isb = true,truemotion=true,pel=2, idx=2search=3)
forward_vec = source.MVAnalyse(isb = false,truemotion=true,pel=2, idx=2,search=3)
source.MVFlowFps(backward_vec,forward_vec,num=60,den=1,idx=2)

dull  = last
sharp = dull.mt("LimitedSharpenfaster(ss_x=2.6,ss_y=2.6,smode=3,strength=180,overshoot=3)")
Soothe(sharp,dull,15)
DOWNLOAD SAMPLE

HIGH_QUALITY





x264 settings:

Code:
--crf 22 --bframes 6 --ref 6 --filter -2,-1  --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --merange 8 --no-fast-pskip --weightb  --me umh --b-pyramid   --weightb --direct auto   --vbv-maxrate 25000  --threads auto --thread-input --progress --no-dct-decimate --no-psnr --no-ssim
avisynth script:

Code:
ffmpegsource("video.mp4", seekmode=1)
setmemorymax(ram)
assumefps(fico)

source=last
w=width()
h=height()
backward_vec3 = source.MVAnalyse(isb=true,truemotion=true, delta=3,blksize=8,search=3,searchparam=4,pel=4,overlap=4,overlapV=4,divide=2,dct=0,idx=1)
backward_vec2 = source.MVAnalyse(isb=true,truemotion=true, delta=2,blksize=8,search=3,searchparam=4,pel=4,overlap=4,overlapV=4,divide=2,dct=0,idx=1)
backward_vec1 = source.MVAnalyse(isb=true,truemotion=true, delta=1,blksize=8,search=3,searchparam=4,pel=4,overlap=4,overlapV=4,divide=2,dct=0,idx=1)
forward_vec1 = source.MVAnalyse(isb=false,truemotion=true, delta=1,blksize=8,search=3,searchparam=4,pel=4,overlap=4,overlapV=4,divide=2,dct=0,idx=1)
forward_vec2 = source.MVAnalyse(isb=false,truemotion=true, delta=2,blksize=8,search=3,searchparam=4,pel=4,overlap=4,overlapV=4,divide=2,dct=0,idx=1)
forward_vec3 = source.MVAnalyse(isb=false,truemotion=true, delta=3,blksize=8,search=3,searchparam=4,pel=4,overlap=4,overlapV=4,divide=2,dct=0,idx=1)
maskp1 = mvmask(kind=1, vectors=forward_vec1).UtoY()
maskp2 = mvmask(kind=1, vectors=forward_vec2).UtoY()
maskp3 = mvmask(kind=1, vectors=forward_vec3).UtoY()
maskp4 = mvmask(kind=1, vectors=backward_vec1).UtoY()
maskp5 = mvmask(kind=1, vectors=backward_vec2).UtoY()
maskp6 = mvmask(kind=1, vectors=backward_vec3).UtoY()
maskf = average(maskp1, 0.25, maskp2, 0.25, maskp3, 0.25, maskp4, 0.25, maskp5, 0.25, maskp6, 0.25).spline36resize(w,h)
smooth = source.mt("fft3dfilter(bw=32, bh=32, ow=16, oh=16, bt=5, sigma=4, plane=4)")
source2 = maskedmerge(source,smooth,maskf)
source2.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=400,idx=3)

source=last
backward_vec = source.MVAnalyse(isb = true,truemotion=true,pel=4,idx=2,search=3,divide=2,searchparam=4)
forward_vec = source.MVAnalyse(isb = false,truemotion=true,pel=4,idx=2,search=3,divide=2,searchparam=4)
source.MVFlowFps(backward_vec,forward_vec,num=60,den=1,idx=2

dull  = last
sharp = dull.mt("LimitedSharpenfaster(ss_x=3.4,ss_y=3.4,smode=3,strength=180,overshoot=7)")
Soothe(sharp,dull,15)
DOWNLOAD SAMPLE

VERY_HIGH_QUALITY



For me very high quality don't look better than high quality, even if the pc had take 4 hours to complete encoding!!!

For this, I ask here, Can I try another way to revive this video file? I need suggestion for having an overall improve of quality than High_quality video, even at the cost of slow down encoding.......

Any suggestion? thanks
ficofico is offline   Reply With Quote
Old 18th July 2008, 13:57   #2  |  Link
Comatose
Registered User
 
Join Date: Dec 2007
Posts: 639
Was the original one shot on a N95?
Comatose is offline   Reply With Quote
Old 18th July 2008, 15:14   #3  |  Link
ficofico
Registered User
 
Join Date: Nov 2006
Posts: 146
yes it was
ficofico 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 22:24.


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