Skip to Content
Linux Multimedia Hacks
book

Linux Multimedia Hacks

by Kyle Rankin
November 2005
Beginner
330 pages
9h 44m
English
O'Reilly Media, Inc.
Content preview from Linux Multimedia Hacks

Crop Video During Playback

Get rid of those annoying black bars at the top and bottom of movies using special features from MPlayer.

For the longest time, I was living in a 4:3 aspect ratio world and I didn’t even know it. When I watched a VHS movie on the television, I didn’t know that parts of the image had been cropped or what “pan and scan” was. As I got older and DVDs came out, I noticed that they often had widescreen and fullscreen options, and I finally started to understand that movies generally have a widescreen aspect ratio (such as 5:3 or 16:9) that, when displayed correctly on a TV, results in black bars along the top and bottom.

Of course, when playing back a movie on the computer, most video players adjust their size so that all you see is the movie without any black bars (until you fullscreen the image at least). However, if you watch a VCD or SVCD (videos formatted so that they can be played off of a CD in many modern DVD players) on the computer, the black bars are part of the image and are there whether you watch at fullscreen or not. My laptop’s display has a widescreen aspect ratio (5:3) so it’s perfect for watching DVDs—especially on a plane trip—but when I play back VCD or SVCD files fullscreen, I get large black bars and an even smaller video (Figure 3-1). My widescreen display goes to waste. I found that with a few simple command-line tweaks to mplayer, however, I could crop those black bars from the top and the bottom so the video would completely fill my ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CentOS Bible

CentOS Bible

Christopher Negus, Timothy Boronczyk
Microsoft® SQL Server 2012 Unleashed

Microsoft® SQL Server 2012 Unleashed

Ray Rankins, Paul T. Bertucci, Chris Gallelli, Alex T. Silverstein

Publisher Resources

ISBN: 0596100760Errata Page