To playback video in mplayer in different sizes, just use this command:
4.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf scale=960:720 Listening\ to\ the\ radio\ in\ Syria.\ This\ guy\ is\ very\ chill.-ncMhr.mp4 |
This is what does the trick.
-vf scale=960:720 |
This will scale up a small frame size video to a higher size. This is good if you are playing video on the framebuffer console with mplayer and you want to be able to see the video in a larger size. Just add your user to the video group in the /etc/group file to be able to play video on the virtual consoles. I have found that if I scale video to too high of a resolution it will not display video, so do not scale to an absurd value.
mplayer -vf scale=960:720 my.avi -flip |
This will play the video upside down. Cool trick to show people.
This example will zoom into the lower right corner of the video.
4.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf crop=606:341:659:379 Listening\ to\ the\ radio\ in\ Syria.\ This\ guy\ is\ very\ chill.-ncMhr.mp4 |
Crop close to the center of the video frame.
4.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf crop=606:341:0:179 Listening\ to\ the\ radio\ in\ Syria.\ This\ guy\ is\ very\ chill.-ncMhr.mp4 |
Draw a rectangle on the video to see where the cropping will occur. You may then use the value with -vf crop.
4.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf rectangle=640:480:190:30 Listening\ to\ the\ radio\ in\ Syria.\ This\ guy\ is\ very\ chill.-ncMhr.mp4 |
Another way.
Start MPlayer on the video you want to crop, with the rectangle filter and the special keybindings configuration you’ve just created:
4.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf rectangle -input conf=crop myvideo.avi |
A white rectangle will frame the entire video; use the numeric keypad (keys 2, 4, 6 and 8) to resize the rectangle and the arrow keys to move it on the region you want to crop. When you’re done, stop MPlayer; it will have written the current size and position of the rectangle on its standard output:
rectangle: -vf rectangle=240:160:190:30 |
Now you just have to use these values in the FFmpeg command line to crop the desired region.
For more information: see the mplayer man page and the tech/slave.txt file in MPlayer’s documentation.