Quantcast KDVD: MA Script Questions - Page 2 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #21  
09-12-2003, 07:26 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
You will find it in... the avisynth documentation
It's a new internal command of avisynth and it replace old lecalclip plugin
Seem to now have everything except Gripcrop.

All I can find is GripCrop_Preview which TMPGEnc says not 2.5 plugin.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
09-12-2003, 07:32 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.kvcd.net/forum/viewtopic.php?t=4697
Reply With Quote
  #23  
09-12-2003, 07:50 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
http://www.kvcd.net/forum/viewtopic.php?t=4697
Thanks, Phil

"deen need a YV12 input" error in TMPGEnc
Reply With Quote
  #24  
09-12-2003, 08:05 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
... as do MA script. So that's a problem that you have to correct quicly.

What kind of source do you use ? (avi or mpeg2 ?)
Reply With Quote
  #25  
09-12-2003, 08:09 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
... as do MA script. So that's a problem that you have to correct quicly.

What kind of source do you use ? (avi or mpeg2 ?)
This is an avi from a tv capture.

LoadPlugin("c:\video\dlls\MPEG2DEC3.dll")

LoadPlugin("c:\video\dlls\decomb.dll")
LoadPlugin("c:\video\dlls\deen.dll")
LoadPlugin("c:\video\dlls\gripfit_yv12.dll")
LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l")
#LoadPlugin("c:\video\dlls\dustv5.dll")
LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilte r.dll")

AviSource("H:\love\love.avi")
Limiter()
Telecide()
Decimate()
GripCrop(480, 480, overscan=2, source_anamorphic=false, dest_anamorphic=true)
GripSize(resizer="BicubicResize")
STMedianFilter( 8, 32, 0, 0 )
Deen()
UnFilter(25, 25)
MergeChroma(blur(1.5)
MergeLuma(blur(0.2))
#GripBorders()
Limiter()
Reply With Quote
  #26  
09-12-2003, 08:17 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel
This is an avi from a tv capture.
Okay so all depends on the codec you use.

If that is a codec abble to provides YV12 output, just configure it in this way (xvid codec for instance is configured for outputting YUY2 by default, where Divx codec is configured for YV12)

If the codec can't give you YV12, add the line "ConvertToYV12()" just after the avisource.
Reply With Quote
  #27  
09-12-2003, 10:58 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, Phil.

I'll try this.

Also, I now get a TMPGEnc message "can not open or unsupported" for my avs file. I've checked the path and can open in notpad.

## DLL Section ##
#

LoadPlugin("c:\video\dlls\MPEG2DEC3.dll")
LoadPlugin("c:\video\dlls\decomb.dll")
LoadPlugin("c:\video\dlls\deen.dll")
LoadPlugin("c:\video\dlls\gripfit_yv12.dll")
LoadPlugin("c:\video\dlls\unfilter_2.5\unfilter.dl l")
LoadPlugin("c:\video\dlls\stmed_2.5a\STMedianFilte r.dll")
LoadPlugin("c:\video\dlls\asharp.dll")
LoadPlugin("c:\video\dlls\undot.dll")
LoadPlugin("c:\video\dlls\decomb.dll")


#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####
## Main section and static filters ###
#
Mpeg2Source("h:\core\core.d2v")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(720,480,overscan=1,Source_anamorphic=true ,dest_anamorphic=false)
#GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
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!
Limiter()

#
#
## Functions ###

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

#
####
Reply With Quote
  #28  
09-12-2003, 11:06 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Can you open the avs in WMP ?
Do you have READAvs installed correctly .
Do you have such problem with other scritps or just this one ?
Reply With Quote
  #29  
09-12-2003, 11:24 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Can you open the avs in WMP ?
Do you have READAvs installed correctly .
Do you have such problem with other scritps or just this one ?
Does not open in WMP.
READAvs in TMPGEnc looks same as before installing 2.52.
Problems only started after installing 2.52.

TMPGEnc\Environmental\VFAPI plugin

All checked

0 AVI2(OpenDML) File Reader
0 BMP/PPM/TGA/JPG File Reader
0 CRI Sofdec MPEG Decoder
0 Ligos MPEG-1 Decoder
0 Microsoft MPEG-1 Decoder
0 Wave File Reader
0 Avisynth/VirtualDub script reader v0.1 ReadAVSA dll
0 DVD2AVI Project File Reader 1.76 DVD2AVI.vfp
0 TMPGEnc Project File Reader 2.520 TMPGEnc.vfp
-1 DirectShow Multimedia File Reader
-2 AVI VFW compatibility Reader
Reply With Quote
  #30  
09-12-2003, 11:37 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel
Does not open in WMP.
No need to go further so.

You probably don't have avisynth installed correctly. Can you do a script with just "Version()" in it and try to open it under WMP ?
Reply With Quote
  #31  
09-12-2003, 11:56 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by nicksteel
Does not open in WMP.
No need to go further so.

You probably don't have avisynth installed correctly. Can you do a script with just "Version()" in it and try to open it under WMP ?
Phil,

You're a prince of a fellow. Reinstalled Avisynth. Runs. I'll start playing with it now!
Reply With Quote
  #32  
09-13-2003, 06:49 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by nicksteel
This is an avi from a tv capture.
If the codec can't give you YV12, add the line "ConvertToYV12()" just after the avisource.
If your source is interlaced as it probably is, use ConverttoYV12(interlaced=true).
Reply With Quote
  #33  
12-13-2003, 12:11 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
deleted
Reply With Quote
  #34  
12-13-2003, 12:28 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by nicksteel
When using my PVR250 720x480 captures and the above method, should my TMPGEnc settings be (for a 16x9 capture):

Aspect ratio 4:3
Source aspect ratio 4:3
Full screen
Your output aspect will always be 4:3, if you're making a (SK)VCD.
Your input aspect depends of what you captured. If the captured material is 16:9 (where you have top/bottom black bars), you're going to have to get the "Film pixel" area with TMPEG or with a null transform filter in Vdub, and then use the values to feed them to Moviestacker. Then you'll have the correct aspect.

-kwag
Reply With Quote
  #35  
01-21-2004, 03:24 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Where and how is the output flagged as anamorphic?

My goal is to go in with an anamorphic, out with an anamorphic.
Reply With Quote
  #36  
01-21-2004, 03:44 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
I knew it, if DVDburners get that cheap the KDVD forumpart and the questions about anamorph encoding will explode

As you did all that resizing in Avisynth you can enter both values to 4:3 and 4:3 which means "let it as it is" Because by avisynth you feed TmpgEnc with a Letterboxed 16:9 format and that results in effective 4:3 proportions and no more anamorphic!

Quote:
Using this method now to size all my KVCD's and KDVD's. Works great.
ok
Quote:
My goal is to go in with an anamorphic, out with an anamorphic. I wish the final KDVD to play on widescreen or standard tv, just like the original DVD
???? That's exactly the opposite compared to the script Kwag showed you above!

When using the resize values mentioned by Kwag you end up in a letterboxed non-anamorph stream!

If you still want encode anamorph on KDVD (needs more bitrate! cause of more active moviepixels!) you don't need to resize.

Yust add a ...
Crop(8,0,704,576) instead of resizing
And maybe overlapping borders for better compresion
Letterbox(16,16,8,8 )

I did choose just a value of 8 on the sides and 16 on top& bottom as anamorph videos will be stretched in their width on 16:9 Tvsets.

This above will give you a 704x576 incl. overscan area and still in an anamorph state.


Nic that avatar is really big, you know, cause poeple who don't got a big resolution on their screen will see the Replies cutted at the right side
Reply With Quote
  #37  
01-21-2004, 04:34 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
The original post from Kwag is above. I guess I misinterpheted it.
Reply With Quote
  #38  
01-21-2004, 06:00 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Crop(8,0,704,576) instead of resizing
You should crop in a more clever manner.
Only 1.77 and 1.85 anamorphic DVD have a fullscreen image. 2.35 and others have black borders encoded into the 702*576 picture. So you must find the picture area, cut the borders, apply the filters and put back the borders back. This way you will have perfect border edges and you will gain some time to process.
Reply With Quote
  #39  
01-21-2004, 06:18 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
I just wanted to point out with this if the source is 1.85: or 1.77:1 and NOT 2.35:1.
Just to explain also that 704 width in our encoding case are just 720 cropped on each side by 8 where the AR will be keeped right.
So there's no need to still encode at 720 width.

But you're right that was just a bit confusing to others as they also deal with 2.35:1 sources.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Some questions about the optimal VHS script magwell Avisynth Scripting 5 10-27-2005 05:05 AM
VBV buffer, KDVD Matrix, padding script questions Jollito Video Encoding and Conversion 11 12-22-2004 06:07 PM
Some Questions about KDVD and jerkiness... davidmtml Video Encoding and Conversion 3 06-12-2004 12:42 AM
KDVD ... Quelques questions tyff Conversion et d'Encodage de Vidéo (Français) 4 12-05-2003 11:36 AM
Qu'est-ce qu'un script ?... et d'autres questions chandler86 Conversion et d'Encodage de Vidéo (Français) 10 11-28-2003 05:39 PM




 
All times are GMT -5. The time now is 11:56 PM  —  vBulletin © Jelsoft Enterprises Ltd