Hello! Ill be honest and my only reason for joining is because I am in dire need of help. But lets move on..
So I have server that I got and my plan was to follow the nginx rtmp preconfigured virtual machine tutorial so I can stream to twitch. Not working out so well.
The general overview of the project. I wanted to stream to twitch but have this server encode for me. I didn't need to do this but I figured it would be a fun project. I am streaming over the lan with a 1gbs connection.
Gaming pc specs:
i7 3770 (i believe) 3.4ghz
16gb ram
ssd
1gb connection
60mb/s download
12mb/s upload
Server:
Vmware Esxi 6.5 (virtualization os) with the image of linux virutalized
2 Xeon 5650 6 core 2.7ghz cpus
48gb ram
500 hdd
1gb connection
Obs specs:
I have tried everything and this is what they currently are
x264
medium
keyint 2
kbs = 3500
I will post my nginx.conf also with the stream key deleted and my log files. Last night it was working fine once we changed the preset to medium from very fast, now not so much.
So compensation? Ill throw who ever helps me fix this shit $20 via paypal.. I am very tech savy and have a very good understanding of linux & video encoding and so does my partner and we cant figure this shit out. Sorry for my scattered brain write up, its how I think.
Log
So I have server that I got and my plan was to follow the nginx rtmp preconfigured virtual machine tutorial so I can stream to twitch. Not working out so well.
The general overview of the project. I wanted to stream to twitch but have this server encode for me. I didn't need to do this but I figured it would be a fun project. I am streaming over the lan with a 1gbs connection.
Gaming pc specs:
i7 3770 (i believe) 3.4ghz
16gb ram
ssd
1gb connection
60mb/s download
12mb/s upload
Server:
Vmware Esxi 6.5 (virtualization os) with the image of linux virutalized
2 Xeon 5650 6 core 2.7ghz cpus
48gb ram
500 hdd
1gb connection
Obs specs:
I have tried everything and this is what they currently are
x264
medium
keyint 2
kbs = 3500
I will post my nginx.conf also with the stream key deleted and my log files. Last night it was working fine once we changed the preset to medium from very fast, now not so much.
So compensation? Ill throw who ever helps me fix this shit $20 via paypal.. I am very tech savy and have a very good understanding of linux & video encoding and so does my partner and we cant figure this shit out. Sorry for my scattered brain write up, its how I think.
Code:
#user nobody;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
# rtmp stat
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
#allow 192.168.1.xxx;
deny all;
}
location /stat.xsl {
root /usr/src/nginx/nginx-rtmp-module;
}
# rtmp control
location /control {
rtmp_control all;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
rtmp {
server {
listen 1935;
chunk_size 8192;
application transcode {
live on;
record off;
#exec /usr/local/bin/ffmpeg -re -i rtmp://localhost:1935/transcode/pass -c copy -f flv rtmp://localhost:1935/stream/encoded;
exec /usr/local/bin/ffmpeg -re -i rtmp://localhost:1935/transcode/pass -vcodec libx264 -preset medium -x264opts nal-hrd=cbr:force-cfr=1:keyint=30 -r 30 -b:v 2800k -minrate 2500k -maxrate 3500k -bufsize 3000k -s 1280x720 -sws_flags spline -acodec copy -f flv rtmp://localhost:1935/stream/encoded;
}
application stream {
live on;
record off;
#RTMP URL's:rtmp://192.168.0.19/transcode
#http://bashtech.net/twitch/ingest.php
push rtmp://live-dfw.twitch.tv/app/mystreamkey;
}
}
}
Log
Code:
18:27:36.702: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
18:27:36.702: CPU Speed: 3392MHz
18:27:36.702: Physical Cores: 4, Logical Cores: 8
18:27:36.702: Physical Memory: 2047MB Total, 2047MB Free (NOTE: 2 or 4 gigs max is normal for 32bit programs)
18:27:36.702: Windows Version: 10.0 Build 14393 (revision: 447; 64-bit)
18:27:36.702: Running as administrator: false
18:27:36.702: Aero is Enabled (Aero is always on for windows 8 and above)
18:27:36.702: Portable mode: false
18:27:36.712: OBS 17.0.0 (windows)
18:27:36.712: ---------------------------------
18:27:36.713: ---------------------------------
18:27:36.713: audio settings reset:
18:27:36.713: samples per sec: 44100
18:27:36.713: speakers: 2
18:27:36.715: ---------------------------------
18:27:36.715: Initializing D3D11..
18:27:36.715: Available Video Adapters:
18:27:36.717: Adapter 1: NVIDIA GeForce GTX 1060 3GB
18:27:36.717: Dedicated VRAM: 3183149056
18:27:36.718: Shared VRAM: 1111752704
18:27:36.718: output 1: pos={0, 0}, size={1920, 1080}, attached=true
18:27:36.720: Loading up D3D11 on adapter NVIDIA GeForce GTX 1060 3GB (0)
18:27:36.741: D3D11 loaded sucessfully, feature level used: 45056
18:27:37.310: ---------------------------------
18:27:37.310: video settings reset:
18:27:37.310: base resolution: 1920x1080
18:27:37.310: output resolution: 1280x720
18:27:37.310: downscale filter: Lanczos
18:27:37.310: fps: 30/1
18:27:37.310: format: NV12
18:27:37.311: ---------------------------------
18:27:37.313: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
18:27:37.314: [AMF Encoder] Unable to load 'amfrt32.dll', error code 126.
18:27:37.314: [AMF Encoder] Unable to load 'amfrt32.dll', error code 126.
18:27:37.331: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libcef.dll' not found, loading of module failed
18:27:37.331: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libEGL.dll' not found, loading of module failed
18:27:37.332: Required module function 'obs_module_load' in module '../../obs-plugins/32bit/libGLESv2.dll' not found, loading of module failed
18:27:37.333: Failed to load 'en-US' text for module: 'obs-browser.dll'
18:27:37.333: [browser_source: 'Version: 1.27.0']
18:27:37.335: NVENC supported
18:27:37.395: Couldn't find VLC installation, VLC video source disabled
18:27:37.400: No blackmagic support
18:27:37.441: ---------------------------------
18:27:37.442: Loaded Modules:
18:27:37.442: win-wasapi.dll
18:27:37.442: win-mf.dll
18:27:37.442: win-dshow.dll
18:27:37.442: win-decklink.dll
18:27:37.442: win-capture.dll
18:27:37.442: vlc-video.dll
18:27:37.442: text-freetype2.dll
18:27:37.442: rtmp-services.dll
18:27:37.442: obs-x264.dll
18:27:37.442: obs-transitions.dll
18:27:37.442: obs-text.dll
18:27:37.442: obs-qsv11.dll
18:27:37.442: obs-outputs.dll
18:27:37.442: obs-filters.dll
18:27:37.442: obs-ffmpeg.dll
18:27:37.442: obs-browser.dll
18:27:37.442: image-source.dll
18:27:37.442: frontend-tools.dll
18:27:37.442: enc-amf.dll
18:27:37.442: coreaudio-encoder.dll
18:27:37.442: ==== Startup complete ===============================================
18:27:37.444: All scene data cleared
18:27:37.444: ------------------------------------------------
18:27:37.468: WASAPI: Device 'Speakers / Headphones (Realtek High Definition Audio)' initialized
18:27:37.476: WASAPI: Device 'Microphone (3- USB PnP Sound Device)' initialized
18:27:37.507: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
18:27:37.757: Switched to scene 'Scene'
18:27:37.758: ------------------------------------------------
18:27:37.758: Loaded scenes:
18:27:37.758: - scene 'Scene':
18:27:37.758: - source: 'Game Capture' (game_capture)
18:27:37.758: - source: 'c290' (dshow_input)
18:27:37.758: - source: 'alerts' (browser_source)
18:27:37.758: - source: 'Chat' (browser_source)
18:27:37.758: ------------------------------------------------
18:27:37.841: ---------------------------------
18:27:37.841: [DShow Device: 'c290'] settings updated:
18:27:37.841: video device: HD Pro Webcam C920
18:27:37.841: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&8e6fc1&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
18:27:37.841: resolution: 640x480
18:27:37.841: fps: 30.00 (interval: 333333)
18:27:37.841: format: YUY2
18:27:37.856: DShow: Run failed (0x800705AA): Insufficient system resources exist to complete the requested service.
18:27:37.856:
18:27:37.947: Update check: last known remote version is 17.0.1
18:27:42.323: ==== Shutting down ==================================================
18:27:42.329: Switched to scene '(null)'
18:27:42.377: WASAPI: Device 'Speakers / Headphones (Realtek High Definition Audio)' Terminated
18:27:42.383: WASAPI: Device 'Microphone (3- USB PnP Sound Device)' Terminated
18:27:42.386: All scene data cleared
18:27:42.386: ------------------------------------------------
18:27:42.468: Freeing OBS context data
18:27:48.055: == Profiler Results =============================
18:27:48.055: run_program_init: 1150.62 ms
18:27:48.055: ┣OBSApp::AppInit: 1.826 ms
18:27:48.055: ┃ ┗OBSApp::InitLocale: 1.055 ms
18:27:48.055: ┗OBSApp::OBSInit: 1140.44 ms
18:27:48.055: ┣obs_startup: 1.898 ms
18:27:48.055: ┗OBSBasic::OBSInit: 1116.03 ms
18:27:48.055: ┣OBSBasic::InitBasicConfig: 0.49 ms
18:27:48.055: ┣OBSBasic::ResetAudio: 0.476 ms
18:27:48.055: ┣OBSBasic::ResetVideo: 597.974 ms
18:27:48.056: ┣OBSBasic::InitOBSCallbacks: 0.014 ms
18:27:48.056: ┣OBSBasic::InitHotkeys: 0.048 ms
18:27:48.056: ┣obs_load_all_modules: 130.079 ms
18:27:48.056: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.636 ms
18:27:48.056: ┃ ┣obs_init_module(enc-amf.dll): 0.473 ms
18:27:48.056: ┃ ┣obs_init_module(frontend-tools.dll): 1.844 ms
18:27:48.056: ┃ ┣obs_init_module(image-source.dll): 0.003 ms
18:27:48.056: ┃ ┣obs_init_module(obs-browser.dll): 0.104 ms
18:27:48.056: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.769 ms
18:27:48.056: ┃ ┣obs_init_module(obs-filters.dll): 0.007 ms
18:27:48.056: ┃ ┣obs_init_module(obs-outputs.dll): 0.003 ms
18:27:48.056: ┃ ┣obs_init_module(obs-qsv11.dll): 52.816 ms
18:27:48.056: ┃ ┣obs_init_module(obs-text.dll): 0.417 ms
18:27:48.056: ┃ ┣obs_init_module(obs-transitions.dll): 0.004 ms
18:27:48.056: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
18:27:48.056: ┃ ┣obs_init_module(rtmp-services.dll): 0.266 ms
18:27:48.056: ┃ ┣obs_init_module(text-freetype2.dll): 0.043 ms
18:27:48.056: ┃ ┣obs_init_module(vlc-video.dll): 0.074 ms
18:27:48.056: ┃ ┣obs_init_module(win-capture.dll): 0.058 ms
18:27:48.056: ┃ ┣obs_init_module(win-decklink.dll): 3.523 ms
18:27:48.056: ┃ ┣obs_init_module(win-dshow.dll): 1.436 ms
18:27:48.056: ┃ ┣obs_init_module(win-mf.dll): 35.949 ms
18:27:48.057: ┃ ┣obs_init_module(win-wasapi.dll): 0.011 ms
18:27:48.057: ┃ ┗reset_win32_symbol_paths: 0.135 ms
18:27:48.057: ┣OBSBasic::ResetOutputs: 0.798 ms
18:27:48.057: ┣OBSBasic::CreateHotkeys: 0.037 ms
18:27:48.057: ┣OBSBasic::InitService: 0.135 ms
18:27:48.057: ┣OBSBasic::InitPrimitives: 0.303 ms
18:27:48.057: ┗OBSBasic::Load: 314.491 ms
18:27:48.057: obs_hotkey_thread(25 ms): min=0.003 ms, median=0.008 ms, max=0.25 ms, 99th percentile=0.114 ms, 100% below 25 ms
18:27:48.057: audio_thread(Audio): min=0.001 ms, median=0.053 ms, max=1.305 ms, 99th percentile=0.203 ms
18:27:48.057: obs_video_thread(33.3333 ms): min=0.282 ms, median=1.065 ms, max=269.414 ms, 99th percentile=11.523 ms, 99.3197% below 33.333 ms
18:27:48.057: ┣tick_sources: min=0 ms, median=0.009 ms, max=268.076 ms, 99th percentile=9.615 ms
18:27:48.057: ┣render_displays: min=0.001 ms, median=0.553 ms, max=2.611 ms, 99th percentile=1.863 ms
18:27:48.057: ┗output_frame: min=0.275 ms, median=0.481 ms, max=1.903 ms, 99th percentile=1.716 ms
18:27:48.057: ┣gs_context(video->graphics): min=0.115 ms, median=0.179 ms, max=0.9 ms, 99th percentile=0.882 ms
18:27:48.057: ┃ ┣render_video: min=0.018 ms, median=0.047 ms, max=0.219 ms, 99th percentile=0.156 ms
18:27:48.057: ┃ ┃ ┣render_main_texture: min=0.004 ms, median=0.021 ms, max=0.127 ms, 99th percentile=0.082 ms
18:27:48.057: ┃ ┃ ┣render_output_texture: min=0.003 ms, median=0.01 ms, max=0.133 ms, 99th percentile=0.066 ms
18:27:48.057: ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.01 ms, max=0.105 ms, 99th percentile=0.055 ms
18:27:48.058: ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=0.08 ms, 99th percentile=0.011 ms
18:27:48.058: ┃ ┣download_frame: min=0 ms, median=0.002 ms, max=0.008 ms, 99th percentile=0.008 ms
18:27:48.058: ┃ ┗gs_flush: min=0.06 ms, median=0.124 ms, max=0.862 ms, 99th percentile=0.771 ms
18:27:48.058: ┗output_video_data: min=0.2 ms, median=0.284 ms, max=1.054 ms, 99th percentile=0.998 ms
18:27:48.058: video_thread(video): min=0.001 ms, median=0.002 ms, max=0.004 ms, 99th percentile=0.004 ms
18:27:48.058: =================================================
18:27:48.058: == Profiler Time Between Calls ==================
18:27:48.058: obs_hotkey_thread(25 ms): min=24.918 ms, median=25.44 ms, max=26.212 ms, 70.2222% within ±2% of 25 ms (0% lower, 29.7778% higher)
18:27:48.058: obs_video_thread(33.3333 ms): min=30.574 ms, median=33.333 ms, max=269.428 ms, 97.2603% within ±2% of 33.333 ms (1.36986% lower, 1.36986% higher)
18:27:48.058: =================================================
18:27:48.069: Number of memory leaks: 17