how to crop black bars in movies on the fly?

ZIYAD A. M. AL-BATLY zamb at spymac.com
Thu Apr 14 17:47:15 UTC 2005


On Tue, 2005-04-12 at 13:29 -0400, ChamPro wrote: 
> 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.
> 
> 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.
> 
> 
> -- 
> ChamPro
> 
(Not related to the original question, nor is a solution, but I just
want to help when possible.)

To make the aspect ratio or resizing work in MPlayer using the x11
driver you should pass the "-zoom" option too (it will be slow, though,
as it depends totally on the CPU).

Ziyad.





More information about the ubuntu-users mailing list