INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Request: Separate Fullscreen and Windowed Audio Delays.  (Read 2723 times)

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Request: Separate Fullscreen and Windowed Audio Delays.
« on: May 13, 2013, 06:18:02 pm »

I have been meaning to purchase a DAC/headphone amplifier for a long time now but analysis paralysis had set in, and I always ended up putting it off.
Well I think I have maybe made a decision, but one issue remains: lip sync.

I am currently running video from my PC to the TV via HDMI, and using the headphone output from that. (with extensions)
Because it's running through the TV, any processing delays are automatically corrected.

However all flat panels have some amount of latency inherent to them, and my TV has about 30ms - in PC mode.
When watching videos fullscreen, I put it into Video mode (there's a toggle on the remote) which increases latency to somewhere in the region of 90-120ms.

While this latency still presents a problem outside of Media Center (unless Windows has some global adjustment I have overlooked) I find that I am really only running audio through it now, and there's always the loopback feature. (though I don't know how successful that will be)


Would it be possible to have separate adjustments so that I have 30ms when I'm using the desktop and playing back a video in a window, then have it change to ~120ms when I play it back fullscreen?
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #1 on: May 14, 2013, 10:30:49 am »

Bumping this while Matt is around.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #2 on: May 14, 2013, 12:47:20 pm »

You could use two different zones (and maybe ZoneSwitch) each with independent settings depending on how you're playing.

It might require a little manual setup, but that's probably reasonable considering it's a pretty specialized use-case.
Logged
Matt Ashland, JRiver Media Center

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #3 on: May 14, 2013, 01:29:29 pm »

Any suggestions on what I need to do to have ZoneSwitch change depending on whether the video is being displayed fullscreen or not?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #4 on: May 14, 2013, 03:00:56 pm »

Any suggestions on what I need to do to have ZoneSwitch change depending on whether the video is being displayed fullscreen or not?

Yeah, I don't think you can.

How do you switch the mode on your TV?  Is it literally with the TV's remote, or is it blasted by a UIRT and something like EventGhost/Girder/AutoHotKey?  If the latter, you could script MC to change zones as part of the same button-push.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #5 on: May 14, 2013, 03:41:31 pm »

Logged

alyupb

  • Recent member
  • *
  • Posts: 5
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #6 on: May 16, 2013, 10:39:39 pm »

However all flat panels have some amount of latency inherent to them, and my TV has about 30ms - in PC mode.
When watching videos fullscreen, I put it into Video mode (there's a toggle on the remote) which increases latency to somewhere in the region of 90-120ms.

May I ask how you determine the amount of latency?
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #7 on: May 17, 2013, 08:01:01 am »

May I ask how you determine the amount of latency?
RMAA has the ability to measure the latency of a loopback connection through your soundcard. (Line out > Line in)

So that might be 8ms.

If I then run line out through my TV and back into the sound card, subtracting 8ms, I have the exact delay the TV is using, and can measure the difference when I switch between PC and Video modes.
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Request: Separate Fullscreen and Windowed Audio Delays.
« Reply #8 on: May 28, 2013, 05:59:57 pm »

Well, my DAC arrived, and as I thought, latency is a big issue.

Unfortunately I didn't have the cables I need to measure this accurately - my analog cables weren't long enough, and it seems my TV will not accept an external audio input if an HDMI connection is used for the PC - only DVI, and I don't have a 15ft DVI cable, or plan on running one through the walls just for this.

I was able to measure the loopback latency (53ms with the standard Windows 8 driver - this drops a lot if you install the Realtek drivers) and running audio through HDMI into the TV, then out through the line-out which measures 73ms in game/pc mode (20ms latency) and 138ms in film mode (85ms latency)
But these results assume the output latency is the same over HDMI and the on-board sound, which is likely not the case, and I only had the time to test 60Hz.

To keep things simple, I will upsample all videos to 192kHz where the DAC has 0.47ms latency.
The ASIO buffer is set to 2048 frames by default though, and I haven't changed it - I think that is about 10.5ms at 192kHz?

So overall I should be somewhere in the region of 74ms when playing back films fullscreen, and 8ms when playing back videos windowed. (which is done in PC mode) The 65ms gap between the two is very noticeable.


And in general, trying to adjust latency for perfect audio sync seems to be a complete nightmare. I wish there was some easier way of doing it.
I tried one of those Leo Bodnar Lag Testers when they were released, but that only measures display latency and doesn't account for the audio device. (and the software using it)
Even with this method of determining latency, which is probably not entirely accurate in my case, is really complicated. I haven't spent too much time with it yet, but it seems like 73ms might be about right, but is still a bit off.

Considering no displays aside from gaming monitors and CRTs effectively have zero latency, and the output from the sound card/DAC etc. is variable, I'm surprised more people aren't having lipsync issues.
Is everyone just running HDMI into a receiver these days? (HDMI 1.3 devices support automatic lip-sync correction)

The other alternative is running a 15ft optical cable through the walls (if that's even possible?) into the TV, and then running that into my DAC. But the TV is limited to a maximum of 24/48, and I don't know whether it correct for those delays via optical or if it's just the analog outputs.
Logged
Pages: [1]   Go Up