Confronting the vexing presence of unpleasant black bars encroaching upon your cherished video content material generally is a irritating expertise. Happily, for these searching for an answer on the Ubuntu platform, the highly effective and versatile MPV media participant affords a easy but efficient means to eradicate these visible distractions, restoring your viewing expertise to its full glory. By harnessing the capabilities of this open-source software program, you may effortlessly crop away the black bars, unlocking a seamless and immersive cinematic expertise.
To embark on this transformative course of, launch the MPV media participant and open the video file tormented by black bars. As soon as the video commences playback, press the “a” key to entry the on-screen controls. Navigate to the “View” tab and find the “Crop” possibility. By default, the “Crop” setting will likely be set to “Auto,” which can not at all times yield the specified outcomes. To manually regulate the crop parameters, choose “Customized” from the dropdown menu. This may reveal a set of numerical fields that assist you to fine-tune the crop dimensions.
For optimum outcomes, begin by setting each the “Left” and “Proper” crop values to zero. This may eradicate any cropping on the left and proper sides of the video body. Subsequent, regulate the “High” and “Backside” crop values to take away the black bars from the highest and backside of the body. You may both enter particular pixel values or use the visible guides supplied by the participant to find out the suitable crop settings. As soon as you’re happy with the outcomes, click on the “Apply” button to save lots of the modifications. The black bars will immediately vanish, revealing the total splendor of your video content material, free from any visible obstructions.
Opening the MPV Settings Menu
To open the MPV settings menu, you should utilize one of many following strategies:
- Press the “o” key in your keyboard.
- Proper-click on the participant and choose “Settings” from the menu.
- Click on on the “Settings” button within the participant’s toolbar (if seen).
Utilizing the Keyboard Shortcut
The quickest technique to open the MPV settings menu is to press the “o” key in your keyboard. This may instantly open the menu, permitting you to rapidly make changes to the participant’s settings.
Utilizing the Context Menu
For those who want to make use of the mouse, you may right-click on the participant and choose “Settings” from the context menu. This may open the settings menu in a brand new window, the place you may make modifications to the participant’s settings.
Utilizing the Toolbar Button
Some MPV skins embody a “Settings” button within the participant’s toolbar. In case your pores and skin consists of this button, you may merely click on on it to open the settings menu. It is a handy technique to entry the settings menu with out having to make use of the keyboard or context menu.
Methodology | Description |
---|---|
Keyboard Shortcut | Press the “o” key in your keyboard. |
Context Menu | Proper-click on the participant and choose “Settings” from the menu. |
Toolbar Button | Click on on the “Settings” button within the participant’s toolbar (if seen). |
Enabling the Deinterlace Possibility
Deinterlacing is a way used to take away the black bars that seem above and under a video when it’s performed on a show with a distinct side ratio. This may be significantly helpful for watching movies on a widescreen monitor or TV.
To allow the deinterlace possibility, open mpv and navigate to the “Playback” menu. Choose “Deinterlace” and select one of many out there choices, equivalent to “Auto,” “Yadif,” or “Bob.”
Deinterlace Choices
Here’s a desk of the out there deinterlace choices in mpv:
Possibility | Description |
---|---|
Auto | Routinely detects and selects one of the best deinterlacing possibility based mostly on the video content material. |
Yadif | A high-quality deinterlacing algorithm that produces clean, natural-looking outcomes. |
Bob | A quick, light-weight deinterlacing algorithm that’s appropriate for low-resolution movies. |
Mix | A easy deinterlacing algorithm that blends the 2 interlaced fields collectively. |
Movement-Adaptive | A posh deinterlacing algorithm that analyzes the video content material to find out the easiest way to take away interlacing artifacts. |
After getting chosen the specified deinterlace possibility, click on the “OK” button to save lots of your modifications.
Configuring the Cropping Parameters
The cropping parameters might be configured utilizing the --crop
possibility. It takes the next format:
“`
–crop=
“`
Right here,
left
: The variety of pixels to crop from the left fringe of the video.high
: The variety of pixels to crop from the highest fringe of the video.proper
: The variety of pixels to crop from the suitable fringe of the video.backside
: The variety of pixels to crop from the underside fringe of the video.- Open the Mpv settings menu by clicking on the gear icon within the bottom-right nook of the participant.
- Navigate to the “Video” tab.
- Below the “Crop” part, you will see two fields: “Left” and “Proper.”
- Enter the specified crop ratios for the left and proper sides of the video.
- Click on “Apply” to save lots of your modifications.
- Open the MPV configuration file by working the next command within the terminal:
- Discover the “crop” property within the configuration file. It needs to be positioned within the “video” part.
- Edit the “crop” property to the specified values. The format for the “crop” property is:
- The place:
- Save the configuration file.
- Reload the MPV configuration by working the next command within the terminal:
- The cropping configuration will now be utilized to all future video playback classes.
- You can even use the “–crop” possibility when launching MPV to specify the cropping parameters.
- For instance, to crop a video to the left half of the display, you may run the next command:
- For instance, to crop 20 pixels from the left and proper sides and 10 pixels from the highest and backside, use the next crop parameter:
- Click on "Apply" after which "Shut".
- The video will now be displayed with cropped black bars.
- You can even use the next keyboard shortcuts to crop black bars:
- Superior Cropping Choices
- Open Mpv and begin taking part in the video you need to crop.
- Press the “o” key to open the OSD menu.
- Navigate to the “Crop” part.
- Use the arrow keys to regulate the crop settings.
- Press the “Enter” key to save lots of your modifications.
- “[“ and “]” to crop the left and proper sides of the video.
- “{“ and “}” to crop the highest and backside of the video.
- “,” and “.” to zoom out and in of the video.
For instance, to crop 10 pixels from the left, 20 pixels from the highest, 30 pixels from the suitable, and 40 pixels from the underside, you’ll use the next command:
“`
mpv –crop=10:20:30:40 video.mp4
“`
Choices | Description | Instance Utilization |
---|---|---|
--crop-y |
Crops the video vertically. | mpv --crop-y=10:20 video.mp4 |
--crop-x |
Crops the video horizontally. | mpv --crop-x=10:20 video.mp4 |
--vf=crop=w:h:x:y |
Customizes the cropping parameters utilizing the libavfilter syntax. | mpv --vf="crop=10:20:30:40" video.mp4 |
Setting the Crop Ratio
To set the crop ratio, you should utilize the settings menu or the keyboard shortcuts. Here is do it utilizing the settings menu:
You can even use the keyboard shortcuts to set the crop ratio:
Shortcut | Motion |
---|---|
Ctrl + 1 | Crop the left aspect of the video by 10% |
Ctrl + 2 | Crop the suitable aspect of the video by 10% |
Ctrl + 3 | Reset the crop |
After getting set the crop ratio, the black bars will likely be faraway from the video and the side ratio will likely be adjusted accordingly.
Customizing the Cropping Dimensions
To customise the cropping dimensions, you should utilize the --crop
possibility. This feature takes 4 parameters: the left, proper, high, and backside margins. You may specify the margins in pixels or as a share of the video’s width and peak. For instance, the next command crops the video to take away the black bars from the left and proper sides:
mpv --crop-left=10% --crop-right=10% some-video.mp4
You can even use the --crop-percentage
choice to specify the crop dimensions as a share of the video’s unique dimension. For instance, the next command crops the video to take away 10% of the width and peak from all sides:
mpv --crop-percentage=10% some-video.mp4
The next desk summarizes the completely different choices you should utilize to customise the cropping dimensions:
Possibility | Description |
---|---|
--crop |
Crop the video to the desired margins |
--crop-left |
Crop the left margin of the video |
--crop-right |
Crop the suitable margin of the video |
--crop-top |
Crop the highest margin of the video |
--crop-bottom |
Crop the underside margin of the video |
--crop-percentage |
Crop the video to the desired share of its unique dimension |
Saving the Cropping Configuration
To save lots of the cropping configuration, you should utilize the next steps:
$ mpc config save filename.conf
crop=
Parameter | Description |
---|---|
left |
The gap from the left fringe of the video to the left fringe of the crop space, in pixels. |
high |
The gap from the highest fringe of the video to the highest fringe of the crop space, in pixels. |
width |
The width of the crop space, in pixels. |
peak |
The peak of the crop space, in pixels. |
$ mpc load filename.conf
$ mpv –crop=0,0,50%,100% filename.mp4
Viewing Content material with Cropped Black Bars
To view content material with cropped black bars in MPV on Ubuntu, you should utilize the next steps:
1. Open MPV video participant.
2. Proper-click on the video and choose “Properties”.
3. Within the “Output” tab, choose “Video” from the “Filter” dropdown menu.
4. Examine the “Crop” checkbox.
5. Specify the crop parameters within the “Crop” discipline. You should utilize the next syntax:
left:proper:high:backside
20:20:10:10
* Ctrl + F to crop from the left aspect.
* Ctrl + G to crop from the suitable aspect.
* Ctrl + H to crop from the highest aspect.
* Ctrl + J to crop from the underside aspect.
MPV affords superior cropping choices that assist you to fine-tune the crop parameters. These choices embody:
Parameter | Description |
---|---|
crop-left | Units the variety of pixels to crop from the left aspect. |
crop-right | Units the variety of pixels to crop from the suitable aspect. |
crop-top | Units the variety of pixels to crop from the highest aspect. |
crop-bottom | Units the variety of pixels to crop from the underside aspect. |
crop-relative | Specifies whether or not the crop parameters are relative to the video’s decision. |
crop-x | Specifies the X coordinate of the crop space’s top-left nook. |
crop-y | Specifies the Y coordinate of the crop space’s top-left nook. |
crop-w | Specifies the width of the crop space. |
crop-h | Specifies the peak of the crop space. |
By utilizing these superior cropping choices, you may exactly regulate the cropped space to fit your viewing preferences.
How To Crop Blackbars Mpv Ubuntu
Black bars are sometimes added to movies to make them match a sure side ratio, equivalent to 16:9. Nonetheless, if you don’t need these black bars, you may crop them out utilizing Mpv. Here is how:
You can even use the next keyboard shortcuts to crop black bars:
Individuals Additionally Ask About How To Crop Blackbars Mpv Ubuntu
How do I do away with black bars in Mpv?
You may do away with black bars in Mpv by cropping them out. To do that, press the “o” key to open the OSD menu, navigate to the “Crop” part, and use the arrow keys to regulate the crop settings.
How do I crop black bars on the perimeters of a video in Mpv?
To crop black bars on the perimeters of a video in Mpv, press the “[“ and “]” keys to regulate the left and proper crop settings.
How do I crop black bars on the highest and backside of a video in Mpv?
To crop black bars on the highest and backside of a video in Mpv, press the “{“ and “}” keys to regulate the highest and backside crop settings.