how to crop black bars in movies on the fly?

Vincenzo Di Massa hawk78_it at yahoo.it
Tue Apr 12 14:41:56 UTC 2005


Just lanuch mplayer with the "-vf cropdetect" option an let it run for a 
little while... (about 20 secs )
When you exit it does print something like: ( -vf crop=x,y,dx,dy ).

Just launch mplayer using  -vf crop=x,y,dx,dy.

You can write a script that automates the thing.

Ciao.
Vincenzo.

It does print the 
Alle 15:00, martedì 12 aprile 2005, Horst Schlonz ha scritto:
> Am Dienstag, den 12.04.2005, 07:31 -0400 schrieb Michael R Head:
> > On Tue, 2005-04-12 at 13:05 +0200, Horst Schlonz wrote:
> > > some movie files have black bars encoded in. this sucks.
> > >
> > > i know the mplayer video-filters "cropdetect" and "crop" but they are
> > > not user friendly. is there an ubuntu-way to crop the black bars on the
> > > fly, so movies are played nice on non standard display aspect ratios?
> >
> > I use totem to view my video files. When a video's aspect ratio isn't
> > detected properly, I keep pressing 'a' until it looks right. Perhaps
> > this will help you, too.
>
> no, that's not what i meant.
>
> look, my display has a 16:10 aspect ratio but movies are often encoded
> for 4:3, hence the black bars. those movies are scaled to fullscreen
> keeping the correct aspect ratio but the consequence are black bars not
> only above and beneath but also left and right of the movie. pressing
> 'a' in totem removes the bars left and right but then the movie is
> squeezed like scholle.
>
> cropping the bars away solves the problem and i'm looking for an easy
> way to do this.




More information about the ubuntu-users mailing list