11-02-2003, 10:41 AM
|
Free Member
|
|
Join Date: Oct 2003
Location: The Netherlands
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi guys.
Im trying to encode a divx. But where in the avs file can i add a line or something so that the borders at the top and bottom are deleted?
This is the info gspot shown:416x176 (2.36:1) [=26:11]
How to get it 4:3?
Hope someone can help me.
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
11-02-2003, 11:16 AM
|
Free Member
|
|
Join Date: Jul 2003
Location: Pazardjik, Bulgaria
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In TMPGenc, Settings->Advance->Video arrange method->choose Full screen (no margins)
|
11-02-2003, 11:22 AM
|
Free Member
|
|
Join Date: Oct 2002
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You can open the AVI file though Virtual Dub, the go to filters and add a filter then after that crop it and see how much it takes to crop it, record each boarder, then place it in the avs script like show here, http://www.avisynth.org/index.php?page=Crop Crop(left,Top,Width-Right,length-bottom). Then place your filters like show here http://forum.doom9.org/showthread.ph...threadid=64253 .
__________________
Later ak
|
11-02-2003, 11:32 AM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Don't bother with that ! Gripcrop do an automatic "border removal" before computing the resizing parameters. It can fail if the borders aren't truly black.
|
11-02-2003, 12:48 PM
|
Free Member
|
|
Join Date: Oct 2003
Location: The Netherlands
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok dailhot i tried that but it didn't work. Still borders and the people look like smurfs after encoding. Any other suggestions?
|
11-02-2003, 03:07 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by raven2707
Ok dailhot i tried that but it didn't work. Still borders and the people look like smurfs after encoding. Any other suggestions?
|
Aren't these borders the ones add by the "overscan" parameter ? They are normal !
And you say "smurf" but did you use the correct settings for source_anamorphic and dest_anamorphic paremeters ?
Which "Gripcrop" line did you use ?
|
11-02-2003, 03:38 PM
|
Free Member
|
|
Join Date: Oct 2003
Location: The Netherlands
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Well this is my avs:
## DLL Section ##
#
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\unfilter25.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\VSfilter.dll")
#
####
## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####
## Main section and static filters ###
#
AviSource("D:\skvcd\Grease.avi")
#
ConvertToYV12()
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 288, overscan=2, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
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) ")
#
#
#
Textsub("D:\skvcd\Grease.srt")
GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()
#
#
## Functions ###
function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}
#
###
To be more exact: My source is not 4:3 so when i play it it has a black line above and beneath the movie.
---------------------
Border
---------------------
movie
---------------------
Border
---------------------
And i was wondering if i could make it full screen.
But what do i have to change in the avs? Im using tok.
And also i tried to encode as you said, but the movie was with borders and just like a photo negative.
|
11-02-2003, 03:45 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
But the borders aren't in the source, are they ?
If not, you can't remove them (as they do not exist). And you can't do a fullscreen movie form a bordered one without cutting the sides (and so, loose some picture).
|
11-02-2003, 03:54 PM
|
Free Member
|
|
Join Date: Oct 2003
Location: The Netherlands
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
But what to do about those blue faces?
And the borders are present in the source, well i believe so. Because when i play the movie in wmp it also has those borders.
|
11-02-2003, 04:37 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by raven2707
But what to do about those blue faces?
|
Codec issue. DL the last nic's XVID codec.
Quote:
And the borders are present in the source, well i believe so. Because when iplay the movie in wmp it also has those borders.
|
And DL also GSPOT to analyse the true size of your video. These borders aren't in the source, I'm pretty sure about this.
|
11-02-2003, 05:59 PM
|
Free Member
|
|
Join Date: Oct 2003
Location: The Netherlands
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Well this is the info G-spot gave me:
Stream type and A/V interleave:
Type:OpenDML AVI IMRR:1.00
I/L:2 vid frames (80 ms), p=480 Split: No
Video:
Codec:
4CC X50/divx name ivX 5.0
Runtime:01:45:56 (158,907 fr)
x:y:416x176 (2.36:1) [=26:11]
bitrate:785 kb/s FPS:25.000 Qf:0.429 bits/pixel
need more? Let me know.
Tanks for all your help
|
11-02-2003, 07:14 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by raven2707
x:y:416x176 (2.36:1)
|
You see, your source is widescreen, that's the player that put the black borders to fit the picture in your 4:3 monitor !
|
All times are GMT -5. The time now is 08:13 AM — vBulletin © Jelsoft Enterprises Ltd
|