digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: How to Remove black borders? (http://www.digitalfaq.com/archives/encode/6471-kvcd-how-remove.html)

raven2707 11-02-2003 10:41 AM

KVCD: How to Remove black borders?
 
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. :roll:

Edlund 11-02-2003 11:16 AM

In TMPGenc, Settings->Advance->Video arrange method->choose Full screen (no margins)

ak47 11-02-2003 11:22 AM

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 .

Dialhot 11-02-2003 11:32 AM

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.

raven2707 11-02-2003 12:48 PM

Ok dailhot i tried that but it didn't work. Still borders and the people look like smurfs after encoding. Any other suggestions?

Dialhot 11-02-2003 03:07 PM

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 ?

raven2707 11-02-2003 03:38 PM

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.

Dialhot 11-02-2003 03:45 PM

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).

raven2707 11-02-2003 03:54 PM

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.

Dialhot 11-02-2003 04:37 PM

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.

raven2707 11-02-2003 05:59 PM

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:DX50/divx name:DivX 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 :lol:

Dialhot 11-02-2003 07:14 PM

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 06:28 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.