Question / Help Sound (only) stuttering at some point

zetmor

New Member
Hi there.
Had been streaming Rocksmith game 10 days ago, it worked perfectly.
But now I'm getting sound stuttering at some point each time.
For ex : http://www.twitch.tv/zetmor/b/462928587
@ 7mn30 sounds get choppy (before sometimes too)
(this is just a test video to check sound sync and all)

Audio sync is good, even at the very end it's still sync to the frame.
But sound is choppy in the stream (not while playing of course).

I'm using the last test version 0.56.04 with AAC 48k sound option (video 1800k + AAC 160k), but I tried with the last stable version it's doing the same now too. Tried several twitch servers, all the same. Any idea?
(spent hours testing already ^^)

1280x720 @ 30fps
CBR bitrate 1800 (=buffer)
scene buffering = 1000ms
CPU preset = superfast
(~60% CPU on my little Mac mini)

PC CAPTURE (1280x720 @ 60 Hz output) done by Blackmagic UltraStudio (Thunderbolt) in 1280x720 60 fps / buffering = 1400ms + audio from AES/EBU offset = 166ms
CAMERA capture (1920x1080/60i output) done by Elgato Game Capture HD, capture in 1280x720 30 fps (so that it's deinterlaced by Elgato, saving cpu) / no buffering (perhaps here the problem?)

Last week I was doing the capture the other way: Camera captured by Blackmagic in Full-HD + Yadif deinterlace, game capture by Elgato (but no way to have it in real Full-HD it's always downscaled to 720p) ... OBS in 1920x1080 (else camera is black) and everything downscaled to 720p (Lanczos filter).

The game picture is way better when captured by Blackmagic (might just adjust the black blacker), all synced and all except that sound is choppy. And it sound needs to be perfect for a musical game you see? ^^
 

zetmor

New Member
Code:
23:19:28: Open Broadcaster Software v0.56.04 madness - 32bit (´・ω・`)
23:19:28: -------------------------------
23:19:28: CPU Name: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
23:19:28: CPU Speed: 2500MHz
23:19:28: Physical Memory:  4071MB Total, 3204MB Free
23:19:28: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
23:19:28: monitor 1: pos={0, 0}, size={1280, 1024}
23:19:28: Windows Version: 6.1 Build 7601 S
23:19:28: Aero is Enabled
23:19:28: -------------------------------
23:19:28: OBS Modules:
23:19:28: Base Address     Module
23:19:28: 000F0000         OBS.exe
23:19:28: 70A20000         OBSApi.dll
23:19:28: 72310000         DShowPlugin.dll
23:19:28: 74120000         GraphicsCapture.dll
23:19:28: 722F0000         NoiseGate.dll
23:19:28: 722D0000         PSVPlugin.dll
23:19:28: ------------------------------------------
23:19:28: Adapter 1
23:19:28:   Video Adapter: AMD Radeon HD 6630M
23:19:28:   Video Adapter Dedicated Video Memory: 257957888
23:19:28:   Video Adapter Shared System Memory: 1866326016
23:19:28: =====Stream Start: 2013-09-17, 23:19:28===============================================
23:19:28:   Multithreaded optimizations: On
23:19:28:   Base resolution: 1280x720
23:19:28:   Output resolution: 1280x720
23:19:28: ------------------------------------------
23:19:28: Loading up D3D10 on AMD Radeon HD 6630M...
23:19:28: ------------------------------------------
23:19:28: Audio Format: 48000hz
23:19:28: Playback device Default
23:19:28: ------------------------------------------
23:19:28: Using desktop audio input: Speakers (Cirrus Logic CS4206B (AB 35))
23:19:29: ------------------------------------------
23:19:29: Audio Encoding: AAC
23:19:29:     bitrate: 160
23:19:29: ------------------------------------------
23:19:29:     device: Elgato Game Capture HD,
23:19:29:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
23:19:29:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
23:19:29:     audio device: Disable,
23:19:29:     audio device id Disabled,
23:19:29: 
23:19:29: Using directshow input
23:19:29: ------------------------------------------
23:19:29:     device: Blackmagic WDM Capture,
23:19:29:     device id \\?\decklink#avstream#9&207ed752&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\decklinkcapture1,
23:19:29:     chosen type: HDYC, usingFourCC: true, res: 1280x720 - 1280x720, frameIntervals: 166666-166666, fourCC: 'HDYC'
23:19:29: 
23:19:29:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
23:19:29: Using directshow input
23:19:29: ------------------------------------------
23:19:29: Video Encoding: x264
23:19:29:     fps: 30
23:19:29:     width: 1280, height: 720
23:19:29:     preset: superfast
23:19:29:     CBR: yes
23:19:29:     CFR: yes
23:19:29:     max bitrate: 1800
23:19:29:     buffer size: 1800
23:19:29: ------------------------------------------
23:19:29: MMDeviceAudioSource: Frequency for device 'Speakers (Cirrus Logic CS4206B (AB 35))' is 352800, samples per sec is 44100
23:20:29: ------------------------------------------
23:20:29:     device: Elgato Game Capture HD,
23:20:29:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
23:20:29:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
23:20:29:     audio device: Disable,
23:20:29:     audio device id Disabled,
23:20:29: 
23:21:43: Total frames encoded: 3957, total frames duplicated: 128 (3.23%)
23:21:43: Total frames rendered: 3860, number of late frames: 1 (0.03%) (it's okay for some frames to be late)
23:21:47: 
23:21:47: Profiler results:
23:21:47: 
23:21:47: ==============================================================
23:21:47: video thread frame - [100%] [avg time: 5.21 ms (cpu time: avg 3.176 ms, total 12261.7 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.326%]
23:21:47: | frame preprocessing and rendering - [94.4%] [avg time: 4.917 ms (cpu time: avg 3.132 ms, total 12090.1 ms)] [avg calls per frame: 1] [children: 57.9%] [unaccounted: 36.5%]
23:21:47: | | scene->Preprocess - [57.9%] [avg time: 3.014 ms (cpu time: avg 2.841 ms, total 10966.9 ms)] [avg calls per frame: 1]
23:21:47: | GPU download and color conversion - [5.3%] [avg time: 0.276 ms (cpu time: avg 0.036 ms, total 140.402 ms)] [avg calls per frame: 1] [children: 4.88%] [unaccounted: 0.422%]
23:21:47: | | flush - [4.61%] [avg time: 0.24 ms (cpu time: avg 0.016 ms, total 62.402 ms)] [avg calls per frame: 1]
23:21:47: | | CopyResource - [0.23%] [avg time: 0.012 ms (cpu time: avg 0.012 ms, total 46.8 ms)] [avg calls per frame: 1]
23:21:47: | | conversion to 4:2:0 - [0.0384%] [avg time: 0.002 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
23:21:47: Convert444Thread - [100%] [avg time: 0.854 ms (cpu time: avg 0.884 ms, total 3385.22 ms)] [avg calls per frame: 1] [children: 98.8%] [unaccounted: 1.17%]
23:21:47: | Convert444toNV12 - [98.8%] [avg time: 0.844 ms (cpu time: avg 0.88 ms, total 3369.62 ms)] [avg calls per frame: 1]
23:21:47: encoder thread frame - [100%] [avg time: 0.983 ms (cpu time: avg 0.397 ms, total 1560.01 ms)] [avg calls per frame: 1]
23:21:47: ==============================================================
23:21:47: 
23:21:47: =====Stream End: 2013-09-17, 23:21:47=================================================
23:21:48: =====Stream Start: 2013-09-17, 23:21:48===============================================
23:21:48:   Multithreaded optimizations: On
23:21:48:   Base resolution: 1280x720
23:21:48:   Output resolution: 1280x720
23:21:48: ------------------------------------------
23:21:48: Loading up D3D10 on AMD Radeon HD 6630M...
23:21:48: ------------------------------------------
23:21:48: Audio Format: 48000hz
23:21:48: Playback device Default
23:21:48: ------------------------------------------
23:21:48: Using desktop audio input: Speakers (Cirrus Logic CS4206B (AB 35))
23:21:48: ------------------------------------------
23:21:48: Audio Encoding: AAC
23:21:48:     bitrate: 160
23:21:48: ------------------------------------------
23:21:48:     device: Elgato Game Capture HD,
23:21:48:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
23:21:48:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
23:21:48:     audio device: Disable,
23:21:48:     audio device id Disabled,
23:21:48: 
23:21:48: Using directshow input
23:21:48: ------------------------------------------
23:21:48:     device: Blackmagic WDM Capture,
23:21:48:     device id \\?\decklink#avstream#9&207ed752&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\decklinkcapture1,
23:21:48:     chosen type: HDYC, usingFourCC: true, res: 1280x720 - 1280x720, frameIntervals: 166666-166666, fourCC: 'HDYC'
23:21:48: 
23:21:48:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
23:21:48: Using directshow input
23:21:48: ------------------------------------------
23:21:48: Video Encoding: x264
23:21:48:     fps: 30
23:21:48:     width: 1280, height: 720
23:21:48:     preset: superfast
23:21:48:     CBR: yes
23:21:48:     CFR: yes
23:21:48:     max bitrate: 1800
23:21:48:     buffer size: 1800
23:21:48: ------------------------------------------
23:21:48: MMDeviceAudioSource: Frequency for device 'Speakers (Cirrus Logic CS4206B (AB 35))' is 352800, samples per sec is 44100
23:21:48: 
23:21:48: Profiler result for the last frame:
23:21:48: ==============================================================
23:21:48: video thread frame - [time: 8.142 ms (cpu time: 15.6 ms)]
23:21:48: | frame preprocessing and rendering - [time: 8.119 ms (cpu time: 15.6 ms)]
23:21:48: | | scene->Preprocess - [time: 6.037 ms (cpu time: 15.6 ms)]
23:21:48: | GPU download and color conversion - [time: 0.015 ms (cpu time: 0 ms)]
23:21:48: | | flush - [time: 0.005 ms (cpu time: 0 ms)]
23:21:48: ==============================================================
23:21:48: 
23:21:51: Using RTMP service: Twitch / Justin.tv
23:21:51:   Server selection: rtmp://live-lhr-backup.justin.tv/app
23:21:51:   Interface: Broadcom NetXtreme Gigabit Ethernet (ethernet, 100 mbps)
23:21:52: SO_SNDBUF was at 8192
23:21:52: SO_SNDBUF is now 65536
23:21:54: RTMPPublisher::Socketloop: Increasing send buffer to ISB 131072 (buffer: 1886 / 250880)
23:25:10: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:25:10:   New Scene
23:25:28: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:25:28:   New Scene
23:25:30: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:25:30:   New Scene
23:31:11: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:31:11:   New Scene
23:31:18: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:31:18:   New Scene
23:31:25: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
23:31:25:   New Scene
23:31:41: Total frames encoded: 17760, total frames duplicated: 29 (0.16%)
23:31:41: Total frames rendered: 17766, number of late frames: 1 (0.01%) (it's okay for some frames to be late)
23:31:42: RTMPPublisher::SocketLoop: Graceful loop exit
23:31:42: Number of times waited to send: 0, Waited for a total of 0 bytes
23:31:42: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:31:46: 
23:31:46: Profiler results:
23:31:46: 
23:31:46: ==============================================================
23:31:46: video thread frame - [100%] [avg time: 4.113 ms (cpu time: avg 3.374 ms, total 59951.2 ms)] [avg calls per frame: 1] [children: 99.6%] [unaccounted: 0.413%]
23:31:46: | frame preprocessing and rendering - [91.7%] [avg time: 3.772 ms (cpu time: avg 3.296 ms, total 58562.8 ms)] [avg calls per frame: 1] [children: 74.1%] [unaccounted: 17.6%]
23:31:46: | | scene->Preprocess - [74.1%] [avg time: 3.048 ms (cpu time: avg 2.887 ms, total 51293.1 ms)] [avg calls per frame: 1]
23:31:46: | GPU download and color conversion - [7.88%] [avg time: 0.324 ms (cpu time: avg 0.074 ms, total 1326.01 ms)] [avg calls per frame: 1] [children: 7.42%] [unaccounted: 0.462%]
23:31:46: | | flush - [7%] [avg time: 0.288 ms (cpu time: avg 0.045 ms, total 811.201 ms)] [avg calls per frame: 1]
23:31:46: | | CopyResource - [0.365%] [avg time: 0.015 ms (cpu time: avg 0.012 ms, total 218.401 ms)] [avg calls per frame: 1]
23:31:46: | | conversion to 4:2:0 - [0.0486%] [avg time: 0.002 ms (cpu time: avg 0 ms, total 15.6 ms)] [avg calls per frame: 1]
23:31:46: Convert444Thread - [100%] [avg time: 0.96 ms (cpu time: avg 0.919 ms, total 16302.1 ms)] [avg calls per frame: 1] [children: 98.9%] [unaccounted: 1.15%]
23:31:46: | Convert444toNV12 - [98.9%] [avg time: 0.949 ms (cpu time: avg 0.91 ms, total 16146.1 ms)] [avg calls per frame: 1]
23:31:46: encoder thread frame - [100%] [avg time: 1.227 ms (cpu time: avg 0.424 ms, total 7534.85 ms)] [avg calls per frame: 1]
23:31:46: ==============================================================
23:31:46: 
23:31:46: =====Stream End: 2013-09-17, 23:31:46=================================================
23:32:21: Memory Leaks Were Detected.
23:32:21:
 

zetmor

New Member
^ log from the streaming PC (Mac mini on Windows 7).
The gaming PC is running perfectly (core i7 @ 4 GHz with GTX 680 and Samsung 840 Pro SSD ... so at 720p it can run well you guess ^^).

I roughly counted around a thirty sound glitches. Which is the frames duplicated count. Well. I'll retry the 0.554b version (and sound back to 41k), and adding 0ms buffering on the elgato...
 

zetmor

New Member
Ok, reinstalled old 0.554b version, so sound back to 44.1k. Anything else is the same:
http://www.twitch.tv/zetmor/b/462962502
^ no more sound glitch, it's just 'perfect'
(not my playing indeed, but stream sound is just perfect, not a single sample drop, perfect sync and all)

Meaning... the issue is the 0.56.04 test version and most certainly the "CFR" enabled by default and frame dropping that makes the sound stutter.
Anyway! I'm ready for next week-end Rocksmith stream. Have to work on the Rush songs though. XD
 
Top