DADAMAJA 3 Posted March 1, 2023 Author Share Posted March 1, 2023 So far I have come up with the following. Looking for the best way to expand stereo to surround and spread to center. ##Conditional Auto Profiles## [profile_for_music_files] profile-desc="profile for music files" profile-cond=(filename:match"%.mp3$" or filename:match"%.flac$") ~= nil af=lavfi=[anequalizer=c0 f=31.25 w=100 g=-0.60 t=1|c1 f=62.5 w=100 g=-3.72|c2 f=125 w=100 g=-2.52|c3 f=250 w=100 g=-1.92|c4 f=500 w=100 g=-2.40|c5 f=1000 w=100 g=-2.52|c6 f=2000 w=100 g=-2.76|c7 f=4000 w=100 g=0.96|c8 f=8000 w=100 g=0.84|c9 f=16000 w=100 g=1.92] Link to comment Share on other sites More sharing options...
generiq 113 Posted March 2, 2023 Share Posted March 2, 2023 (edited) I would use the surround filter for that: https://ffmpeg.org/ffmpeg-filters.html#surround And audio properties for setting the condition https://mpv.io/manual/master/#command-interface-audio-codec And add channel count as stereo. You don't want 5.1 flac being remixed Edited March 2, 2023 by generiq Link to comment Share on other sites More sharing options...
generiq 113 Posted March 2, 2023 Share Posted March 2, 2023 Your entry for audio device needs to use the name not the hex. The hex will change, the name won't I should probably check your mpv.conf Link to comment Share on other sites More sharing options...
generiq 113 Posted March 2, 2023 Share Posted March 2, 2023 So something like this: audio-device=wasapi/AMD HDMI Output (AMD High Definition Audio Device) [Stereo to surround] profile-cond=(p["audio-codec-name"]=="flac" or p["audio-codec-name"]=="mp3") and p["audio-params/channel-count"]==2 af=surround=chl_out=5.1 The auto-profiles are always at the bottom of the conf So only stereo mp3 and stereo flac would be filtered to surround Link to comment Share on other sites More sharing options...
generiq 113 Posted March 2, 2023 Share Posted March 2, 2023 (edited) Or are you wanting all channels to output the exact same sound? If yes, just use the upmix option in the Theater settings. Which uses pan: https://ffmpeg.org/ffmpeg-filters.html#pan-1 Edited March 2, 2023 by generiq Link to comment Share on other sites More sharing options...
DADAMAJA 3 Posted March 2, 2023 Author Share Posted March 2, 2023 Thanks for the tips. I changed the audio-device to what you suggested and set my profile like following: [Upmix_and_EQ_Music] profile-desc="Upmix music to 7.1 and EQ" profile-cond=(p["audio-codec-name"]=="flac" or p["audio-codec-name"]=="mp3") and p["audio-params/channel-count"]==2 af=surround=chl_out=7.1 af-add=superequalizer=1b=[10]:2b=[10]:3b=[10]:4b=[10]:5b=[10]:6b=[10]:7b=[10]:8b=[10]:9b=[10]:10b=[10]:11b=[10]:12b=[10]:13b=[10]:14b=[10]:15b=[18]:16b=[15]:17b=[20]:18b=[15] I am playing around with the superequilizer and it all seems to be working like I want it. Thank a million for all of your help. Hopefully this thread will help someone out in the future. 1 Link to comment Share on other sites More sharing options...
generiq 113 Posted March 2, 2023 Share Posted March 2, 2023 (edited) Groovy. Remember that it will affect all files that have matching audio. So if a movie has stereo flac, it will filter that audio, too. Which, I imagine, will be a good thing. Edited March 2, 2023 by generiq Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now