You are not logged in.

#1 2015-10-03 17:47:46

lmello
Member
From: Brazil
Registered: 2012-11-06
Posts: 300

mpv --force-window - change background when playing audio files?

Is it possible to change the background when mpv is playing an audio file when the --force-window option is set to 'yes' ?


Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.

Offline

#2 2015-10-03 17:55:50

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: mpv --force-window - change background when playing audio files?

Nope. If there is one, the audio file's built-in cover art will be shown, otherwise you get blackness. A feature request is open at mpv's github, but it's low priority: https://github.com/mpv-player/mpv/issues/869

Offline

#3 2015-10-03 18:40:02

nonfictive
Member
Registered: 2015-10-03
Posts: 19

Re: mpv --force-window - change background when playing audio files?

it depends if you are using youtube-dl you can do youtube-dl --extract-audio --audio-format mp3 which will just download the mp3 then you could use ffmpeg
to add a thumbnail.

Offline

#4 2015-10-04 18:49:03

lmello
Member
From: Brazil
Registered: 2012-11-06
Posts: 300

Re: mpv --force-window - change background when playing audio files?

Gusar wrote:

Nope. If there is one, the audio file's built-in cover art will be shown, otherwise you get blackness. A feature request is open at mpv's github, but it's low priority: https://github.com/mpv-player/mpv/issues/869

I noticed it by accident... is it possible to create a mpv profile that always shows a image - say 'cover.jpg' - located at the same directory as the audio file?


Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.

Offline

#5 2016-07-13 18:55:34

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: mpv --force-window - change background when playing audio files?

Apologies for bumping an old thread, but there's now a very cool thing in mpv. ffmpeg has audio visualization filters, and mpv can make use of them by creating a complex filter graph. For example, I like this one:

mpv --lavfi-complex='[aid1] asplit [ao] [v] ; [v] showwaves=mode=line:split_channels=1 [vo]' some_music.mp3

Look for "show" filters in ffmpeg's documentation to see which visualizations are available and how to configure them: http://ffmpeg.org/ffmpeg-filters.html#showfreqs

Offline

#6 2026-05-08 07:44:33

golk
Member
Registered: 2026-04-18
Posts: 2

Re: mpv --force-window - change background when playing audio files?

Gusar wrote:

Apologies for bumping an old thread, but there's now a very cool thing in mpv. ffmpeg has audio visualization filters, and mpv can make use of them by creating a complex filter graph. For example, I like this one:

mpv --lavfi-complex='[aid1] asplit [ao] [v] ; [v] showwaves=mode=line:split_channels=1 [vo]' some_music.mp3

Look for "show" filters in ffmpeg's documentation to see which visualizations are available and how to configure them: http://ffmpeg.org/ffmpeg-filters.html#showfreqs


Thanks it really shows me a new way to do things. this is the only way you can have a crossplatform transparent background `mpv`.

Offline

#7 2026-05-08 09:44:19

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,510
Website

Re: mpv --force-window - change background when playing audio files?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB