Log in

View Full Version : How to remove the letterboxes? (aka black bars)


farmdve
21st September 2009, 12:37
I am using VirtualDubMod(tried just vdub as well). I am using it in combo with avisynth. I want to resize a clip(upscale or downscale aka either) but remove the black bars(aka i think its called a letterbox).
I have tried the Crop function but its too difficult and doesnt let me use zero values(0). I tried the null transform filter in vdubmod but vdubmod and vdub dont display those black lines so i cant crop them
Can anyone help?

Thanks in advance!

mgh
21st September 2009, 12:45
are you seeing black bars/letterboxing in the virtualdub or virtualdubmod preview?

farmdve
21st September 2009, 12:55
No i dont thats the funny thing. They appear when i play the vid but on vdub(mod) they dont and i really want to remove them

poisondeathray
21st September 2009, 14:58
If they are not visible in vdub/vdubmod or avsp, the it's likely a 1:1 PAR video and playback issue.

How are you playing this back? (what software or device?)

What format is the video? Use mediainfo if you don't know.

farmdve
21st September 2009, 15:01
Here is big info on the movie

General
Complete name : D:\movie.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 700 MiB
Duration : 1h 12mn
Overall bit rate : 1 355 Kbps
Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library : VirtualDubMod build 2178/release

Video
Format : MPEG-4 Visual
Format profile : Streaming Video@L1
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Custom
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 1h 12mn
Bit rate : 1 218 Kbps
Width : 720 pixels
Height : 320 pixels
Display aspect ratio : 2.25
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.176
Stream size : 629 MiB (90%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)

Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Codec ID : 55
Codec ID/Hint : MP3
Duration : 1h 12mn
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 66.2 MiB (9%)
Alignment : Aligned on interleaves
Interleave, duration : 67 ms (2.00 video frames)
Interleave, preload duration : 504 ms
Writing library : LAME3.98r
Encoding settings : -m j -V 4 -q 2 -lowpass 17 -b 128

poisondeathray
21st September 2009, 15:22
There is nothing to remove. It is a 2.25 DAR, 1:1 PAR movie. The letterboxing is normal, otherwise the aspect ratio would be off. You can instruct your media player to stretch to fit, but the aspect ratio will be skewed (circles will look like ovals..etc..)

Keiyakusha
21st September 2009, 15:26
If red is your video, blue is your screen, then black bars are normal. All you can do is overcrop or stretch your video but this is not good idea.
http://www.weepic.com/out.php/i10440_1.png

If you using KMPlayer with EVR custom renderer on win7 - it adds some black bars to the video, this a bug in KMPlayer...

farmdve
21st September 2009, 16:03
It appears on BSPlayer,MPC-HC and maybe even VLC.

EDIT: Ok, so how do i change the aspect ratio?

Keiyakusha
21st September 2009, 16:45
farmdve
First is your video. You can stretch (2nd) or crop (3rd) it.

http://www.weepic.com/out.php/i10442_2.png

CWR03
22nd September 2009, 01:16
Use MPC and have it stretch the video to fill the screen.

farmdve
22nd September 2009, 04:28
I don't really mind the black lines when watching movies and such, i just wanted when converting a movie for a phone(320x240) those black lines to not be there

mgh
22nd September 2009, 04:58
maybe you would like to take a look at this
http://forum.doom9.org/showthread.php?t=141190&highlight=cinerama
which might give you a compromise between bad distortion and letterboxing without sides being cropped out.

farmdve
22nd September 2009, 16:32
@mgh i didnt understand that.

Anyway Keiyakusha explained why there are these letterboxes.. Another thing: When i use avisynth's resizer LancozResize and resize the video to 320x240 it goes from 16:9 to 4:3. How do i keep the original aspect ratio? Aka WITH the bars?

Keiyakusha
22nd September 2009, 17:06
farmdve
Not sure if I understand you right, but if your source video is 720x320, you should resize it to something close to 320x142. I like 320x144 because of mod16 height. If you want to have actual borders, you should add something like Addborders(0,98,0,98) after resizing.

farmdve
27th September 2009, 09:19
farmdve
Not sure if I understand you right, but if your source video is 720x320, you should resize it to something close to 320x142. I like 320x144 because of mod16 height. If you want to have actual borders, you should add something like Addborders(0,98,0,98) after resizing.

I searched google but it didn't give any definitive answers to what mod16 is. So, what is mod16?

MatLz
27th September 2009, 10:58
Resolution called 'Mod16' is a resolution you can divide its height and width values by 16 and give you an entire number.
Examples: 160/16=10, 176/16=11, 320/16=20, 592/16=37.....

farmdve
27th September 2009, 17:24
Resolution called 'Mod16' is a resolution you can divide its height and width values by 16 and give you an entire number.
Examples: 160/16=10, 176/16=11, 320/16=20, 592/16=37.....

I still didn't get it
When you divide a resolution like that it gives a small number which can't be used on a video
I've never seen a video with 11x20 for an example

MatLz
27th September 2009, 18:04
Maybe cause my bad english...:(
But maybe 99.999% of people have understood...:)

SeeMoreDigital
27th September 2009, 18:24
Here is big info on the movie

General
Complete name : D:\Downloads\movie.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 700 MiB
Duration : 1h 12mn
Overall bit rate : 1 355 Kbps
Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library : VirtualDubMod build 2178/release

Downloads... that's a bit of an obvious rule 6 violation!

farmdve
27th September 2009, 19:03
Downloads... that's a bit of an obvious rule 6 violation!



I don't think having a folder like that is a problem.
Freeware is free, no?
I have removed it from the main post so the problem(if any) should be removed

Guest
27th September 2009, 19:21
Closed for rule 6. Don't do it again or strikes will follow.