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 2nd February 2023, 06:25   #1881  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,922
the default audio renderer stops working when the sound card is set to 32bit 384khz this even can break playback entirely.

not sure how much influence mpc-hc has on the default directshow audio renderer but sanear and mpc audio renderer are not affected.
huhn is offline   Reply With Quote
Old 2nd February 2023, 15:27   #1882  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
DirectSound is limited to 192kHz. Players have no influence on that.

The internal audio renderers are capable of resampling.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 2nd February 2023, 16:08   #1883  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,922
i see thanks.

can you PM me the dumb of this:
https://drdump.com/UploadedReport.aspx?DumpID=103647308 so i can waste my time and report this?

i'm responsible for quite a lot of them and may have an idea why this is happing now but i have nothing at hand to show madshi.
huhn is offline   Reply With Quote
Old 2nd February 2023, 18:33   #1884  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
I have send a dump to madshi
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 2nd February 2023, 22:27   #1885  |  Link
SirMaster
Registered User
 
Join Date: Feb 2019
Posts: 231
If I were to want to run 2 local copies of MPC-HC at once and keep them synced, how would you recommend I do that via API?

Would it be possible do you think to maintain a sync accuracy of +/-10ms or better?

I don't think it is possible via http API as the timing data is only updated every 40ms I think.

What about WM_COPYDATA?
SirMaster is offline   Reply With Quote
Old 3rd February 2023, 12:01   #1886  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,922
is cloning not an option?
huhn is offline   Reply With Quote
Old 3rd February 2023, 14:46   #1887  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
You will have to use the API, and unpause at same time. I doubt you will get such good sync all the time. I can not give you any help with this.

You could maybe try an Avisynth script and use stacking.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 3rd February 2023, 15:51   #1888  |  Link
SirMaster
Registered User
 
Join Date: Feb 2019
Posts: 231
Quote:
Originally Posted by huhn View Post
is cloning not an option?
Not sure what you mean by cloning.

I have been experimenting with controlling the players via programmatically sending a play/pause hotkey simultaneously to both windows via windows api PostMessage.

It’s definitely a really close sync but I will keep playing to see if I can get it even better.

Really I am trying to do this so I can have bitstream audio and pcm decoded audio coming from my movie simultaneously.

Bitstream routes to my AVR (because Atmos and DTS:X) and the PCM I want to do things with individual channels so I need it decoded in the PC.

I’ll keep playing around.
SirMaster is offline   Reply With Quote
Old 3rd February 2023, 16:00   #1889  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,922
display cloning that a feature from ahh win XP or something.

if done 2 output of a GPU will output the same image with 100 % sync. it's done in windows and only works if both displays are connected to the same GPU.

does not apply here.

mpc-BE can output two audio streams.
sync them is not possible really but it has the option.
no clue if bitstreaming is part of it.
huhn is offline   Reply With Quote
Old 3rd February 2023, 16:12   #1890  |  Link
SirMaster
Registered User
 
Join Date: Feb 2019
Posts: 231
Quote:
Originally Posted by huhn View Post
display cloning that a feature from ahh win XP or something.

if done 2 output of a GPU will output the same image with 100 % sync. it's done in windows and only works if both displays are connected to the same GPU.

does not apply here.

mpc-BE can output two audio streams.
sync them is not possible really but it has the option.
no clue if bitstreaming is part of it.
Ah i see.

Yeah for my purpose dual audio is actually the goal.

I tried dual audio in MPC-BE but unfortunately if one is set to bitstream, the second must also be bitstream.

Either both have to be bitstream or both have to be decoded and that unfortunately is not sufficient for what I need.
SirMaster is offline   Reply With Quote
Old 3rd February 2023, 22:14   #1891  |  Link
SirMaster
Registered User
 
Join Date: Feb 2019
Posts: 231
Just an update, I think I have a working method.

I use MPC-HC and MPC-BE.

HC is my main player with video loaded and bitstream audio.

BE is the secondary player with video set to null renderer so it doesn't load and audio set to 8 channel pcm decode.


For sync I have written a small app that reads the current second from HC, then seeks both players to that second via http api. Then it seeks both players backwards to the nearest keyframe (Shift+Left). This was the critical step to getting both players to the same exact time.

Finally my app then sends a unpause to both players via keystrokes, but I use a low level win api PostMessage that allows me to send the keys to both windows more or less simultaneously without the windows having to be selected or active.


For testing I have both players decoding and playing audio to my speakers so if they are even a tiny bit off i hear a slight reverb. But with my above method set up now I do not hear any reverb even.

If I load video on both players and film my 175hz oled with my 240hz smartphone camera and watch the 240hz recording frame by frame, i can see the frame in both video players changes on the same frame in my 240hz video, so this makes me believe the sync accuracy is about 4ms or better which is great.


Now I understand when i go bitstream vs decode between the players, this can offset them a bit, but that's fine, because I have to manually set my tactile bass shaker timing manually by feel anyways and I use a minidsp for that which has a delay function accurate to tenths of a millisecond even. I am delaying my bitstream audio by 50ms in my AVR to sync it with my projector (video processing), so I have plenty of leeway to get the LFE signal delayed through my minidsp to my bass shakers correctly.

Point is, the sync between players now seems to be super consistent and stable. I can pause both players, seek my main player, and then my unpause function gets them to start up in sync at the previous keyframe to wherever my main player was when i asked to resume.

Last edited by SirMaster; 3rd February 2023 at 22:19.
SirMaster is offline   Reply With Quote
Old 4th February 2023, 23:04   #1892  |  Link
Sunspark
Registered User
 
Join Date: Nov 2015
Posts: 471
@clsid: I have observed that in the advanced settings where one can set a preference for YDLVideoFormat and YDLAudioFormat that it works for playback, but for Save a Copy it uses a different default selection. Meaning one will get different codecs in the file download, e.g. VP9 instead of h.264, etc.
Sunspark is offline   Reply With Quote
Old 5th February 2023, 23:28   #1893  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
Those settings are for streaming. YDLCommandLine is for downloading.

Hover your mouse above the advanced options to get a tooltip with description.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 10th February 2023, 00:42   #1894  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 758
MPC-HC defaults to multi-channel audio. I have a video with 2 audio.
1- stereo
2- 5.1

MPC automatically plays track 2. I don't want that. It should play the first audio track by default when I run the software. How to do that in the settings?
Atlantis is offline   Reply With Quote
Old 10th February 2023, 05:22   #1895  |  Link
SirMaster
Registered User
 
Join Date: Feb 2019
Posts: 231
Quote:
Originally Posted by Atlantis View Post
MPC-HC defaults to multi-channel audio. I have a video with 2 audio.
1- stereo
2- 5.1

MPC automatically plays track 2. I don't want that. It should play the first audio track by default when I run the software. How to do that in the settings?
Change the track you want MPC to play by default to be set as the "default track" in the MKV container.

Use mkvpropedit to edit the container properties to give the desired default track the "default" flag.

https://forum.doom9.org/showthread.php?t=163753
SirMaster is offline   Reply With Quote
Old 10th February 2023, 07:50   #1896  |  Link
Sunspark
Registered User
 
Join Date: Nov 2015
Posts: 471
Quote:
Originally Posted by Atlantis View Post
MPC-HC defaults to multi-channel audio. I have a video with 2 audio.
1- stereo
2- 5.1

MPC automatically plays track 2. I don't want that. It should play the first audio track by default when I run the software. How to do that in the settings?
Try unchecking prefer highest quality audio stream in lav splitter settings.
Sunspark is offline   Reply With Quote
Old 10th February 2023, 13:15   #1897  |  Link
Atlantis
Registered User
 
Join Date: Feb 2002
Posts: 758
Thank you Sunspark. That was the correct way to do it and it worked.

Uncheck prefer highest quality audio stream in lav splitter.
Atlantis is offline   Reply With Quote
Old 11th February 2023, 15:26   #1898  |  Link
ksio89
Registered User
 
Join Date: Jun 2014
Posts: 25
Hardware decoding is disabled when playing a DVD through the usual menus, even though SD and MPEG-2 boxes on LAV Video Settings and MPEG-2 video and Enable DVD Video support on Formats tab are checked. When I play the standalone VOB video files with the same settings, hardware acceleration works just fine. Any idea on how to enable HW decoding on normal DVD playback?

Software info:

Code:
MPC-HC (Nightly, 64-bit)
------------------------

Build information:
    Version:            2.0.0.7 (bf78bfddd)
    Compiler:           MSVC v19.29.30147
    Build date:         Feb  2 2023

LAV Filters:
    LAV Splitter:       0.77.1.2
    LAV Video:          0.77.1.2
    LAV Audio:          0.77.1.2
    FFmpeg compiler:    MinGW-w64 GCC 12.2.0

Operating system:
    Name:               Windows 10 (Build 22H2)
    Version:            10.0.19045 (64-bit)

Hardware:
    CPU:                11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    GPU:                Intel(R) Iris(R) Xe Graphics (driver version: 31.0.101.4091)



DVD menu:



VOB file:




LAV Video Decoder Formats tab (when using external filter):


Last edited by ksio89; 11th February 2023 at 15:29.
ksio89 is offline   Reply With Quote
Old 14th February 2023, 12:03   #1899  |  Link
djsolidsnake86
Registered User
 
Join Date: Mar 2010
Posts: 139
http://www.codecguide.com/download_k..._pack_full.htm
where find mpc 2.0.0.14?
the mpc github is 2.0, how is possible that k-lite has a updated version?
djsolidsnake86 is offline   Reply With Quote
Old 14th February 2023, 17:21   #1900  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 294
Quote:
Originally Posted by djsolidsnake86 View Post
how is possible that k-lite has a updated version?
The author of k-lite compiled it himself from the source code.
lvqcl 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 04:25.


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