digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: Different shades of color in frames? (http://www.digitalfaq.com/archives/encode/7910-kvcd-different-shades.html)

wgamer 01-26-2004 02:00 PM

KVCD: Different shades of color in frames?
 
hi

Filetype (divx/xvid/mpeg/mjpgdivx
- interlaced(means combing on fast moving scenes) or not interlaced ? : no
- Framerate (29.97, 23.976, 25.000) ? : 25
- Resolution ? : 352x183
- Audiosamplerate (44.1 khz, 48 khz)? : 44.1
- Audio Type (AC3, mp3, mp2) ?: mp3
- Is Audio VBR or CBR ? donno
(some answers you get if using Gspot on the source!)


DESTINATION:
- KVCD, K(S)VCD or KDVD ?: kvcd
- Mode (mpeg1 or mpeg2) ?: donno
- Framerate (29.97, 23.976, 25.000) ? : 25
- Resolution ? donno
- Audiosamplerate (44.1 khz or 48 khz) ? : donno
- Audio Enc Type (mp2, AC3) ?: mp2
- Encoding Appl. (CCE or TmpgEnc) ?: tmpg
- muxing Appl. (TmpgEnc, BBmpeg, etc.) ?: tmpg
- Authoring Appl. (Vcdeasy, VCDgear, Nero) ?: tmpg
- Burning Appl. (Vcdeasy, Nero, etc.) ?: nero

this is the script i am using
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\asharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\unfilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")


AviSource("F:\Sample DivX.avi",false)
ConvertToYUY2()

undot()
Limiter()
asharp(1, 4)
GripCrop(352, 288, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)* ")
#


Limiter()
function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2
}


(1)i am getting the following error

unspecified character "" in line2, column 137

(2) the movie half the frames are in one shade of color and the other half is in another shade; i found that its the asharp line thats causing this

(3) i selected vcd resoln in mstacker. when i opend the avs in tmpeg it changed to 336x192 and when i opened the tpr in cqmatic the error was reported. so i changed the resoln tmpg manually. is it ok.

(4)there are 2 bitrates in calcumatic which one should i use in cqmatic?
thnks

wgamer 01-26-2004 03:35 PM

i added 'ConvertToRGB24()' to the script but the resoln still changes in tmpg.

i used the following template: KVCDx3-MPEG-2-PAL.mcf

i did a sample with the following script:
undot()
Limiter()
GripCrop(352, 288, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))


Limiter()

cqmatic(tmpg) encoded 9000 frames (total frames in movie is 197973)

when i divided the sampe file size by 9000 and multiply by 197973 i get a heart attack!! :lol:

Dialhot 01-26-2004 05:51 PM

1/ Upgrade to avs2.5.3 ot better to 2.5.4 that just came out today.
2/ remove the converttoYUY2, this line causes your problem of "bicolor" picture. If you have an error talling "must be in YV12" that update your divx and Xivd codec !
3/ there is no change in fact. There is an error. When this will be solved, you wont have any resolution change.

wgamer 01-28-2004 10:43 AM

.
 
hi

wgamer 01-28-2004 10:44 AM

hi

i have upgraded to 2.5.4 and upgraded to divx5.11 and latest xvid codec.

i am still gettin this error:

(1)i am getting the following error
unspecified character "" in line2, column 137

so i removed this line:

function fmin( int f1, int f2) {
* return ( f1<f2 ) ? f1 : f2
}

now i get a "undot supports yuy2........"

here is the script:
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 288, overscan=1, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)* ")


GripBorders()
Limiter()

function fmin( int f1, int f2) {
* return ( f1<f2 ) ? f1 : f2
}


i hav encoded a sample movie in cqmatic with the following script succesfully:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\BlockBuster.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\unfilter.dll")

AviSource("sample DivX.avi",false)
ConverttoYUY2()
LanczosResize(336, 192, 6, 0, 340, 182)
UnFilter(70, 70)
BlockBuster(method="sharpen", strength=17)
BlockBuster(method="noise", detail_max=20, seed=1)
AddBorders(8, 48, 8, 48)






Dialhot 01-28-2004 11:05 AM

Quote:

Originally Posted by wgamer
(1)i am getting the following error
unspecified character "" in line2, column 137

You don't give all the script so only you can say what is on the column 137 of the second line.

Quote:

so i removed this line:

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
Why ? This is for sure not a solution as this function is needed !

Quote:

now i get a "undot supports yuy2........"
This is an erroneous error in undot filter. In fact it complains because it wants YV12 (even if it says YUY2) and don't have what he wants.
You upgraded the codec, okay. Now you have to REMOVE all previous version (in particular Divx3.11 and Divx4.12) and configure the new ones to provide YV12 (by default they do YVY2)

Quote:

here is the script:
DO NOT use MA script with avi !

Quote:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\BlockBuster.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\unfilter.dll")
you can remove these lines, they are useless.

Quote:

ConverttoYUY2()
Remove that line also ! Convertoing colorspace is always harmfull and must be used only if there is no other choice. And there you do not need it.

Quote:

LanczosResize(336, 192, 6, 0, 340, 182)
UnFilter(70, 70)
BlockBuster(method="sharpen", strength=17)
Whoaow ! THREE sharpening lines ? Your CQ must suffer a lot from this !

Quote:

BlockBuster(method="noise", detail_max=20, seed=1)
Your script does nothing but adding noise and raising sharpness -> the CQ will be half it would have been without the script.
The purpose of a script is to raise the CQ, not the opposite :-)






[/quote]


All times are GMT -5. The time now is 01:18 PM  —  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.