Question / Help AMD Ryzen 7 1700 Dedicated Stream Machine Encoding Overload

hh9man

New Member
So i was trying to stream on youtube on 720p 60fps on x264, on 6000 bitrate with the slower preset and the profile on baseline. I read other threads and put threads=16 and crf=23 in the custom x264 options. My stream is still choppy, but it looks good. It doesnt say that im dropping fps, and my cpu never really goes above 60%. Heres the log file

https://pastebin.com/raw/BbKcTBLP
 

Attachments

  • obssettings.png
    obssettings.png
    15.2 KB · Views: 117

koala

Active Member
You are restricting the encoder to require insanely high cpu resources and to not produce the optimum output.
Set profile to high. This enables all internal encoding features, so the stream gets compressed best.
Set preset to medium or fast, or even faster if this still result in skipped frames due to encoding lag.

You will still get no really satisfactory stream, because your GPU card (GT 710) is not powerful enough for OBS to render a 720p60 video. This is your main issue.
Proof of this is in this streaming attempt from your log (see the "lagged frames due to rendering lag "):
23:36:08.757: [x264 encoder: 'streaming_h264'] preset: fast 23:36:08.757: [x264 encoder: 'streaming_h264'] profile: high 23:36:08.757: [x264 encoder: 'streaming_h264'] settings: 23:36:08.757: rate_control: CBR 23:36:08.757: bitrate: 3500 23:36:08.757: buffer size: 3500 23:36:08.757: crf: 0 23:36:08.757: fps_num: 60 23:36:08.757: fps_den: 1 23:36:08.757: width: 1280 23:36:08.757: height: 720 23:36:08.757: keyint: 120 23:36:08.757: 23:36:08.757: [x264 encoder: 'streaming_h264'] custom settings: scenecut=0 23:36:08.763: --------------------------------- 23:36:08.764: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: 3 23:36:08.764: 23:36:08.765: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-dfw.twitch.tv/app... 23:36:08.797: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps) 23:36:09.605: [rtmp stream: 'adv_stream'] Connection to rtmp://live-dfw.twitch.tv/app successful 23:36:09.610: ==== Streaming Start =============================================== 23:36:39.664: [rtmp stream: 'adv_stream'] User stopped the stream 23:36:39.664: Output 'adv_stream': stopping 23:36:39.664: Output 'adv_stream': Total frames output: 1744 23:36:39.664: Output 'adv_stream': Total drawn frames: 1620 (1853 attempted) 23:36:39.664: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 233 (12.6%) 23:36:39.667: ==== Streaming Stop ================================================
 
Top