Question / Help After re-encode music become rubbish

valpan1

New Member
hi.
i have 320kbps MP3 high quality music.
use for live stream background music.
for sure it is possible to add not re-encoded audio to video (just mux as ffmpeg).
but OBS encode music and in result in stream i see music with absolutely distorted high frequencies (no mater what bit-rate i set in OBS).
please help me to fix. i see many streams with good music quality.
i can't prepare local video file coz i use browser plugin to capture real time things for stream (with background music).
 
Last edited:

valpan1

New Member
this is all on VPS server.
tried same on my home PC and quality much better.
from VPS sounds like 64kbts. from PC like 128kbps (at least possible to listen this).
 

valpan1

New Member
maybe i need to install some codecs like "k-lite mega codec pack" on VPS?
Windows Server 2016. it is not "home" or "multimedia" version of Windows and perhaps it does not contain something for high quality sound encoding etc.
 
Last edited:

koala

Active Member
OBS will always re-encode everything it sends. If you want a bit better audio encoding, install the coreaudio codec: https://obsproject.com/forum/resources/obs-studio-enable-coreaudio-aac-encoder-windows.220/

Running OBS on a VPS is not recommended/not possible, because a VPS doesn't usually have hardware devices for graphics and audio. If you connect to your vps via rdp and you redirect the local audio to the rdp connection, the rdp connection replaces any audio device and installs a software emulation. The quality of the redirected audio is not suited for music. And the stream will stop the moment you disconnect the rdp session, because in this moment the rdp audio device is removed from the vps.
 

valpan1

New Member
i use rdp only to manage windows. nothing stopped when rdp slosed. music paying with VLC plugin and no matter open or closed rdp is.
no need in hardware coz audio and video encoding software and all works. but sound with poor quality.
will try coreaudio. thanks.
 

valpan1

New Member
sound became better. can you please check log to ensure everything is ok for good output?

15:27:20.851: CPU Name: Intel Core Processor (Broadwell, IBRS)
15:27:20.851: CPU Speed: 2394MHz
15:27:20.851: Physical Cores: 2, Logical Cores: 2
15:27:20.851: Physical Memory: 4095MB Total, 3012MB Free
15:27:20.851: Windows Version: 10.0 Build 14393 (revision: 2828; 64-bit)
15:27:20.852: Running as administrator: true
15:27:20.852: Aero is Enabled (Aero is always on for windows 8 and above)
15:27:20.852: Windows 10 Gaming Features:
15:27:20.853: Current Date/Time: 2019-03-18, 15:27:20
15:27:20.853: Browser Hardware Acceleration: true
15:27:20.853: Portable mode: false
15:27:21.400: OBS 23.0.2 (64-bit, windows)
15:27:21.400: ---------------------------------
15:27:21.429: ---------------------------------
15:27:21.430: audio settings reset:
15:27:21.430: samples per sec: 44100
15:27:21.430: speakers: 2
15:27:21.431: ---------------------------------
15:27:21.431: Initializing D3D11...
15:27:21.431: Available Video Adapters:
15:27:21.441: Loading up D3D11 on adapter Microsoft Basic Render Driver (0)
15:27:21.444: D3D11 loaded successfully, feature level used: 45056
15:27:22.727: ---------------------------------
15:27:22.727: video settings reset:
15:27:22.727: base resolution: 1920x1080
15:27:22.727: output resolution: 1920x1080
15:27:22.727: downscale filter: Bicubic
15:27:22.727: fps: 1/1
15:27:22.727: format: NV12
15:27:22.727: YUV mode: 601/Partial
15:27:22.728: NV12 texture support enabled
15:27:22.742: Audio monitoring device:
15:27:22.742: name: Default
15:27:22.742: id: default
15:27:22.742: ---------------------------------
15:27:23.800: [CoreAudio encoder]: Adding CoreAudio AAC encoder
15:27:23.802: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
15:27:23.866: [AMF] AMF Test failed due to one or more errors.
15:27:23.866: Failed to initialize module 'enc-amf.dll'
15:27:23.930: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
15:27:23.937: [obs-browser]: Version 2.3.0
15:27:23.938: [obs-browser]: Blacklisted device detected, disabling browser source hardware acceleration.
15:27:24.012: VLC found, VLC video source enabled
15:27:24.020: No blackmagic support
15:27:24.028: ---------------------------------
15:27:24.028: Loaded Modules:
15:27:24.028: win-wasapi.dll
15:27:24.028: win-mf.dll
15:27:24.028: win-dshow.dll
15:27:24.028: win-decklink.dll
15:27:24.028: win-capture.dll
15:27:24.028: vlc-video.dll
15:27:24.028: text-freetype2.dll
15:27:24.028: rtmp-services.dll
15:27:24.028: obs-x264.dll
15:27:24.028: obs-vst.dll
15:27:24.028: obs-transitions.dll
15:27:24.028: obs-text.dll
15:27:24.028: obs-qsv11.dll
15:27:24.028: obs-outputs.dll
15:27:24.028: obs-filters.dll
15:27:24.028: obs-ffmpeg.dll
15:27:24.028: obs-browser.dll
15:27:24.028: image-source.dll
15:27:24.028: frontend-tools.dll
15:27:24.028: enc-amf.dll
15:27:24.028: decklink-ouput-ui.dll
15:27:24.028: coreaudio-encoder.dll
15:27:24.028: advanced-scene-switcher.dll
15:27:24.028: ---------------------------------
15:27:24.028: ==== Startup complete ===============================================
15:27:24.058: All scene data cleared
15:27:24.058: ------------------------------------------------
15:27:24.142: Switched to scene 'Scene'
15:27:24.146: ------------------------------------------------
15:27:24.146: Loaded scenes:
15:27:24.146: - scene 'Scene':
15:27:24.146: - source: 'VLC Video Source' (vlc_source)
15:27:24.146: - source: 'Color Source' (color_source)
15:27:24.146: - source: 'Browser' (browser_source)
15:27:24.146: - source: 'Browser' (browser_source)
15:27:24.146: - source: 'Browser' (browser_source)
15:27:24.146: - source: 'Text (GDI+)' (text_gdiplus)
15:27:24.146: - source: 'Text (GDI+) 2' (text_gdiplus)
15:27:24.146: - scene 'reload':
15:27:24.146: - source: 'VLC Video Source' (vlc_source)
15:27:24.146: - source: 'Color Source' (color_source)
15:27:24.146: - source: 'update text' (text_gdiplus)
15:27:24.146: ------------------------------------------------
15:27:37.862: ---------------------------------
15:27:37.862: [x264 encoder: 'simple_h264_stream'] preset: veryfast
15:27:37.862: [x264 encoder: 'simple_h264_stream'] settings:
15:27:37.862: rate_control: CBR
15:27:37.862: bitrate: 3500
15:27:37.862: buffer size: 3500
15:27:37.862: crf: 0
15:27:37.862: fps_num: 1
15:27:37.862: fps_den: 1
15:27:37.862: width: 1920
15:27:37.862: height: 1080
15:27:37.862: keyint: 2
15:27:37.862:
15:27:37.892: [CoreAudio AAC: 'simple_aac']: settings:
15:27:37.892: mode: AAC
15:27:37.892: bitrate: 320
15:27:37.892: sample rate: 44100
15:27:37.892: cbr: on
15:27:37.892: output buffer: 1536
15:27:37.894: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
15:27:37.905: [rtmp stream: 'simple_stream'] Interface: Red Hat VirtIO Ethernet Adapter (ethernet, 4294 mbps)
15:27:38.064: [rtmp stream: 'simple_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
15:27:38.072: ==== Streaming Start ===============================================
 

valpan1

New Member
also should i set 320 kbps for best quality of live music? or it is useless due to youtube 160 kbps limit?
 
Top