5/31/2023 0 Comments Mplayer rotate video 90Optionally, I want it to be as wide as the height of the original video. So what I want to do now, first and foremost, is rotate it 90 degrees and make it look like this.īasically, I want the result to be as tall as the width of the original video. When playing it on my computer and in any of the video editors available on linux, it looks like this. You can also use -vf flip and -vf mirror to flip the image upside-down and rotate it on the Y axis, respectively.I shot a video with my phone in portrait orientation (vertically), which now I need to edit to make it fit properly in a landscape (horizontal) layout. You may also set rotate equal to four through seven however that will only perform the above rotations provided the video geometry is portrait instead of landscape. Rotate 90 degrees counterclockwise and flip. Rotate 90 degrees clockwise and flip (default). Table 3-2 lists the different values and their functions: You may also set the rotate option equal to zero through three to adjust how the image rotates. With the -vf rotate option, MPlayer will rotate the image ninety degrees clockwise and flip it. This may seem like a strange option to have, unless perhaps you have a tablet-style laptop or other display device that neither Linux nor MPlayer will detect properly. The -cache option allows you to configure how large a cache to use, so to increase the cache to 8 MB, type: $ mplayer -cache 8192 For local files this works fine however when playing streaming video, particularly over a slow link, you might find you run out of cache too quickly and then have to wait as the video chugs through a bit at a time. Increase the Cache for Streaming Videoīy default, MPlayer uses a 1 MB disk cache to store video it is displaying. Of course, since I want the -monitoraspect option on at all times on my laptop, I just add monitoraspect=5:3 to my ~/.mplayer/config file. To play a DVD full screen with the proper aspect ratio, I would run: $ mplayer dvd://1 -fs -monitoraspect 5:3 To fix this, pass the -monitoraspect option to mplayer along with the aspect ratio.įor instance, my laptop has a wide screen with max resolution of 1280 x 768, or 5:3 aspect ratio. Since most computer monitors have this aspect ratio, the default is fine, but if you have a widescreen flat panel, the full screen mode will look stretched, particularly on 16:9 or anamorphic videos. Note that software scaling can really bog down a CPU, so only use it if you have a fast processor.īy default, MPlayer will scale a video to full screen as if the screen had a 4:3 aspect ratio. In the case of video output arguments such as X11 that rely on software scaling, you will also have to add the -zoom option to turn on software scaling (or add zoom=true to the MPlayer config file). Once video playback has started, you can hit the f key to toggle the full screen setting within MPlayer, but if you already know you want to immediately display in full screen mode, just pass the -fs option to mplayer (or fs=true in the MPlayer config file). You can override any of these config settings from the command line as well, so even if vo = xv is in the config file, if you type -vo x11 on the command line, MPlayer will use the X11 video output option. If you want to set the default -vo option to xv, edit ~/.mplayer/config and add the line (or edit the line if it already exists): vo = xvįrom that point on, MPlayer will behave as if -vo xv were on the command line every time. The format of this config file is pretty simpletake an mplayer command-line argument, remove the leading -, and set it equal to its setting with the = symbol.įor instance, if you read through the different display options you can set in MPlayer with the -vo option in, you might want to change the default video output option for MPlayer permanently. By default, MPlayer has a global config file in /etc/mplayer/nf, and a local config file for each user in ~/.mplayer/config that overrides the global config. Basically, all of these options can also be set in the MPlayer config file. In this hack, I cover a number of different command-line arguments that you can use to tweak MPlayer. If you are new to MPlayer, wading through all of these options might leave you a bit cross-eyed, so in this hack I will point out some of the more commonly used advanced options and show you how to set up the MPlayer config file to save many of them. touched on the basics of multimedia playback using MPlayer, but one look at the MPlayer manpage tells you that MPlayer is much more than that. You can even store many of these tweaks to the MPlayer configuration file and save yourself from tons of command-line arguments. There are a number of advanced tweaks you can use to get the most out of MPlayer.
0 Comments
Leave a Reply. |