digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: open with TMPGEnc? (http://www.digitalfaq.com/archives/encode/10897-kvcd-open-tmpgenc.html)

password 07-14-2004 01:29 AM

KVCD: open with TMPGEnc?
 
this is my first attempt to make a script by hand. so, i have a dvd source (always) and i can only get moviestacker 2.00 beta 3. well i tried following the moviestacker 2.00 beta 3 guide and it source is an .avi (as all guides sources are .avi) so i dont know exactly what to do. i just need to know if i am doing this correctly. if not please correct me because everybody seems to forget about me or they are to busy :cry:
SOURCE:

- ntsc dvd widescreen
- interlaced: not interlaced

DESTINATION:

- KVCDx3
- Mode: mpeg2
- Framerate: 23.976
- Resolution: 528x480
- Audiosamplerate: 44.1 khz
- Audio Enc Type: mp2
- Encoding Appl: TmpgEnc
- muxing Appl: BBmpeg
- Authoring Appl: Vcdeasy
- Burning Appl: Nero

Avisynth Version

- 2.5

LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")

Mpeg2Source("D:\file.d2v")

undot()
asharp(1, 4)
Gripcrop(320, 240,overscan=1,source_anamorphic=true, dest_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))

i did not know what do with moviestacker or the guide so i did not use it. i tried to get an idea and i came up with this assumption with Kwag's Latest Optical Script. how do i get it to open with TMPGEnc (extention is .avs right?)?

Dialhot 07-14-2004 07:55 AM

You need to dl and install the "readavs" plugin for tmpgenc. Go there : http://www.avisynth.org/warpenterprises/

password 07-14-2004 04:26 PM

thanx Phil but i aready have that install

Prodater64 07-14-2004 04:50 PM

Quote:

Originally Posted by password
thanx Phil but i aready have that install

If you use Kwag's MA script, and Gripcrop, Gripsize and Gripborders, you don't need moviestacker for nothing.
Only need give to Gripcrop your desired target width and heigth and nothing more.
Gripborders must to be last filter.
But your posted script it is not Kawg's MA script.

Edited: I forget it. In TMPGEnc load your template, and later select your avs script as your input video.

password 07-14-2004 06:30 PM

Thanx Pro so much. :D now i am one step closer to making a kvcd. and i never knew that .avs had do be my video source in . all this tme i thought that you select .avs when you open project (thats why it did not say it was not supported). is this script right ?

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\THE MATRIX\New Folder\DVD2AVI_Project_file.d2v")
#
undot()
asharp(1, 4)
Gripcrop(528, 480,overscan=1,source_anamorphic=true, dest_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

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()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!

#
#
## Functions ###

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

#
####

P.S. what settings should i use for CQMatic?

Dialhot 07-14-2004 06:36 PM

Quote:

Originally Posted by password
i never knew that .avs had do be my video source in

Sorry, we forget sometimes how much simpliest things for us can be as dark as a blackhole for newbies :-)

You script is exactly like it should be. So let's go to next step : usage of CQMatic :-)

password 07-14-2004 07:15 PM

lol thats so funny . this whole time i was missing this so valuable step . and Phil you know i was a total newb from the beggining :wink: o well at least i know now and not a total newb. so in your opinon what other things should i do to my script first (like Addborders or something)

P.S. the movie is The Italian Job

Prodater64 07-14-2004 07:24 PM

Quote:

Originally Posted by password
lol thats so funny . this whole time i was missing this so valuable step . and Phil you know i was a total newb from the beggining :wink: o well at least i know now and not a total newb. so in your opinon what other things should i do to my script first (like Addborders or something)

P.S. the movie is The Italian Job

Go, go and read CQMatic thread!!

Dialhot 07-14-2004 07:35 PM

Quote:

Originally Posted by password
so in your opinon what other things should i do to my script first (like Addborders or something)

Nothing, as I already said.
You do not need any addborders as the broders are done by gripborders. Don't worry : optimal script IS optimal :-)

password 07-14-2004 08:55 PM

thanx so much Pro and Phil. :D Now i am starting to seeing the whole picture. things are going to look different from now on (including my movies :wink: ) well i browsed around the CQMatic topic and did not find the recomended setting so i assumed it would be "PREDICTIONx3 and PERDICTION ONLY" i am using it right now and the third prediction cycle CQ is 66.31 (isn't that supposed to be a bad CQ) its a 106 min movie after i used Jorel's CUBA-COFFEE technic with DVD shrink 3.1
P.S. Phil i took your advice an unistalled dvd2svcd so from now on i will be doing it by hand. 8)

password 07-15-2004 12:36 AM

i just started using CQmatic and it created CQ of 69.94 and I wanted it to do a prediction and an encode so I stopped it because I had it set up for a prediction only. I opened up TMPGEnc and changed the CQ to 69.94 and I saved the project. I opened up CQmatic and loaded the project and clicked override CQ from the normal 60 to 69.94. I was curious to see how my .m2v looked so I played it and it had a white line on the right side between the black strip and the movie that blinks on and off and goes up and down so I started encoding and when TMPGEnc started up it still had that line. Now is there an error in my script or is it CQmatic or maybe because my source is anamorphic and my output should be anamorphic.

Gripcrop(528, 480,overscan=1,source_anamorphic=true, dest_anamorphic=false)
to
Gripcrop(528, 480,overscan=1,source_anamorphic=true, dest_anamorphic=true)

Also in TMPGEnc I manually changed what would be normally 3:2 pulldown when playback would be, I changed it to noninterlaced. Is this correct? Please help :cry:
P.S. i played it in vcl player and same line but it did not jump up and down
and their faces seemed longer i think sombody explained that by saying "coneheads" also i looked in my dvd player book and it says
"Progressive Scan Video with 3:2 Pulldown" but i dont use Progressive Scan i just use the A/V (composite video, stereo audio) so should i change it to 3:2 pulldown when playback cause before i made a movie with this template with dvd2svcd (did not have the line) with chapters i pushed forward and my player stopped responding and somebody suggested my player dose not support 3:2 pulldown but it only plays kvcdx3 in mpg2 not cause i tried kvcdx3 in mpg1 but it flickers a green color with choppy sound but plays fine on my other player. any suggestions?

Dialhot 07-15-2004 03:30 AM

Quote:

Originally Posted by password
CQ is 66.31 (isn't that supposed to be a bad CQ) its a 106 min movie

Not at all. A common CQ is between 65-70. Under 60 is really bad.
Quote:

P.S. Phil i took your advice an unistalled dvd2svcd so from now on i will be doing it by hand. 8)
;-)

Quote:

Originally Posted by password
Now is there an error in my script or is it CQmatic or maybe because my source is anamorphic and my output should be anamorphic.

Nothing wrong there. You problem seems to be more related to a interlacing matter.

Quote:

Also in TMPGEnc I manually changed what would be normally 3:2 pulldown when playback would be, I changed it to noninterlaced. Is this correct? Please help :cry:
NO if your source is NTSC 23.976. YES if your source is PAL or NTSC 29.970.

But are you sure your sourse in noninterlaced ? You blinking white line gives me doubts on that.

Quote:

and their faces seemed longer i think sombody explained that by saying "coneheads"
Yes it is. That is because you asked for an anamorphic output (that we never do generally for KVCD because that lowers the CQ from several points and it's bettter to encode in higher CQ possible).
The normal aspect will be restored by the standalone BUT not by all ! So do some tests !

Quote:

somebody suggested my player dose not support 3:2 pulldown
"somebody" is wrong. All players supports 3:2 pulldown because almost ALL movie dvds are done like this ;-).

AS said above : source PAL 25 or NTSC 29.970 -> non-interlaced / source 23.976 -> 3:2 pulldown while playback.
But you can also do a 23.976 in non-interlaced WITH KVCD (not KDVD !) because some player read them with no problem.
In fact all is matter of tests, like always.

password 07-15-2004 04:13 AM

thanks Phil so much for answering all my questions. you helped more than you can ever imagine. i will give it a go. thanx again.
P.S. i would not see the white line (since it is between the movie and the "overscan") normally huh? thanx again Phil :D

Dialhot 07-15-2004 04:34 AM

enjoy :-)

password 07-16-2004 07:56 PM

well just encoded a movie and it took about 20 hours and 28 minutes and the results are not good at all. just the video is 735mb and audio is at 112kps 85.2mb. very very angry :twisted: EEEERRRRRRR!!!!!!!!!!!

Dialhot 07-16-2004 08:13 PM

20h ? what the PC you have ? I have a 1.3GHz P4 and it never take me so long (it takes half this time !)

For the accuracy : unfortunaly CQMatic is not 100% accurate but I never have so much diff. In fact that is always better to predict with audio at 128 and have the possibility to encode really at 112 in case of problems.

Prodater64 07-16-2004 08:15 PM

Quote:

Originally Posted by password
well just encoded a movie and it took about 20 hours and 28 minutes and the results are not good at all. just the video is 735mb and audio is at 112kps 85.2mb. very very angry :twisted: EEEERRRRRRR!!!!!!!!!!!

What is the muxed file size?

Dialhot 07-16-2004 08:17 PM

Quote:

Originally Posted by Prodater64
What is the muxed file size?

Something around 735 + 85 :-)

I never saw a muxed file that does less than the two elementary streams :-)

Prodater64 07-16-2004 08:22 PM

Quote:

Originally Posted by Dialhot
I never saw a muxed file that does less than the two elementary streams :-)

Yes, you are right, but if final size is not too big, still can cut final credits. I think until 835/840Mb it would be possible.

Dialhot 07-16-2004 08:25 PM

Quote:

Originally Posted by Prodater64
Yes, you are right, but if final size is not too big, sill can cut final credits. I think until 835/840Mb would be possible.

For sure. But it's true that for a first attempt, that result can make you mad ;-)

password 07-17-2004 05:08 AM

thanx guys not anybodys fault and i already used dvd shrink. i'll just have to try again but first my next source is widescreen not anophbic(that one word so what would be gripcrops line. example (gripcrop(320, 240widescreen_true?)

Dialhot 07-17-2004 06:58 AM

You said it all in your question : the source is non anamorphic, so the line must contain "source_anamorphic=false". That's so simple :-)

Note: NEVER use dvdshrink on a KVCD ! I don't understand how you can do that BTW.

password 07-17-2004 03:08 PM

so it is supposed to look like this (Gripcrop(320, 240,overscan=1,source_anamorphic=false)? and why shouldn't I use DVDshrink because I take out the other language, subs, and credits.

Dialhot 07-17-2004 03:27 PM

You said you solved your size problem by using dvdshrink so I assumed that you used it on the KVCD you had encoded. Did you do that or did you use it on the source ?

For the gripcrop line, yes that is okay except that320*240 is used for length above 2h30 ! I don't know what is your source lenght but you can probably use a better resolution.

password 07-17-2004 04:56 PM

Quote:

You said you solved your size problem by using dvdshrink so I assumed that you used it on the KVCD you had encoded. Did you do that or did you use it on the source ?
i used it on my dvd source and i have not solved my problem i am going to try another movie
Quote:

For the gripcrop line, yes that is okay except that320*240 is used for length above 2h30 ! I don't know what is your source lenght but you can probably use a better resolution.
my source is The Matrix, used dvd shrink to edit out the credits so the movie is 2 hours and 9 min and 21 sec. i chosed the res because it has a lot of action. so my script should look like
Quote:

# DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\THE_MATRIX\DVD2AVI_Project_file.d2 v")
#
undot()
asharp(1, 4)
Gripcrop(320, 240,overscan=1,source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

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()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!

#
#
## Functions ###

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

#
####
i tried with and without those lines and it wont load through TMPGEnc
my DVD drive reads as "THE_MATRIX_16X9LB_N_AMERICA(F: )"

Dialhot 07-17-2004 05:02 PM

Quote:

Originally Posted by password
i chosed the res because it has a lot of action

Okay. That's not a bad way to think like this. Just try a prediction only with CQMatic at 352*480. On this source that can give great results.
Quote:

Gripcrop(320, 240,overscan=1,source_anamorphic=false)
I am VERY surprised that the matrix is not anamorphic. Are you sure about your statment ?

The script is okay.

password 07-17-2004 05:25 PM

thanx Phil but it still wont load through TMPGEnc and should i edit this line to something?
Quote:

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
because does "16X9LB" mean widescreen letterbox

Dialhot 07-17-2004 06:32 PM

Quote:

Originally Posted by password
thanx Phil but it still wont load through TMPGEnc

And what is the error ?
Quote:

and should i edit this line to something?
Nope. All is good in this.

Quote:

because does "16X9LB" mean widescreen letterbox
You're right. That's surprising for a such blockbuster. The european edition is anamorphic.

password 07-17-2004 09:13 PM

in TMPGEnc an error popped up that said "file "D:/the_matrix.avs" can not open or unsupported" but I changed in the avs to a different .d2v

Prodater64 07-18-2004 03:48 AM

Quote:

Originally Posted by password
in TMPGEnc an error popped up that said "file "D:/the_matrix.avs" can not open or unsupported" but I changed in the avs to a different .d2v

Be sure that you have correct DVD2AVI.vfp file into your TMPGEnc folder.

Dialhot 07-18-2004 05:46 AM

that will suprise you but what you missed is the XVID codec. Yes, xvid.

password 07-18-2004 02:54 PM

Quote:

Be sure that you have correct DVD2AVI.vfp file into your TMPGEnc folder.
i did that and did not work
Quote:

that will suprise you but what you missed is the XVID codec. Yes, xvid.
why xvid ? and where do i get it at? i downloaded nics xvid codec and keeped closing and opening TMPGEnc unil it worked but when it opened the .avs it says "MPEG-1 476x56 24fps CQ 60" and it looks like a bad tv reception. it varies every time i open it .

password 07-18-2004 03:08 PM

thanx for the help Pro and Phil :D it worked and i found the problem of the color disortion and :oops: it was in front of us the whole time and it was
Quote:

Gripcrop(320, 240,overscan=1,source_anamorphic=false)
and not
Quote:

Gripcrop(352, 240,overscan=1,source_anamorphic=false)
but i think it was the xvid codec that made it work but why? :?

password 07-18-2004 03:28 PM

and one more thing i open TMPGEnc and load "KVCD-CQ-352x480-_NTSCFilm_-PLUS" and then open the .avs and checked the settings and i noticed that the video source type changes to interlaced but dvd2avi says the video type is "film" and frame type is "progressive" :? i am going to change it to progressive anyways . thanx for the help :D

Dialhot 07-18-2004 06:25 PM

[quote="password"]
Quote:

Gripcrop(352, 240,overscan=1,source_anamorphic=false)
Correct ! And the ...x56 resolutino you have indicated that tehre was an error. here the error was "Gripcrop don't know this resolution (320*240)" or somethign close.

ANYTIME ytou have something in ...x56, open the script in a mediaplayer or in virtualdub and you will have the error message.

Quote:

but i think it was the xvid codec that made it work but why? :?
Magic :-)

TMPGENC works in the YUY2 colorspace, the scripts producses a picture in YV12, so you need to have a YV12->YUY2 convertor on your PC. That is were Xvid codec is used. It is not at all for the codec part of the soft, bu only the colorspace convertor ;-)

password 07-18-2004 08:30 PM

thanx Phil i am also trying 352x480 :wink:


All times are GMT -5. The time now is 04:47 AM  —  vBulletin Jelsoft Enterprises Ltd

Site design, images and content © 2002-2022 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2022 Jelsoft Enterprises Ltd.