Audio delay only in 24Hz ?

View previous topic View next topic Go down

Audio delay only in 24Hz ?

Post by mooms on Wed Aug 16, 2017 8:28 pm

Hi Admin,

I'm using MPC-HC with MadVR and the latter is set to switch the refresh rate to 24Hz (well, 23.976 actually) when a movie have the same framerate.
This works well, but I need to apply a delay of 200 ms to the audio, because in 24Hz my screen (it's an HDTV) will create intermediate frames for a better fluidity (that's the reason of the 24Hz setting) and that make the audio & video not synchronized. Currently I address this with setting an audio delay of 200 ms in LAV audio filter.

The problem is, the audio delay in LAV audio is a global setting, either on or off, and I would like to apply it only for 24Hz, because on other formats there is no audio/video shift.

I have tried to mess with the settings in MPC-HC (in Fullscreen) because it have audio delays based on the framerates, but that won't works with MadVR, the image is jerky, I have a lot of dropped frames accorded to MadVR OSD. (Ctrl+J) so I can't use it.

If that helps, I have a nVidia card with latest drivers (I had an AMD before and it was exactly the same results) and Win7 x64.

mooms

Posts : 9
Join date : 2011-09-29

View user profile

Back to top Go down

Re: Audio delay only in 24Hz ?

Post by Admin on Thu Aug 17, 2017 1:40 pm

There is not really a good solution for that right now. Maybe in the future madVR will be able to communicate a delay to LAV audio decoder.

The internal audio switcher in MPC-HC also has an audio delay option. It does not (yet) have a hotkey easily to toggle it on/off (but that might get added). You can however also adjust its delay with Plus/Minus buttons on the keyboard. It goes in steps of 10ms, so pressing 20 times. You could use 200ms as default (assuming most files need that) and adjust it for others.

Admin
Admin

Posts : 3555
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Audio delay only in 24Hz ?

Post by Syntax on Thu Aug 17, 2017 4:42 pm

The wonderful thing about the K-Lite codec pack is that all settings are in the registry so they can be modified with a batch command. In fact I use something similar to modify settings when going from monitor to TV.

First create two text files.
Enter the following command in the first file (this enables the delay feature in lav audio and sets it to 200ms):


REG ADD "HKCU\Software\LAV\Audio" /v AudioDelay /t REG_DWORD /d 200 /f
REG ADD "HKCU\Software\LAV\Audio" /v AudioDelayEnabled /t REG_DWORD /d 1 /f

In the other text file enter the following (this disables the delay):

REG ADD "HKCU\Software\LAV\Audio" /v AudioDelayEnabled /t REG_DWORD /d 0 /f

Save those 2 text files as *.bat and run them as needed. Make sure lav and MPC-HC are disabled when doing this. You don't need to run it as Admin btw.
Hope this helps.

Edit: To make your life easier you could create 2 shortcuts to those *.bat and right click the shortcuts and add a "keyboard key". A simple keyboard key of CTRL+ALT+1/2 can enable/disable it easily.

Syntax

Posts : 7
Join date : 2017-03-11

View user profile

Back to top Go down

Re: Audio delay only in 24Hz ?

Post by mooms on Thu Aug 17, 2017 4:58 pm

Admin wrote:There is not really a good solution for that right now.

OK, thanks.

Syntax wrote:The wonderful thing about the K-Lite codec pack is that all settings are in the registry so they can be modified with a batch command.

Thanks, but that's not really more easy than to untick the audio delay in LAV icon, that can be changed at runtime...and that's not automatic.

mooms

Posts : 9
Join date : 2011-09-29

View user profile

Back to top Go down

Re: Audio delay only in 24Hz ?

Post by Syntax on Thu Aug 17, 2017 11:58 pm

mooms wrote:Thanks, but that's not really more easy than to untick the audio delay in LAV icon, that can be changed at runtime...and that's not automatic.

Hopefully in the future the devs can come up with something more to your needs. The batch command can be useful if you want to change a lot of settings quickly like in my case: I turn on bitstreaming, madvr, window always on top, volume 100% and some others when I want to watch a movie on the TV and disable/modify settings when I go back to my monitor. At the very least it can save some seconds and a little aggravation due to repetition.

Syntax

Posts : 7
Join date : 2017-03-11

View user profile

Back to top Go down

Re: Audio delay only in 24Hz ?

Post by mooms on Fri Aug 18, 2017 2:48 pm

Syntax wrote:

Hopefully in the future the devs can come up with something more to your needs.
That would be cool.

Syntax wrote:

The batch command can be useful if you want to change a lot of settings quickly like in my case.
Indeed, in this case it's very useful.

mooms

Posts : 9
Join date : 2011-09-29

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum