Question / Help Framerate issues on stream only when locally recording.

The T

New Member
Heya; I dunno if this is just an issue with my computer's hardware power, or if it's something that may be fixed in the future, but this is the issue I'm having...

If I stream without doing a local recording, everything works fine. If I stream and record at the same time, and specifically with console capture (as a Video Capture Device), it gets really choppy both on the stream and on the local recording. Obviously the level of choppiness between the local recording and the stream isn't consistent, but both look pretty terrible.

No matter how much I lower the bitrate on the stream, the framerate issues persist. Are there any other settings I should be looking at?

Thanks for any help.

I can't attach the whole log file, so hopefully these parts are relevant?

here's some portions of the log since it won't let me post it all:
EDIT: I realized that in the part I pasted I had the bitrate for stream at 2000; most tests were at 1500 and even down to 500 issues were still occurring.

Code:
14:33:31: OBS 0.9.1 (windows)
14:33:31: CPU Name: AMD Phenom(tm) II X4 955 Processor
14:33:31: CPU Speed: 3214MHz
14:33:31: Physical Cores: 4, Logical Cores: 4
14:33:31: Physical Memory: 4095MB Total, 4095MB Free (NOTE: 4 gigs max is normal for 32bit programs)
14:33:31: Windows Version: 6.1 Build 7601 Service Pack 1
14:33:31: audio settings reset:
    samples per sec: 44100
    speakers:        2
    buffering (ms):  1000

18:03:14: encoder 'recording_h264' destroyed
18:03:14: encoder 'streaming_h264' destroyed
18:03:14: encoder 'Track4' destroyed
18:03:14: encoder 'Track3' destroyed
18:03:14: encoder 'Track2' destroyed
18:03:14: encoder 'Track1' destroyed
18:03:14: warning: 2 frames left in the queue on closing
18:03:14: output 'adv_stream' destroyed
18:03:14: output 'adv_file_output' destroyed
18:03:14: output 'adv_stream' (rtmp_output) created
18:03:14: output 'adv_file_output' (flv_output) created
18:03:14: encoder 'recording_h264' (obs_x264) created
18:03:14: encoder 'streaming_h264' (obs_x264) created
18:03:14: encoder 'adv_aac0' (ffmpeg_aac) created
18:03:14: encoder 'adv_aac1' (ffmpeg_aac) created
18:03:14: encoder 'adv_aac2' (ffmpeg_aac) created
18:03:14: encoder 'adv_aac3' (ffmpeg_aac) created
18:03:56: error:   error while decoding MB 76 42, bytestream td
18:03:58: [x264 encoder: 'streaming_h264'] preset: veryfast
18:03:58: [x264 encoder: 'streaming_h264'] profile: main
18:03:58: [x264 encoder: 'streaming_h264'] settings:
    bitrate:     1500
    buffer size: 1500
    fps_num:     30
    fps_den:     1
    width:       1024
    height:      576
    keyint:      60
    cbr:         on
18:03:58: Using ffmpeg "aac" aac encoder
18:03:58: FFmpeg AAC: bitrate: 160, channels: 2
18:03:58: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live.hitbox.tv/push...
18:03:59: [rtmp stream: 'adv_stream'] Connection to rtmp://live.hitbox.tv/push successful
18:03:59: [x264 encoder: 'recording_h264'] preset: fast
18:03:59: [x264 encoder: 'recording_h264'] settings:
    bitrate:     2000
    buffer size: 2000
    fps_num:     30
    fps_den:     1
    width:       1280
    height:      720
    keyint:      250
    cbr:         on
18:03:59: [flv output: 'adv_file_output'] Writing FLV file 'S:\fraps/2015-04-14 18-03-59.flv'...
18:05:55: [x264 encoder: 'streaming_h264'] settings:
    bitrate:     1500
    buffer size: 1500
    fps_num:     30
    fps_den:     1
    width:       1024
    height:      576
    keyint:      60
    cbr:         on
18:05:55: [x264 encoder: 'recording_h264'] settings:
    bitrate:     1500
    buffer size: 1500
    fps_num:     30
    fps_den:     1
    width:       1280
    height:      720
    keyint:      250
    cbr:         on
18:06:00: [flv output: 'adv_file_output'] FLV file output complete
18:06:00: Output 'adv_file_output': stopping
18:06:00: Output 'adv_file_output': Total frames: 3630
18:06:00: Output 'adv_file_output': Number of skipped frames: 1020 (28.0992%)
18:06:01: [x264 encoder: 'recording_h264'] settings:
    bitrate:     1500
    buffer size: 1500
    fps_num:     30
    fps_den:     1
    width:       1280
    height:      720
    keyint:      250
    cbr:         on
18:06:01: [x264 encoder: 'recording_h264'] preset: fast
18:06:01: [x264 encoder: 'recording_h264'] settings:
    bitrate:     1500
    buffer size: 1500
    fps_num:     30
    fps_den:     1
    width:       1280
    height:      720
    keyint:      250
    cbr:         on
18:06:01: [flv output: 'adv_file_output'] Writing FLV file 'S:\fraps/2015-04-14 18-06-01.flv'...
18:06:49: [flv output: 'adv_file_output'] FLV file output complete
18:06:49: Output 'adv_file_output': stopping
18:06:49: Output 'adv_file_output': Total frames: 1459
18:06:49: Output 'adv_file_output': Number of skipped frames: 454 (31.1172%)
18:06:50: [rtmp stream: 'adv_stream'] User stopped the stream
18:06:50: Output 'adv_stream': stopping
18:06:50: Output 'adv_stream': Total frames: 5180
18:06:50: Output 'adv_stream': Number of skipped frames: 1474 (28.4556%)
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
It's because you have two separate encoders active at the same time. If you want to stream and record with no extra CPU usage, you need to set the recording encoder to "(use stream encoder)".
 
Top