how to crop black bars in movies on the fly?

ChamPro ulist at gs1.ubuntuforums.org
Wed Apr 13 14:23:17 UTC 2005


> I have a similar problem, but want a different outcome.
>
> Unless I use -xv x11 (software zooming), my videos don't scale
> correctly (in fullscreen or windowed). Using -xv sdl or xv (hardware
> zooming), gives me distorted videos almost all the time.

Distorted? Can you be more specific? Wrong AR?

With hardware scaling, no matter what size the video is, it will
stretch it to elimanate the black bars, thereby distorted the video
from it's actual size.

> I tried changing the aspect ratio from 4:3 to 16:9 in the Mplayer
> config to no effect. And I just tried a bunch of videos using -vf
> cropdetect. The first two values in the cropdetect output are always
> different, but the second two are always 8:8.
>
> Examples:
> crop area: X: 0..511  Y: 0..383  (-vf crop=496:368:8:8)%  4.4% 22 0
> 42%
> crop area: X: 0..623  Y: 0..351  (-vf crop=608:336:8:8)%  4.4% 2 0
48%
> crop area: X: 0..639  Y: 0..367  (-vf crop=624:352:8:8)% 11.7% 10 0
> 44%
>
> I have a ATI 9200 Mobility card in a Dell Inspiron 8600.

You question is ... ?

Is it a problem with the ATI drivers that I can't get hardware
accelerated video without distortion? I can't set the crop in the
mplayer.config since it's different for every video.


-- 
ChamPro




More information about the ubuntu-users mailing list