Question / Help Avermedia Live Gamer Portable Audio Drift?

hobbit2513

New Member
For the past few days I have been fighting to fix an issue that I have with OBS and the Avermedia Live Gamer Portable. The audio no matter what settings I try will not stay synced over time. I will be completely off by over sec sometimes when I stream for an hour or more.

Here's my log file.

Code:
13:42:00: Server Ping plugin strings not found, dynamically loading 24 strings
13:42:02: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
13:42:02: -------------------------------
13:42:02: CPU Name: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
13:42:02: CPU Speed: 2400MHz
13:42:02: Physical Memory:  4095MB Total, 4095MB Free
13:42:02: stepping id: 11, model 15, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
13:42:02: monitor 1: pos={1440, 0}, size={1440, 900}
13:42:02: monitor 2: pos={0, 0}, size={1440, 900}
13:42:02: Windows Version: 6.1 Build 7600 
13:42:02: Aero is Enabled
13:42:02: -------------------------------
13:42:02: OBS Modules:
13:42:02: Base Address     Module
13:42:02: 01080000         OBS.exe
13:42:02: 62870000         OBSApi.dll
13:42:02: 74780000         DShowPlugin.dll
13:42:02: 743E0000         GraphicsCapture.dll
13:42:02: 73DB0000         NoiseGate.dll
13:42:02: 73D90000         PSVPlugin.dll
13:42:02: 73D30000         ServerPingPlugin.dll
13:42:02: ------------------------------------------
13:42:02: Adapter 1
13:42:02:   Video Adapter: ATI Radeon HD 5800 Series
13:42:02:   Video Adapter Dedicated Video Memory: 1063092224
13:42:02:   Video Adapter Shared System Memory: 4025643008
13:42:02:   Video Adapter Output 1: pos={0, 0}, size={1440, 900}, attached=true
13:42:02:   Video Adapter Output 2: pos={1440, 0}, size={1440, 900}, attached=true
13:42:02: =====Stream Start: 2013-11-26, 13:42:02===============================================
13:42:02:   Multithreaded optimizations: On
13:42:02:   Base resolution: 1280x720
13:42:02:   Output resolution: 1280x720
13:42:02: ------------------------------------------
13:42:02: Loading up D3D10 on ATI Radeon HD 5800 Series...
13:42:02: ------------------------------------------
13:42:02: Audio Format: 48000hz
13:42:02: Playback device {0.0.0.00000000}.{b343d50f-2aa9-46da-a369-c5733b538507}
13:42:02: ------------------------------------------
13:42:02: Using desktop audio input: Speakers (Realtek High Definition Audio)
13:42:02: ------------------------------------------
13:42:02: Using auxilary audio input: Microphone (Blue Snowball)
13:42:02: Using Mic QPC timestamps
13:42:02: ------------------------------------------
13:42:02:     device: LGP Stream Engine,
13:42:02:     device id (null),
13:42:02:     chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333
13:42:02:     use buffering: true - 0, fourCC: 'YUY2'
13:42:02:     audio device: LGP Stream Engine Audio,
13:42:02:     audio device id (null),
13:42:02: 
13:42:02:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
13:42:03: Using directshow input
13:42:03: Scene buffering time set to 400
13:42:03: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
13:42:03: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 384000, samples per sec is 48000
13:43:15: Total frames encoded: 0, total frames duplicated: 0 (-1.#J%)
13:43:15: Total frames rendered: 2173, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
13:43:16: 
13:43:16: Profiler time results:
13:43:16: 
13:43:16: ==============================================================
13:43:16: video thread frame - [100%] [avg time: 4.377 ms] [children: 72.6%] [unaccounted: 27.4%]
13:43:16: | scene->Preprocess - [70.9%] [avg time: 3.105 ms]
13:43:16: | GPU download and conversion - [1.64%] [avg time: 0.072 ms] [children: 1.46%] [unaccounted: 0.183%]
13:43:16: | | flush - [1.46%] [avg time: 0.064 ms]
13:43:16: ==============================================================
13:43:16: 
13:43:16: 
13:43:16: Profiler CPU results:
13:43:16: 
13:43:16: ==============================================================
13:43:16: video thread frame - [cpu time: avg 3.022 ms, total 6567.64 ms] [avg calls per frame: 1]
13:43:16: | scene->Preprocess - [cpu time: avg 2.469 ms, total 5366.44 ms] [avg calls per frame: 1]
13:43:16: | GPU download and conversion - [cpu time: avg 0.021 ms, total 46.8 ms] [avg calls per frame: 1]
13:43:16: | | flush - [cpu time: avg 0.021 ms, total 46.8 ms] [avg calls per frame: 1]
13:43:16: ==============================================================
13:43:16: 
13:43:16: =====Stream End: 2013-11-26, 13:43:16=================================================
13:54:51: =====Stream Start: 2013-11-26, 13:54:51===============================================
13:54:51:   Multithreaded optimizations: On
13:54:51:   Base resolution: 1280x720
13:54:51:   Output resolution: 1280x720
13:54:51: ------------------------------------------
13:54:51: Loading up D3D10 on ATI Radeon HD 5800 Series...
13:54:51: ------------------------------------------
13:54:51: Audio Format: 48000hz
13:54:51: Playback device {0.0.0.00000000}.{b343d50f-2aa9-46da-a369-c5733b538507}
13:54:51: ------------------------------------------
13:54:51: Using desktop audio input: Speakers (Realtek High Definition Audio)
13:54:51: ------------------------------------------
13:54:51: Using auxilary audio input: Microphone (Blue Snowball)
13:54:51: Using Mic QPC timestamps
13:54:51: ------------------------------------------
13:54:51: Audio Encoding: AAC
13:54:51:     bitrate: 96
13:54:51: Using bitmap image
13:54:51: Using bitmap image
13:54:51: Scene buffering time set to 400
13:54:51: ------------------------------------------
13:54:51: Video Encoding: x264
13:54:51:     fps: 30
13:54:51:     width: 1280, height: 720
13:54:51:     preset: veryfast
13:54:51:     profile: main
13:54:51:     keyint: 60
13:54:51:     CBR: yes
13:54:51:     CFR: yes
13:54:51:     max bitrate: 1800
13:54:51:     buffer size: 700
13:54:51: ------------------------------------------
13:54:51: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
13:54:51: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 384000, samples per sec is 48000
13:54:53: Using RTMP service: Twitch / Justin.tv
13:54:53:   Server selection: rtmp://live-lax.justin.tv/app
13:54:53:   Interface: Realtek RTL8168C(P)/8111C(P) Family PCI-E Gigabit Ethernet NIC (NDIS 6.0) (ethernet, 100 mbps)
13:54:53: Completed handshake with rtmp://live-lax.justin.tv/app in 122 ms.
13:54:54: SO_SNDBUF was at 8192
13:54:54: SO_SNDBUF is now 65536
13:55:36: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
13:55:36:   New Scene
13:55:37: ------------------------------------------
13:55:37:     device: LGP Stream Engine,
13:55:37:     device id (null),
13:55:37:     chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333
13:55:37:     use buffering: true - 0, fourCC: 'YUY2'
13:55:37:     audio device: LGP Stream Engine Audio,
13:55:37:     audio device id (null),
13:55:37: 
13:55:37:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
13:55:37: Using directshow input
13:55:37: PERFORMANCE WARNING: Scene change took 682 ms, maybe some sources should be global sources?
14:44:53: RTMPPublisher::SocketLoop: Stalled for 2177 ms to write 239858 bytes (buffer: 0 / 242688), unstable connection?
14:51:30: RTMPPublisher::SocketLoop: Stalled for 1523 ms to write 240184 bytes (buffer: 0 / 242688), unstable connection?
15:05:58: RTMPPublisher::SocketLoop: Stalled for 1737 ms to write 240272 bytes (buffer: 0 / 242688), unstable connection?
15:51:16: RTMPPublisher::SocketLoop: Stalled for 1692 ms to write 241715 bytes (buffer: 0 / 242688), unstable connection?
15:53:00: Total frames encoded: 212643, total frames duplicated: 12142 (5.71%)
15:53:00: Number of frames skipped due to encoder lag: 939 (0.44%)
15:53:00: Total frames rendered: 206037, number of late frames: 2793 (1.36%) (it's okay for some frames to be late)
15:53:01: RTMPPublisher::SocketLoop: Graceful loop exit
15:53:01: Average send payload: 6842 bytes, average send interval: 28 ms
15:53:01: Number of times waited to send: 120, Waited for a total of 465822 bytes
15:53:01: Number of b-frames dropped: 82 (0.039%), Number of p-frames dropped: 125 (0.059%), Total 207 (0.097%)
15:53:01: Number of bytes sent: 1683976280
15:53:01: 
15:53:01: Profiler time results:
15:53:01: 
15:53:01: ==============================================================
15:53:01: video thread frame - [100%] [avg time: 6.013 ms] [children: 98.3%] [unaccounted: 1.66%]
15:53:01: | scene->Preprocess - [39.9%] [avg time: 2.402 ms]
15:53:01: | GPU download and conversion - [58.4%] [avg time: 3.511 ms] [children: 21.1%] [unaccounted: 37.3%]
15:53:01: | | flush - [19.5%] [avg time: 1.174 ms]
15:53:01: | | CopyResource - [1.36%] [avg time: 0.082 ms]
15:53:01: | | conversion to 4:2:0 - [0.166%] [avg time: 0.01 ms]
15:53:01: Convert444Threads - [100%] [avg time: 1.505 ms] [children: 98.5%] [unaccounted: 1.46%]
15:53:01: | Convert444toNV12 - [98.5%] [avg time: 1.483 ms]
15:53:01: encoder thread frame - [100%] [avg time: 4.774 ms]
15:53:01: ==============================================================
15:53:01: 
15:53:01: 
15:53:01: Profiler CPU results:
15:53:01: 
15:53:01: ==============================================================
15:53:01: video thread frame - [cpu time: avg 2.203 ms, total 453947 ms] [avg calls per frame: 1]
15:53:01: | scene->Preprocess - [cpu time: avg 1.958 ms, total 403590 ms] [avg calls per frame: 1]
15:53:01: | GPU download and conversion - [cpu time: avg 0.177 ms, total 36644.6 ms] [avg calls per frame: 1]
15:53:01: | | flush - [cpu time: avg 0.137 ms, total 28392.2 ms] [avg calls per frame: 1]
15:53:01: | | CopyResource - [cpu time: avg 0.016 ms, total 3354.02 ms] [avg calls per frame: 1]
15:53:01: | | conversion to 4:2:0 - [cpu time: avg 0.006 ms, total 1388.41 ms] [avg calls per frame: 1]
15:53:01: Convert444Threads - [cpu time: avg 1.282 ms, total 528266 ms] [avg calls per frame: 2]
15:53:01: | Convert444toNV12 - [cpu time: avg 1.273 ms, total 524912 ms] [avg calls per frame: 2]
15:53:01: encoder thread frame - [cpu time: avg 2.57 ms, total 546659 ms] [avg calls per frame: 1]
15:53:01: ==============================================================
15:53:01: 
15:53:01: =====Stream End: 2013-11-26, 15:53:01=================================================
15:59:06: Server Ping plugin instance deleted; removing dynamically loaded localization strings

Thanks for the help and the awesome software!
 

RapidV

New Member
A few other ppl here have that the same problem me included and havent found a fix yet other than quickly disabling the source in obs then activating it again (check and uncheck the box) that fixes the synch untill the next time it happens so u dont have to restart the whole stream,still annoying though lol
 

DirectorGunner

New Member
This may be a silly question, but did both of you guys update to the newest software AND firmware?
If so, I'm not sure. But I can tell you that I have no issue with audio lag with LGP (I own two of them) and I do 12 hour broadcasts on twitch (look up couch talk with gamer girls). But I can tell you, whenever I have an issue with one of the LGPs (framerate lag/gitter issue, happens randomly) I open up the config settings for the LGP and click "refresh". That solves the issue for me. Have you tried this to see if it solves your audio lag issue? Sometimes audio lag can happen via the ingest server you're using and how you setup your stream settings.
 

RapidV

New Member
yer ive got the newest software but not the firmware i dont think ,do you think that could be causing it ? i know how to fix the issue temporarily with out having to restart the whole stream but even then id rather not have too :P
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Just a heads up, I'm probably going to buy this device just to diagnose the problem, and I will not delay this for the rewrite if I can figure out what the problem is.
 

ryno

New Member
I also own one and have the same issue. The only temporary fix I found was to use Advanced > Force Desktop audio to use video timestamps. This will work for about 20 mins until the audio starts to draft again. I use VAC Kernel to send audio to my headset / streaming pc. Once the audio drifts you need to have a second scene enabled (nothing needs to be in). Just click that scene and go back to your main one to reinitialize the LGP. Since I stream BF4/PS2 I do this after every match or every 10 deaths I have in PS2.
 

hobbit2513

New Member
DirectorGunner said:
This may be a silly question, but did both of you guys update to the newest software AND firmware?
If so, I'm not sure. But I can tell you that I have no issue with audio lag with LGP (I own two of them) and I do 12 hour broadcasts on twitch (look up couch talk with gamer girls). But I can tell you, whenever I have an issue with one of the LGPs (framerate lag/gitter issue, happens randomly) I open up the config settings for the LGP and click "refresh". That solves the issue for me. Have you tried this to see if it solves your audio lag issue? Sometimes audio lag can happen via the ingest server you're using and how you setup your stream settings.

I just got back from a trip, but yes I am fully updated to the newest firmware and software as of last week. I just tried the refresh and I'll run some test in the next few days and find out if that helps. Thanks for the reply though.

Jim said:
Just a heads up, I'm probably going to buy this device just to diagnose the problem, and I will not delay this for the rewrite if I can figure out what the problem is.

And Jim, thank you so much for being so involved with the community and helping users with issues. If you want me to be a test anything let me know!
 
Jim thanks for buying one of these to try and figure out this audio issue. I am also having this issue with game audio running like a second or 2 behind what is happening on screen after I have casted for about an hour or 2. I posted in another topic about a month or so ago about this. I tried so many different things to try and fix it and nothing worked for me. I also tried uninstalling and reinstalling avermedia drivers and all avermedia software, as well as OBS. Nothing helped. Using the LGP stream Engine software with xsplit I have no problems but I would prefer to use OBS since it's well better.
 

DirectorGunner

New Member
hobbit2513 said:
I re installed and updated all drivers and software, and the tried the refresh and still the issue persists.

Are you running your HDMI cables through splitters by chance? Some splitters do goofy stuff to the data stream. Also is your computer at the recommended spec for both OBS and LGP? Did you try lowering the LGP bandwidth quality down from 50MBs? And I assume you're using the newest Avermedia Live streaming bridge software? Sorry for all the questions.. I'm just trying to help because I haven't noticed the issue for myself.
 

hobbit2513

New Member
DirectorGunner said:
hobbit2513 said:
I re installed and updated all drivers and software, and the tried the refresh and still the issue persists.

Are you running your HDMI cables through splitters by chance? Some splitters do goofy stuff to the data stream. Also is your computer at the recommended spec for both OBS and LGP? Did you try lowering the LGP bandwidth quality down from 50MBs? And I assume you're using the newest Avermedia Live streaming bridge software? Sorry for all the questions.. I'm just trying to help because I haven't noticed the issue for myself.

I'm not using any splitters. When I use RECental to livestream everything works fine, no audio drift what so ever. I am using the newest Stream Engine that Avermedia has supplied.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I still don't have one of these devices yet. I haven't really had time to even think about it with other developments as of late, and I still don't know exactly what the problem is. What I do know is that it doesn't happen on other devices, so I feel a little bit suspicious, but I know that my own audio code isn't perfect either, so I can't rule that out. I probably couldn't know for sure until I have the device and have done extensive testing.
 

dirtytubesock

New Member
I do have the same problem with LGP and OBS.

After many hours of searching, I found one user. He suggested that using the option "Output audio to desktop" in the LGP source properties option would fix the problem. I have tested this solution by streaming under his suggested setting about 3 hours and I can confirm that it does seem to slow down the audio drift problem. While it is not a complete fix, but it does make the stream more watchable. In this stream test, I streamed a bit over 3 hours and the audio only milliseconds behind the video. You can try it out until Jim found a solution.

If you want to see the test stream that I did....here (duration: 3 hours).
http://www.twitch.tv/dirtytubesock/b/493185428

Here is a stream that I did without the "Output audio to desktop" option (duration: 1 hour and 30 mins).
http://www.twitch.tv/dirtytubesock/b/493746122

Skip to the end to see end result of the audio drifting out.
Comparing both streams, the stream with the "Output audio to desktop" took longer (3 hours) for the audio to start drifting out of syn...and only milliseconds behind.
 

dodgepong

Administrator
Community Helper
Try the latest Test build, which addresses some sound issues with sync, especially for capture devices.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Thank you so much dodgepong.

Please people, try the 0.60 test builds, and get back to me ASAP. I believe the problem is fixed.
 

dirtytubesock

New Member
Sorry Jim,

I tried to test stream using 0.60 test build of OBS, but the build doesn't seem to recognize LGP streaming engine as a video capturing device. When I switch back to 0.592 OBS beta, it recognize the stream engine just fine. So at the moment I can't really test the audio drifting problem that people been having with Avermedia LGP on OBS.
 
Top