Why Mpv Load Files Again When It Is in Loop
At that place are no shortage of media players for Linux. The majority of Linux distributions come with at to the lowest degree 1 histrion pre-installed and offering a few more in the repositories. One of the about popular open source media players is Mplayer, a command-line application with several graphical front-ends (SMPlayer is one of them). Information technology's a powerful app that supports many audio and video formats, likewise as capturing video and audio output, saving streamed content to a file, decoding subtitles, and transcoding (converting) between formats.
Mplayer was previously forked into mplayer2 which brought upgrades and new features, simply it'south no longer actively developed. Luckily, a new fork emerged, and it'south chosen mpv. This media player is costless, open source and cantankerous-platform. It brings many configuration options, optimized and cleaned-up lawmaking, and the ability to convert multimedia files direct in the player.
Mpv tin exist installed on Windows, Bone Ten and Linux. The official website offers packages for download, and if your distribution is not supported, you can obtain the source and compile it.
Mpv is a command-line application. To start using it, only type the following control in the concluding:
To play a unmarried audio file, only navigate to it (or enter the total path) and blazon its name after mpv
to play it. Y'all can command mpv with keyboard shortcuts; for example, pressing Infinite pauses a song, arrow keys rewind it backward or frontwards, and / and * keys control the volume. The total list of mpv keyboard shortcuts can be constitute in the user manual.
To play all media files in a folder, just write the binder name followed past an * sign:
If yous desire to randomize the order in which they're played, but add the --shuffle
pick:
mpv --shuffle /folder-path/*
Mpv as well supports different kinds of playlists, and you can load a playlist with the command:
mpv --playlist=filename.pls
To actuate the gapless audio choice, add together the --gapless-audio
flag.
mpv --gapless-audio --playlist=filename.pls
When you want to keep mpv opened fifty-fifty after it's finished playing, utilize either --idle
or --proceed-open
.
User Settings
Adding all these options every fourth dimension y'all employ mpv might be impractical. The solution is to edit the configuration file to customize mpv according to your needs. The settings for each user are saved in "/home/$USER/.mpv/config", while those affecting the whole system become into "/etc/mpv". User-specific settings have priority over the organisation-wide ones, so you only take to edit the configuration file for your user.
Lines starting with # are commented, which ways that these options are disabled. To enable them, merely remove the # symbol and salve changes. To add options which are not listed, write them each in a separate line according to the post-obit scheme:
--option
becomes simply pick
-option VALUE
becomes option=VALUE
; same for --choice VALUE
(becomes option=VALUE
)
-option "name"
becomes choice="name"
To meet all available options and features, use the command:
or
You can also create carve up configuration files for audio and video files. For example, if you have a picture show (with proper noun "film1.avi") which you lot want to play in fullscreen and without audio, you could create a file called "film1.avi.conf" and salvage information technology in your "/habitation/$USER/.mpv" binder with options --no-audio
and --fullscreen
enabled.
When playing video files, mpv has a small graphical control surface area called the OSD bar. You lot tin disable it with the --no-osd-bar
or --osd-level=0
flag, and customize its font, size, color and position in the mpv configuration file.
Information technology's possible to make mpv behave like a GUI application by always displaying the video window, even when playing audio-only files. This is done using the --force-window
choice. To prevent other windows from stealing mpv'due south focus, you can use the --ontop
option.
Although it looks different from other media players, mpv stacks up to your "regular" player. You can use information technology to tune into TV and radio channels, stream content directly from the Internet and apply various audio and video filters (for example, remove a Telly station logo, rotate or mirror the screen…). The learning curve might be too much for some users, only mpv is worth trying, because it's quick, lightweight and feature-packed.
What's your favorite media player? Leave a recommendation in the comments.
Is this article useful?
Subscribe to our newsletter!
Our latest tutorials delivered direct to your inbox
salgadothaventinsom.blogspot.com
Source: https://www.maketecheasier.com/mpv-cli-media-player/
Post a Comment for "Why Mpv Load Files Again When It Is in Loop"