digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Updating excisting ini file? (http://www.digitalfaq.com/archives/avisynth/5146-avisynth-updating-excisting.html)

Payasa 08-22-2003 10:11 AM

updating excisting ini file?
 
i`m encoding skvcd for a while now but i don`t seem to understand how to update excisting dvd2svcd ini file.
maybe someone can help me out? :oops:

Dialhot 08-22-2003 01:52 PM

Not at all the correct forum :!: We have a dvd2svcd forum :idea:

btw, there are the modification to add at the end of your actual DVD2SVCD.ini file :

Code:

[AVISYNTH_Adaptative Filter]
0=nf=0
1=ConvertToYV12()
2=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
3=GripSize(resizer="BiCubicResize")
4=Undot()
5=Limiter()
6=Asharp(1, 4)
7=STMedianFilter(^S_FilterThreshHold, ^S_EdgeThreshHold, 0, 0 )
8=MergeChroma(blur(^blur_chroma))
9=MergeLuma(blur(^blur_luma))
10=ScriptClip("nf = round(YDifferenceToNext())"+chr(13)+ "((nf >= 2) && (nf < ^scdtrigger)) ? unfilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))) : TemporalCleaner(6+nf,13+nf) ")
11=GripBorders()
12=Limiter()
13=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
^overscan=1
^source_ana=false
^dest_ana=false
^S_FilterThreshHold=8
^S_EdgeThreshHold=32
^blur_chroma=1.58
^blur_luma=0.1
^scdtrigger=30

[AVISYNTH_Divx Filter]
0=ConvertToYV12()
1=Undot()
2=Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
3=ATC(2,3,5,0.5,false)
4=TemporalSoften(2,7,7,3,2)
5=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
6=GripSize(resizer="^resizer")
7=DCTFilter(1,1,1,1,1,1,0.5,0)
8=Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.5,seed=5623)
9=GripBorders()
^overscan=1
^source_ana=false
^dest_ana=false
^resizer=LanczosResize

You will have to new entry under the frameserver tab ob dvd2svcd : "Adaptative Filter" that is for DVD ripping, and "Divx Filter" if you want convert a Divx.

Note1 : these settings are for AVS2.52 only ! I do not use avs2.08 since months.

Note2: you have to have all needed filters in the plugins directory of avs2.52.

Note3: I guess all this will be too much for you if you are a newbie. Sorry :-)

Payasa 08-23-2003 06:23 AM

downloaded lots of plugins but must i add them in the dvd2svcd/avs2.5 plugins or the avs2.52 installed in program files/avs2.5/plugins directory

i lot of txt files also but only the dll files are improtant am i right?
or must i put all the files in it what comes with the plugins.

Dialhot 08-23-2003 12:16 PM

Quote:

Originally Posted by Payasa
downloaded lots of plugins but must i add them in the dvd2svcd/avs2.5 plugins or the avs2.52 installed in program files/avs2.5/plugins directory

In the second one.

Quote:

i lot of txt files also but only the dll files are improtant am i right?
or must i put all the files in it what comes with the plugins.
No, just the dll but keep the readme.txt : these are the doc and they will be usefull if one day you want to modify a parameter.

Payasa 08-23-2003 03:34 PM

i looked at the script and checkt all the plugins this is what i have and what i am missing:

i have:

asharp.dll
Autocrop.dll
Dctfilter.dll
Decomb.dll
dgbob.dll
FluxSmooth-2.5.dll
GripFit_preview.dll
GripFit_YV12.dll
LegalClip.dll
MPEG2Dec3.dll
SimpleResize.dll
STMedianFilter.dll
TemporalCleaner.dll
UnDot.dll
UnFilter.dll
MergeChroma.dll
MergeLuma.dll
atc.dll

missing:

ConvertToYV12
GripCrop
Gripsize
Limiter
GripBorders
TemporalSoften

hope anyone can provide me some links..

Dialhot 08-23-2003 03:49 PM

Quote:

Originally Posted by Payasa
ConvertToYV12
Limiter
TemporalSoften

They are all internal command of avs2.52, so do not need any plugin (you can see the manual of avisynth there

Quote:

GripCrop
Gripsize
GripBorders
These are all included in this plugin :

http://www.nic.fi/~lhahne/GripFit_YV12.zip

kwag 08-23-2003 03:51 PM

ConvertToYV12 - Built in AviSynth.
GripCrop ------\\
Gripsize --------|| All three included in GripFit package.
GripBorders ---//
Limiter - Built in AviSynth 2.5x.
TemporalSoften - Built in AviSynth.

-kwag

kwag 08-23-2003 03:52 PM

:P

Payasa 08-23-2003 06:46 PM

encoding goes just fine know, but i have a problem.

i can`t get the permanent subtitles to work.
gues dvd2svcd can`t encode it using the new avs 2.52?

currently use 1.1.3 build 2.

any ideas?

Dialhot 08-24-2003 12:57 PM

Quote:

Originally Posted by Payasa
encoding goes just fine know, but i have a problem.

i can`t get the permanent subtitles to work.
gues dvd2svcd can`t encode it using the new avs 2.52?

currently use 1.1.3 build 2.

any ideas?

Go to frameserver tab, ask for "Edit avisynth script during video encoding". And launch the job without any subtitles.
After the sound if done, a windows pop-up where you can find the avs script that will be used. Jyst add a line "Textsub("your subtitle file here") at the end of the script (or just before the Gripborders() line if you want your subtitles intot the image and not into the black bars). Then let continue the work.

Note: you will need the plugin "VSFilter.dll" for this to work. Do a search with "vsfilter" on thsi forum to find where to DL this plugin.

Payasa 08-24-2003 02:02 PM

tnx dial it works when i did a sample.
this textsub script can be easily added to the divx filter?

but i have already a problem again.
added this script subtitles were huge like arial 22/24 i think, is there no way to reduce the subs to arial 18, and maybe a way to put the subs in a position i want to have them?

currently encode a widescreen movie so i want the subs to be in y-pos 360. the script automaticly puts them in the standard position wich is y-pos 400 for NTSC.

Dialhot 08-24-2003 03:36 PM

Quote:

Originally Posted by Payasa
tnx dial it works when i did a sample.
this textsub script can be easily added to the divx filter?

AS we don't have any means to know the name of the file, you have to change the content of the ini for each encoding (not very great) or we can set the ini file to always open the same subtitle file (let say "subtitle.srt") but that means that before each encoding, you will have to copy the right subtitle file under the name "subtitle.srt"). Again, not very great...

Quote:

but i have already a problem again.
added this script subtitles were huge like arial 22/24 i think, is there no way to reduce the subs to arial 18, and maybe a way to put the subs in a position i want to have them?
Put it into the black bar, they will be smaller.
Else you have to open the subtitle under "sub resynch" (that's the name a a software), save it without changing anything. That will create a file with the extension ".style" where you can find the size of the font, and change it.

Payasa 08-25-2003 04:15 AM

i managed to reduce to subs to arial 18 only the position of the subs is a problem for me.
here`s the script of the .srt.style file a made using Subresync.
if i`m correct the bold part is the position?
i want to have them exacly under the borders the script puts them in the standard position y-pos 400 but i want to have them on like y-pos 360.

ScriptType: v4.00+
PlayResX: 384
PlayResY: 288


[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,18,&H00ffffff,&H0000ffff,&H00000000, &H80000000,0,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20 ,1

Dialhot 08-25-2003 04:33 AM

I never modified these parameters but I already tried to reduce the margins used by default, and that works.
As you can see, the margin are the 3 parameters at the end of the line (MarginL, MarginR, MarginV, all values to 20 by default).

For your problem, is the MarginV (V for "Vertical" that you have to reduce. So the third 20. Set it to 5 for instance).

Payasa 08-25-2003 07:29 AM

thnx i will give it a try...

Paulus 08-26-2003 05:54 PM

Dialhot is the "guru" :-) ! (ain't he payasa........)

Damn.. you really know all the ins and outs don't you..?


........back to endoding "Wallace and Gromit" -> running into strange problems on one of the three parts on the DVD. I hope problems are solved after the next encode. If not you will read my report in the DVD2SVCD forum.......

Dialhot 08-27-2003 04:10 AM

Quote:

Originally Posted by Paulus
Dialhot is the "guru" :-) ! (ain't he payasa........)

Damn.. you really know all the ins and outs don't you..?

Only the ones I already experiment. I guess there are still some that I have to discover. :-D

Payasa 08-27-2003 04:46 AM

yes he`s really a kvcd pro :lol:

but i have a question already :roll:

i don`t seem to get the perm subs to work using subresync editing to verdana 18.
positioning seem to work only the font size stays the same.
is there no way that the scripts can work with the buildin subtitle feature in dvd2svcd?

Dialhot 08-27-2003 05:15 AM

D2S provides its own plugin for subtitles and that is the problem. Perhaps in the future, they'll move it to avs2.52.

And for font size, if changing it in the style file does not work, you can change directly the zoom that is done on the characters.
These are the parameters "ScaleX" and "ScaleY" (both equal to 100 by default. Set them to 75 for instance - the value is in %).

Payasa 08-29-2003 04:16 AM

there`s a new dvd2svcd bundle out there with avs 2.52 support i will give it i try! :lol:

thnx Dialhot

Dialhot 08-29-2003 05:39 AM

I think about your problem as soon I saw the new bundle but the changelog doesn't report anything related to subtitles.

Tell us the result of your tests.

Payasa 08-29-2003 09:05 AM

it`s a disaster it won`t work :oops:
subtitles were nowhere to see.

strange why would he put the avs 2.52 option in it when it doesn`t work :?:

Payasa 08-29-2003 09:17 AM

strange i was testing again but this time not using the divx filter but bibucibresize now i see some actifity but the subs are all messed up here a screen:

http://www.digitalfaq.com/archives/error.gif

Dialhot 08-29-2003 09:22 AM

1/ they can't test everything and if no one reports them the error, they don't even know there is a problem :-)

2/ your source is interlaced ? You must deinterlace it before to put the subtitles.

3/ youre right, it's strange that works with bicubic and not optimal script. Can you post the avs that D2S generates in both cases ?
(you can find it under the movie directory of D2S, it is called "Avisynth_script.avs" or something like this).

Payasa 08-29-2003 09:58 AM

BibucibResize:

LoadPlugin("C:\DOCUME~1\GERRIE~1\BUREAU~1\SVCDTO~1 \DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
LoadPlugin("C:\DOCUME~1\GERRIE~1\BUREAU~1\SVCDTO~1 \DVD2SVCD\AVISYN~1.5PL\AVISYN~2.DLL")
AVISource("C:\DOCUME~1\GERRIE~1\BUREAU~1\FTP\sampl e.avi",False)
ConvertToYUY2()
BicubicResize(480,276,0.0,0.6)
AddBorders(0,102,0,102)
AvisynthSubtitler("C:\DOCUME~1\GERRIE~1\BUREAU~1\S VCDTO~1\DVD2SVCD\Movie\","permsubs.txt")
ConvertToRGB()

DivX Filter:

LoadPlugin("C:\DOCUME~1\GERRIE~1\BUREAU~1\SVCDTO~1 \DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
LoadPlugin("C:\DOCUME~1\GERRIE~1\BUREAU~1\SVCDTO~1 \DVD2SVCD\AVISYN~1.5PL\AVISYN~2.DLL")
AVISource("C:\DOCUME~1\GERRIE~1\BUREAU~1\FTP\sampl e.avi",False)
ConvertToYUY2()
ConvertToYV12()
Undot()
Blockbuster(method="noise",detail_min=1,detail_max =8,variance=0.3,seed=5823)
ATC(2,3,5,0.5,false)
TemporalSoften(2,7,7,3,2)
GripCrop(480, 276+102+102, overscan=1, source_anamorphic=false, dest_anamorphic=false)
GripSize(resizer="LanczosResize")
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max =10,variance=0.5,seed=5623)
GripBorders()
AvisynthSubtitler("C:\DOCUME~1\GERRIE~1\BUREAU~1\S VCDTO~1\DVD2SVCD\Movie\","permsubs.txt")
ConvertToRGB()

Dialhot 08-29-2003 10:04 AM

It seems that is the line "ConvertToYV12" that is the problem :-(

I guess that we should remove it from the script.
Can you make a test without this line to see if that correct the problem ?
(just go into framserver tab, ask for editing the script during video encoding, and when the window pop-up with the script, just remove the line "converttoyv12").

Payasa 08-29-2003 10:11 AM

http://home.quicknet.nl/qn/prive/g.k...a/PermSubs.txt

Payasa 08-29-2003 10:12 AM

lol you were to fast for me and yes i will test it.

Dialhot 08-29-2003 10:14 AM

Indeed I finally removed this line from the optimal script for D2S : it don't have any use there and in fact is more harmfull than other thing.

Payasa 08-29-2003 10:19 AM

yes dial it works now in both cases.

i will edit my ini aswell.

maybe another idea for the messed up subs?

Payasa 08-29-2003 11:13 AM

it seems to be a bug in dvd2svcd.

the bmp`s are converted to 32bit and the must be converted to 24bit.
this is only when using external subtitles wich is my problem.

the dvd2svcd author will be on it a.s.a.p so he said :)

Dialhot 08-29-2003 11:30 AM

I just saw this into d9 forum. He has delivered a new version : he was very fast :-)

http://www.dvd2dvd.org/D2S121B1a.rar

Payasa 08-29-2003 11:46 AM

yeah big kiss for dvd2svcd and my m8 dialhot offcourse. :wink:

i gonna try it out...

Payasa 09-01-2003 06:46 AM

subtitles came out beautiful :lol:

divx filter seems te work fine too... :wink:

i am a happy man now :!:

thnx


All times are GMT -5. The time now is 12:22 AM  —  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.