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

3

8

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?

Clem answered 14/3, 2015 at 21:54 Comment(0)
W
10

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.

Whizbang answered 6/8, 2016 at 17:13 Comment(1)
I prefer --audio-display=no over --no-video because with this option you still get video for files like *.mp4Pallas
U
8

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.

Urbanize answered 27/3, 2015 at 21:33 Comment(0)
H
0

The shortest option I can find appears to be -vid=no: $ mpv -vid=no song.flac.

Variants include -vid no, --vid=no, --video=no, -no-vid and --no-video.

-vid=0 may seem like it works, but the thumbnail shows up again after a track change.

Tested on Ubuntu 22.04 only.

Holly answered 12/12, 2023 at 0:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.