Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd July 2019, 09:05   #1  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
MPC-HC Add Audio File via API

Let's say I want to open a video in MPC-HC with a separate audio file.

I can use
- "File"->"Open File/URL". Put the audio file in the second field.
- "/dub" command-line parameter
- Place the audio file next to the file being played so it auto-loads

Is there a way to do it via API, either via the C API or via the Web API?
MysteryX is offline   Reply With Quote
Old 23rd July 2019, 10:46   #2  |  Link
Klaus1189
Registered User
 
Join Date: Feb 2015
Location: Bavaria
Posts: 1,667
Put audio and videofile with the same filename in one path, double click videofile, audiofile is automatically loaded in MPC-BE, should be the same for MPC-HC.
Klaus1189 is offline   Reply With Quote
Old 23rd July 2019, 13:09   #3  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Quote:
Originally Posted by Klaus1189 View Post
Put audio and videofile with the same filename in one path, double click videofile, audiofile is automatically loaded in MPC-BE, should be the same for MPC-HC.
That's the 3rd option I wrote but doesn't answer the question
MysteryX is offline   Reply With Quote
Old 23rd July 2019, 15:58   #4  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
I was just reading MpcApi.h and what you are looking for is not available it seems.
stax76 is offline   Reply With Quote
Old 23rd July 2019, 17:02   #5  |  Link
Klaus1189
Registered User
 
Join Date: Feb 2015
Location: Bavaria
Posts: 1,667
Sorry, didn‘t ead it carefully, only looked at the question. What is it for?
Klaus1189 is offline   Reply With Quote
Old 23rd July 2019, 18:03   #6  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Klaus1189 View Post
Sorry, didn‘t ead it carefully, only looked at the question. What is it for?
Sometimes some people need to automate a player for instance by launching it with command line arguments or remote control a running player, there are many reasons for that, in my case StaxRip passes command line arguments to the player setting track id/index or track file name so people can preview what they are about to encode.

MysteryX has similar reasons.

Find a technology overview here:

https://github.com/stax76/mpv.net/wi...native-Players
stax76 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.