When I attempt to play a media source, I hear clicks and pops. Sometimes, the audio skips. This is audible both via the monitor and on my live stream.
The problem is sporadic and does not happen every time I play a file. The artifacts happen at different times, but most often close to the beginning of the file. It happens more with some files than others, but I can't figure out what's different about them. I have no filters on my media source. I have observed these symptoms on three different systems running OBS. The below log is from the computer on my test bench, but the broadcast machines with Windows 10 and a hardware video encoder also have the same problem. CPU usage when creating the below log was <5%.
ffplay or any other media player will play the files without problems.
The problem does not seem to be related to sample rate, as I have set everything to 48000Hz.
ffmpeg -i produces this:
Any suggestions would be appreciated.
The problem is sporadic and does not happen every time I play a file. The artifacts happen at different times, but most often close to the beginning of the file. It happens more with some files than others, but I can't figure out what's different about them. I have no filters on my media source. I have observed these symptoms on three different systems running OBS. The below log is from the computer on my test bench, but the broadcast machines with Windows 10 and a hardware video encoder also have the same problem. CPU usage when creating the below log was <5%.
ffplay or any other media player will play the files without problems.
The problem does not seem to be related to sample rate, as I have set everything to 48000Hz.
Code:
12:42:35.758: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
12:42:35.759: CPU Speed: 3411MHz
12:42:35.759: Physical Cores: 4, Logical Cores: 8
12:42:35.759: Physical Memory: 16348MB Total, 7367MB Free
12:42:35.759: Windows Version: 6.1 Build 7601 (release: unavailable; revision: 24000; 64-bit)
12:42:35.759: Running as administrator: false
12:42:35.759: Aero is Enabled
12:42:35.759: Current Date/Time: 2021-01-25, 12:42:35
12:42:35.759: Browser Hardware Acceleration: false
12:42:35.759: Portable mode: false
12:42:36.102: OBS 26.1.1 (64-bit, windows)
12:42:36.102: ---------------------------------
12:42:36.123: ---------------------------------
12:42:36.123: audio settings reset:
12:42:36.123: samples per sec: 48000
12:42:36.123: speakers: 2
12:42:36.124: ---------------------------------
12:42:36.124: Initializing D3D11...
12:42:36.124: Available Video Adapters:
12:42:36.126: Adapter 0: NVIDIA GeForce GT 610
12:42:36.126: Dedicated VRAM: 2095513600
12:42:36.126: Shared VRAM: 2147364864
12:42:36.126: PCI ID: 10de:104a
12:42:36.126: Driver Version: 9.18.13.3788
12:42:36.127: output 0: pos={0, 0}, size={1600, 900}, attached=true, refresh=60, name=Acer P206HV
12:42:36.131: Loading up D3D11 on adapter NVIDIA GeForce GT 610 (0)
12:42:36.142: D3D11 loaded successfully, feature level used: b000
12:42:36.143: DXGI increase maximum frame latency success
12:42:36.144: D3D11 GPU priority setup failed (not admin?)
12:42:37.257: ---------------------------------
12:42:37.257: video settings reset:
12:42:37.257: base resolution: 1280x720
12:42:37.257: output resolution: 1280x720
12:42:37.257: downscale filter: Bicubic
12:42:37.257: fps: 30000/1001
12:42:37.257: format: NV12
12:42:37.257: YUV mode: 709/Partial
12:42:37.257: NV12 texture support not available
12:42:37.259: Audio monitoring device:
12:42:37.259: name: Default
12:42:37.259: id: default
12:42:37.260: ---------------------------------
12:42:37.262: trying 'C:/Program Files/obs-studio/bin/64bit'
12:42:37.262: found curl library at 'C:/Program Files/obs-studio/bin/64bit/libcurl.dll'
12:42:37.262: curl loaded successfully
12:42:37.273: [CoreAudio encoder]: Adding CoreAudio AAC encoder
12:42:37.273: Failed to load 'en-US' text for module: 'decklink-captions.dll'
12:42:37.274: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
12:42:37.304: [AMF] Unable to load 'amfrt64.dll', error code 126.
12:42:37.308: [AMF] AMF Test failed due to one or more errors.
12:42:37.308: Failed to initialize module 'enc-amf.dll'
12:42:37.333: [obs-browser]: Version 2.9.1
12:42:37.333: [obs-browser]: CEF Version 75.1.16+g16a67c4+chromium-75.0.3770.100
12:42:37.340: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
12:42:37.340: (126)
12:42:37.450: [obs-websocket] you can haz websockets (version 4.8.0)
12:42:37.450: [obs-websocket] qt version (compile-time): 5.10.1 ; qt version (run-time): 5.15.2
12:42:37.452: [obs-websocket] module loaded!
12:42:37.456: Couldn't find VLC installation, VLC video source disabled
12:42:37.463: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
12:42:37.464: No blackmagic support
12:42:37.468: ---------------------------------
12:42:37.468: Loaded Modules:
12:42:37.468: win-wasapi.dll
12:42:37.468: win-mf.dll
12:42:37.468: win-dshow.dll
12:42:37.468: win-decklink.dll
12:42:37.468: win-capture.dll
12:42:37.468: vlc-video.dll
12:42:37.468: text-freetype2.dll
12:42:37.468: rtmp-services.dll
12:42:37.468: obs-x264.dll
12:42:37.468: obs-websocket.dll
12:42:37.468: obs-vst.dll
12:42:37.468: obs-transitions.dll
12:42:37.468: obs-text.dll
12:42:37.468: obs-qsv11.dll
12:42:37.468: obs-outputs.dll
12:42:37.468: obs-multi-rtmp.dll
12:42:37.468: obs-filters.dll
12:42:37.468: obs-ffmpeg.dll
12:42:37.468: obs-browser.dll
12:42:37.468: image-source.dll
12:42:37.468: frontend-tools.dll
12:42:37.468: enc-amf.dll
12:42:37.468: decklink-ouput-ui.dll
12:42:37.468: decklink-captions.dll
12:42:37.468: coreaudio-encoder.dll
12:42:37.468: advanced-scene-switcher.dll
12:42:37.468: ---------------------------------
12:42:37.468: ==== Startup complete ===============================================
12:42:37.485: All scene data cleared
12:42:37.485: ------------------------------------------------
12:42:37.527: WASAPI: Device 'Speakers (Realtek High Definition Audio)' [48000 Hz] initialized
12:42:37.527: [Loaded global audio device]: 'Desktop Audio'
12:42:37.528: [WASAPISource::TryInitialize]:[Mic in at rear panel (Pink) (Realtek High Definition Audio)] Failed to activate client context: 88890004
12:42:37.528: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{716799c6-729b-472c-b4e7-b2989d197d52}' not found. Waiting for device
12:42:37.528: [Loaded global audio device]: 'Mic/Aux'
12:42:38.647: [Media Source 'Media Source']: settings:
12:42:38.647: input: N:/image48000.mp4
12:42:38.647: input_format: (null)
12:42:38.647: speed: 100
12:42:38.647: is_looping: no
12:42:38.647: is_hw_decoding: yes
12:42:38.647: is_clear_on_media_end: no
12:42:38.647: restart_on_activate: yes
12:42:38.647: close_when_inactive: no
12:42:38.667: Switched to scene 'Photo'
12:42:38.683: ------------------------------------------------
12:42:38.683: Loaded scenes:
12:42:38.683: - scene 'Photo':
12:42:38.683: - source: 'Image' (image_source)
12:42:38.683: - filter: 'Color Correction' (color_filter)
12:42:38.683: - scene 'Video 1':
12:42:38.683: - source: 'Media Source' (ffmpeg_source)
12:42:38.683: - monitoring: monitor and output
12:42:38.684: - filter: 'Render Delay' (gpu_delay)
12:42:38.684: ------------------------------------------------
12:42:38.927: [obs-websocket] server started successfully on port 4444
12:42:38.927: [obs-websocket] io thread started
12:42:43.501: User switched to scene 'Video 1'
12:42:52.884: User switched to scene 'Photo'
ffmpeg -i produces this:
Code:
ffmpeg version N-94251-gf83b46e218 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190621
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-
libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libs
hine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enab
le-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enabl
e-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nven
c --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 30.100 / 56. 30.100
libavcodec 58. 53.101 / 58. 53.101
libavformat 58. 28.101 / 58. 28.101
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 56.101 / 7. 56.101
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'image48000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.28.101
Duration: 00:03:21.73, start: 0.000000, bitrate: 408 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x360 [SAR 1:1 DAR 16:9], 277 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95
tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 09/15/2020.
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 09/15/2020.
Any suggestions would be appreciated.