Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you open an audio file in mpv using the terminal without the album art opening along with it?

I have an arch linux based ditro and I'm trying to open up an audio file (mp3 and flac files) in the terminal using the following command:

$ mpv song.flac

If the audio file doesn't contain any album art, it opens up in the terminal and starts playing like I want it to. When the audio file does have album art though, it opens up a new window displaying the album art while playing the song. Is there a command I can enter or a setting I can change so I can play my audio files in the terminal without a new window being opened to display the album art?

like image 406
nichii1923 Avatar asked Mar 14 '15 21:03

nichii1923


People also ask

How do I run an MPV from terminal?

To play a single audio file, just navigate to it (or enter the full path) and type its name after mpv to play it. You can control mpv with keyboard shortcuts; for example, pressing Space pauses a song, arrow keys rewind it backward or forward, and / and * keys control the volume.

How do I open a mp3 file in Linux terminal?

Just go to the folder containing the MP3 files that you want to play and type mpg123 *. mp3. You can also load a playlist file and use the *-z* option on the command line to shuffle the tracks you want to play.


2 Answers

mpv comes with a flag to disable the display of cover art:

$ mpv --audio-display=no song.flac

does just what you want.
See the relevant documentation here.

like image 59
jottr Avatar answered Dec 30 '22 15:12

jottr


If you browse the "Video" section of the man page for mpv, you will see this very near the top:

−−no−video
Do not play video. With some demuxers this may not work. In those cases you can try −−vo=null instead.

like image 24
Daniel Wagner Avatar answered Dec 30 '22 16:12

Daniel Wagner