View Single Post
ace's Avatar
Posts: 296 | Thanked: 80 times | Joined on Dec 2007
#6
Originally Posted by bunanson View Post
I added "aspect=16:9" to the /etc/mplayer/mplayer.conf, instead of stretched to fill the whole screen, it shrinked to give me 4 borders. Is there any option to scale the video to fill the whole screen or having borders only at the top or bottom?
The "aspect" setting overrides the aspect ratio of the video file. Setting it to 15:9 will stretch videos to completely fill the screen, but they'll be distorted.

A video shouldn't have black borders on all four sides. The only way I can see that happening is if their are black borders encoded into the video.

If the video has black borders encoded into it, mplayer can crop them off. Run "mplayer -vf cropdetect video.avi" from a terminal. The terminal's output will show the appropriate crop parameters for that particular video.

If you want a video to fill the entire screen with no black borders and no distortion, you'll need to crop the video to 15:9. But I don't know any automagic way to do that with mplayer. The following code works, but not automagically.

For wide videos (i.e. 16:9):
"mplayer -vf crop=$((height*15/9)) video.avi"

For tall videos (i.e. 4:3):
"mplayer -vf crop=:$((width*9/15)) video.avi

You'll have to substitute the video dimensions in the appropriate places.
__________________
[SIGPIC][/SIGPIC]
 

The Following User Says Thank You to ace For This Useful Post: