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 Today, 09:05   #1  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,170
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 Today, 10:46   #2  |  Link
Klaus1189
Registered User
 
Join Date: Feb 2015
Location: Bavaria
Posts: 568
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 online now   Reply With Quote
Old Today, 13:09   #3  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,170
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 Today, 15:58   #4  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Location: Germany
Posts: 5,568
I was just reading MpcApi.h and what you are looking for is not available it seems.
stax76 is offline   Reply With Quote
Old Today, 17:02   #5  |  Link
Klaus1189
Registered User
 
Join Date: Feb 2015
Location: Bavaria
Posts: 568
Sorry, didn‘t ead it carefully, only looked at the question. What is it for?
Klaus1189 is online now   Reply With Quote
Old Today, 18:03   #6  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Location: Germany
Posts: 5,568
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 21:33.


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