You are not logged in.

#1 2022-06-15 15:40:39

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

[SOLVED] mpv stopped playing audio when audio is separate

I usually download audio and video separately from YT and then use 'mpv' to play both.
I put both files in a folder and when I start the video with 'mpv' it automatically plays the audio too.
But after the last updates 'mpv' stopped playing the audio.

Any suggestions to get 'mpv' working again are appreciated?
Thank you in advance!

Last edited by amaro (2022-06-15 19:07:50)

Offline

#2 2022-06-15 18:33:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,248

Re: [SOLVED] mpv stopped playing audio when audio is separate

https://man.archlinux.org/man/community/mpv/mpv.1.en look for "audio-file-auto"
You can change the default behavior https://wiki.archlinux.org/title/Mpv#Configuration (option w/o the leading dashes)

Offline

#3 2022-06-15 19:07:03

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: [SOLVED] mpv stopped playing audio when audio is separate

Thank you, seth!

adding the following to the 'mpv.conf' file solves the issue.

audio-file-auto=exact

Offline

#4 2022-06-15 19:25:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,248

Re: [SOLVED] mpv stopped playing audio when audio is separate

Ftr, you're aware that mpv+yt-dlp can play youtube videos directly and you can select the codecs w/ "ytdl-raw-options" so you can just

mpv 'https://www.youtube.com/watch?v=v2AC41dglnM'

w/ your preferred codecs?

Offline

#5 2022-06-15 19:43:14

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: [SOLVED] mpv stopped playing audio when audio is separate

I knew 'mpv' can play YT videos but was not aware of that other option.
I do it the oldschool way - 'youtube-dl+aria2' to download the files and then play them with 'mpv'.
Thank you, seth!

Offline

Board footer

Powered by FluxBB