Log in

View Full Version : MPC-HC Play Video with Different Audio File


MysteryX
18th March 2019, 05:39
Is it possible to play a video in MPC-HC, and play the audio from a separate file?

What I'm currently doing is playing a video through an Avisynth script that loads the video and tune the audio to 432hz.

What I'd like to do is play the video normally in the player, and play only the audio through the Avisynth file. Is it possible?

I'm also looking at PotPlayer and I see it has a "Load External Audio" option; but on my first try its codecs aren't performing well.

MPC-HC does auto-load all file extensions with the same name, so I could force it to load the audio using Avisynth Virtual File System and exposing the audio to be loaded next to the video file. Is there a simpler way?

stax76
18th March 2019, 08:36
I think yes, see main menu > Help > Command Line > /dub

I couldn't find it in the GUI, for a programmer it can be added to mpv.net's GUI relatively easy by editing the input.conf file and add a script to handle the command, mpv.net support 4 scripting languages (Lua/JavaScript/C#/Python), it's probably not more than 10 Lines code.

sneaker_ger
18th March 2019, 10:10
In MPC-HC:
"File"->"Open File/URL". Put the audio file in the second field.

MysteryX
18th March 2019, 13:17
ok good. Can this cause audio sync issues?

How can I open the audio via API? (either the native API or the web API)