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,605

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,605

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

Board footer

Powered by FluxBB