Active Topics

 


Reply
Thread Tools
Posts: 76 | Thanked: 6 times | Joined on Apr 2007
#1
Is there a command or anyway to make mplayer automatically crop the videos so the fit the screen entirely?. For example ther are movies which are wider than the n800 screen so you see black bars at the top and bottom of the screen, Id like to know if there is a way to "zoom" the video until it fits the screen (obviously without converting the video myself using a video tool). With smplayer you can zoom the video but its very unstable, most of the time it hangs the device.

Thanks
 
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#2
mplayer -vop crop=w:h:x:y <filename>

also try

mplayer -vop expand=w:h:x:y <filename>
(expand stretches the video rather than cropping it)

Where "w" is the width of the screen, "h" is the height, and "x" and "y" are the off-set from the upper left corner of the image

There should be a way to do this automatically... let me check

Check the MPlayer manual page for more info: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 

The Following User Says Thank You to josiahg777 For This Useful Post:
ace's Avatar
Posts: 296 | Thanked: 80 times | Joined on Dec 2007
#3
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 2 Users Say Thank You to ace For This Useful Post:
Posts: 76 | Thanked: 6 times | Joined on Apr 2007
#4
Thank you guys, exactly what I was looking for!. Josiah, the crop command worked perfectly but I couldnt manage to get the expand command to work, when I tried it, it only made the video really small and thats it, I couldnt change the size of the video. Well nevermind.
It would be great to do this automatically, maybe a program with some kind of gui. Like I said the onlyone I tried (the olny one I know) was smplayer, but it only hungs the device.
Let me know if you find a way of doing this automatically.

Thanks
 
Posts: 5 | Thanked: 0 times | Joined on Sep 2009
#5
hm...
usually for cropping video I use VidCrop PRO...
 
joppu's Avatar
Posts: 780 | Thanked: 855 times | Joined on Sep 2009 @ Helsinki, Finland
#6
Nice one, jook, you just bumped a 2 years old thread...
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:37.