Question / Help New Versions "Stopping Recording" Error

eevay

New Member
FIRST OF ALL, I record at 240 FPS. This is because in premiere pro I can use frame blending to create a motion blur effect on my gameplay.
I would like to keep recording at this frame rate, so changing it isn't a solution.

THE ISSUE:

So I noticed newer versions of OBS (approximately ones above 20.0.0) produce a "Stopping Recording" error when I record at 240 FPS with them.
I've been using version 20.0.0 for a while now as a fix but I felt like posting it here may help bring a proper fix to light.

The OBS log produced after the issue happens is posted here too, in case that helps.

It does not give me the "encoding overload" message when this happens either, and recordings from v20.0.0 don't come out choppy at all.

LASTLY, yes I know I'm using a beta build. I was just trying it in case it fixed the issue, but it didn't. If anyone could help me find the source of the problem I would greatly appreciate it!


86321b72aa638e48e2e82a28215b9aab.png
 

Attachments

  • 2019-01-14 21-27-57.txt
    6.4 KB · Views: 61

koala

Active Member
You're using an experimental module of an experimental OBS version. I propose you work out issues directly with the developers. This will help development. Here in the forum no support can be given for this, because nobody knows how stable this experimental module is and what issues are still open with it.
 

eevay

New Member
You're using an experimental module of an experimental OBS version. I propose you work out issues directly with the developers. This will help development. Here in the forum no support can be given for this, because nobody knows how stable this experimental module is and what issues are still open with it.
would you like me to recreate the issue on a stable build and post that log instead? the issue is the same.
 

DEDRICK

Member
If you record to MKV you won't lose your recorded video to corruption due to not stopping recording.
While it doesn't solve your issue, you won't lose everything like you will by recording to MP4.

With MKV it doesn't matter, OBS can straight up crash and the file will still work. If you need MP4 then after recording goto File>Re-mux Recordings and turn it into a MP4 file.

There is a reason why there is a massive warning message when you have MP4 selected
 

eevay

New Member
If you record to MKV you won't lose your recorded video to corruption due to not stopping recording.
While it doesn't solve your issue, you won't lose everything like you will by recording to MP4.

With MKV it doesn't matter, OBS can straight up crash and the file will still work. If you need MP4 then after recording goto File>Re-mux Recordings and turn it into a MP4 file.

There is a reason why there is a massive warning message when you have MP4 selected

How long does it usually take to convert mkv to mp4 (I know this would change depending on PC specs, but in the past I've seen mkv to mp4 coversions take a REALLY long time)?

File sizes can be quite big, but not as insanely large as you'd think.
 

eevay

New Member
If you record to MKV you won't lose your recorded video to corruption due to not stopping recording.
While it doesn't solve your issue, you won't lose everything like you will by recording to MP4.

With MKV it doesn't matter, OBS can straight up crash and the file will still work. If you need MP4 then after recording goto File>Re-mux Recordings and turn it into a MP4 file.

There is a reason why there is a massive warning message when you have MP4 selected

UPDATE:
Using .mkv still doesn't fix the issue. It doesn't even create a file in place when I start recording, and the bug still occurs. I'm gonna post a log of the issue while using the latest released version of OBS instead of the beta here, maybe it will help.
 

Attachments

  • 2019-01-15 18-45-43.txt
    7 KB · Views: 45

DEDRICK

Member
I cannot replicate this issue, I can record 240 FPS without any problems. It is most likely your NVENC settings, see mine below.

Relevant OBS Settings

1547598696136.png

Disregard that is on Streaming, I am using Stream Encoder on Recording settings.
1547598712312.png


Code:
16:26:20.610: Switched to profile 'NVENC Test Profile' (NVENC_Test_Profile)
16:26:20.610: ------------------------------------------------
16:26:34.177: Settings changed (outputs)
16:26:34.177: ------------------------------------------------
16:29:52.537: ---------------------------------
16:29:52.537: video settings reset:
16:29:52.537:     base resolution:   2560x1440
16:29:52.537:     output resolution: 1920x1080
16:29:52.537:     downscale filter:  Lanczos
16:29:52.537:     fps:               240/1
16:29:52.537:     format:            NV12
16:29:52.537:     YUV mode:          709/Full
16:29:52.549: Settings changed (video)
16:29:52.549: ------------------------------------------------
16:30:05.879: Settings changed (outputs)
16:30:05.879: ------------------------------------------------
16:30:07.549: User switched to scene 'Desktop'
16:30:11.202: ---------------------------------
16:30:11.202: [NVENC encoder: 'streaming_h264'] settings:
16:30:11.202:     rate_control: CQP
16:30:11.202:     bitrate:      0
16:30:11.202:     cqp:          16
16:30:11.202:     keyint:       250
16:30:11.202:     preset:       hq
16:30:11.202:     profile:      high
16:30:11.202:     level:        auto
16:30:11.202:     width:        1920
16:30:11.202:     height:       1080
16:30:11.202:     2-pass:       true
16:30:11.202:     b-frames:     4
16:30:11.202:     GPU:          0
16:30:11.202:
16:30:11.392: warning: Using global_quality with nvenc is deprecated. Use qp instead.
16:30:11.485: [CoreAudio AAC: 'Track1']: settings:
16:30:11.485:     mode:          AAC
16:30:11.485:     bitrate:       160
16:30:11.485:     sample rate:   48000
16:30:11.485:     cbr:           on
16:30:11.485:     output buffer: 1536
16:30:11.491: ==== Recording Start ===============================================
16:30:11.491: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/Videos/2019-01-15 16-30-11.mkv'...
16:30:17.367: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/Videos/2019-01-15 16-30-11.mkv' stopped
16:30:17.367: Output 'adv_file_output': stopping
16:30:17.367: Output 'adv_file_output': Total frames output: 1364
16:30:17.367: Output 'adv_file_output': Total drawn frames: 1410
16:30:17.367: ==== Recording Stop ================================================
16:33:09.608: ==== Shutting down ==================================================

Code:
General
Unique ID                      : 240062028825478451060433493212131187555 (0xB49A43D5E535DA1A868F227F4EEF5B63)
Complete name                  : D:\Videos\2019-01-15 16-30-11.mkv
Format                         : Matroska
Format version                 : Version 4 / Version 2
File size                      : 1.45 MiB
Duration                       : 5 s 692 ms
Overall bit rate mode          : Variable
Overall bit rate               : 2 142 kb/s
Writing application            : Lavf57.84.100
Writing library                : Lavf57.84.100
ErrorDetectionType             : Per level 1

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L5.2
Format settings, CABAC         : Yes
Format settings, RefFrames     : 2 frames
Codec ID                       : V_MPEG4/ISO/AVC
Bit rate mode                  : Variable
Maximum bit rate               : 120 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
Original frame rate            : 240.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Default                        : Yes
Forced                         : No
Color range                    : Full
Matrix coefficients            : BT.709
DURATION                       : 00:00:05.692000000

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 5 s 692 ms
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Title                          : Track1
Default                        : Yes
Forced                         : No
DURATION                       : 00:00:05.675000000
 
Last edited:

eevay

New Member
I cannot replicate this issue, I can record 240 FPS without any problems. It is most likely your NVENC settings, see mine below.

Relevant OBS Settings

View attachment 42295
Disregard that is on Streaming, I am using Stream Encoder on Recording settings.
View attachment 42296

Code:
16:26:20.610: Switched to profile 'NVENC Test Profile' (NVENC_Test_Profile)
16:26:20.610: ------------------------------------------------
16:26:34.177: Settings changed (outputs)
16:26:34.177: ------------------------------------------------
16:29:52.537: ---------------------------------
16:29:52.537: video settings reset:
16:29:52.537:     base resolution:   2560x1440
16:29:52.537:     output resolution: 1920x1080
16:29:52.537:     downscale filter:  Lanczos
16:29:52.537:     fps:               240/1
16:29:52.537:     format:            NV12
16:29:52.537:     YUV mode:          709/Full
16:29:52.549: Settings changed (video)
16:29:52.549: ------------------------------------------------
16:30:05.879: Settings changed (outputs)
16:30:05.879: ------------------------------------------------
16:30:07.549: User switched to scene 'Desktop'
16:30:11.202: ---------------------------------
16:30:11.202: [NVENC encoder: 'streaming_h264'] settings:
16:30:11.202:     rate_control: CQP
16:30:11.202:     bitrate:      0
16:30:11.202:     cqp:          16
16:30:11.202:     keyint:       250
16:30:11.202:     preset:       hq
16:30:11.202:     profile:      high
16:30:11.202:     level:        auto
16:30:11.202:     width:        1920
16:30:11.202:     height:       1080
16:30:11.202:     2-pass:       true
16:30:11.202:     b-frames:     4
16:30:11.202:     GPU:          0
16:30:11.202:
16:30:11.392: warning: Using global_quality with nvenc is deprecated. Use qp instead.
16:30:11.485: [CoreAudio AAC: 'Track1']: settings:
16:30:11.485:     mode:          AAC
16:30:11.485:     bitrate:       160
16:30:11.485:     sample rate:   48000
16:30:11.485:     cbr:           on
16:30:11.485:     output buffer: 1536
16:30:11.491: ==== Recording Start ===============================================
16:30:11.491: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/Videos/2019-01-15 16-30-11.mkv'...
16:30:17.367: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/Videos/2019-01-15 16-30-11.mkv' stopped
16:30:17.367: Output 'adv_file_output': stopping
16:30:17.367: Output 'adv_file_output': Total frames output: 1364
16:30:17.367: Output 'adv_file_output': Total drawn frames: 1410
16:30:17.367: ==== Recording Stop ================================================
16:33:09.608: ==== Shutting down ==================================================

Code:
General
Unique ID                      : 240062028825478451060433493212131187555 (0xB49A43D5E535DA1A868F227F4EEF5B63)
Complete name                  : D:\Videos\2019-01-15 16-30-11.mkv
Format                         : Matroska
Format version                 : Version 4 / Version 2
File size                      : 1.45 MiB
Duration                       : 5 s 692 ms
Overall bit rate mode          : Variable
Overall bit rate               : 2 142 kb/s
Writing application            : Lavf57.84.100
Writing library                : Lavf57.84.100
ErrorDetectionType             : Per level 1

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L5.2
Format settings, CABAC         : Yes
Format settings, RefFrames     : 2 frames
Codec ID                       : V_MPEG4/ISO/AVC
Bit rate mode                  : Variable
Maximum bit rate               : 120 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
Original frame rate            : 240.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Default                        : Yes
Forced                         : No
Color range                    : Full
Matrix coefficients            : BT.709
DURATION                       : 00:00:05.692000000

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 5 s 692 ms
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Title                          : Track1
Default                        : Yes
Forced                         : No
DURATION                       : 00:00:05.675000000

And out of nowhere... it worked? Time to experiment.

Set B-Frames to 0... Issue happens again.

Set B-Frames to 2... ISSUE HAPPENS AGAIN.

I don't quite understand this, but thank you so much?

4 B-Frames is the answer I suppose!

Haha I guess I did find a solution- but now let me try it in game and with mp4 etc.

mp4: worked

VBR: didn't work

Guess I'll be using these settings haha, thank you again!

EDIT: I guess sometimes it still has the issue? Strange. Works usually though.
 
Last edited:

DEDRICK

Member
Don't record with VBR, CQP is better.

My setting of 16 though might be overkill, you can test from 23 and work your way down until you get the level of quality you need. If you don't care about space, then 16 or 15 (Lower is "better"/less compression/higher bitrate)
 

eevay

New Member
Don't record with VBR, CQP is better.

My setting of 16 though might be overkill, you can test from 23 and work your way down until you get the level of quality you need. If you don't care about space, then 16 or 15 (Lower is "better"/less compression/higher bitrate)

I'm aware, I usually use 18. I'll do some more testing.
 

Narcogen

Active Member
Also don't record directly to .mp4 unless you really like doing a recording for hours and then getting nothing, because there is always a chance that will happen.
 

eevay

New Member
Also don't record directly to .mp4 unless you really like doing a recording for hours and then getting nothing, because there is always a chance that will happen.

Yeah keep hearing stuff like that. I wonder why Premiere Pro doesn't just support mkv natively, probably some reason for it.
 

Narcogen

Active Member
Remuxing is fast, easy, reliable, and built-in to OBS. It is not worth recording in mp4 and risking losing hours of footage to avoid seconds of remuxing.
 

Swatz

New Member
I cannot replicate this issue, I can record 240 FPS without any problems. It is most likely your NVENC settings, see mine below.

Relevant OBS Settings

View attachment 42295
Disregard that is on Streaming, I am using Stream Encoder on Recording settings.
View attachment 42296

Code:
16:26:20.610: Switched to profile 'NVENC Test Profile' (NVENC_Test_Profile)
16:26:20.610: ------------------------------------------------
16:26:34.177: Settings changed (outputs)
16:26:34.177: ------------------------------------------------
16:29:52.537: ---------------------------------
16:29:52.537: video settings reset:
16:29:52.537:     base resolution:   2560x1440
16:29:52.537:     output resolution: 1920x1080
16:29:52.537:     downscale filter:  Lanczos
16:29:52.537:     fps:               240/1
16:29:52.537:     format:            NV12
16:29:52.537:     YUV mode:          709/Full
16:29:52.549: Settings changed (video)
16:29:52.549: ------------------------------------------------
16:30:05.879: Settings changed (outputs)
16:30:05.879: ------------------------------------------------
16:30:07.549: User switched to scene 'Desktop'
16:30:11.202: ---------------------------------
16:30:11.202: [NVENC encoder: 'streaming_h264'] settings:
16:30:11.202:     rate_control: CQP
16:30:11.202:     bitrate:      0
16:30:11.202:     cqp:          16
16:30:11.202:     keyint:       250
16:30:11.202:     preset:       hq
16:30:11.202:     profile:      high
16:30:11.202:     level:        auto
16:30:11.202:     width:        1920
16:30:11.202:     height:       1080
16:30:11.202:     2-pass:       true
16:30:11.202:     b-frames:     4
16:30:11.202:     GPU:          0
16:30:11.202:
16:30:11.392: warning: Using global_quality with nvenc is deprecated. Use qp instead.
16:30:11.485: [CoreAudio AAC: 'Track1']: settings:
16:30:11.485:     mode:          AAC
16:30:11.485:     bitrate:       160
16:30:11.485:     sample rate:   48000
16:30:11.485:     cbr:           on
16:30:11.485:     output buffer: 1536
16:30:11.491: ==== Recording Start ===============================================
16:30:11.491: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/Videos/2019-01-15 16-30-11.mkv'...
16:30:17.367: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/Videos/2019-01-15 16-30-11.mkv' stopped
16:30:17.367: Output 'adv_file_output': stopping
16:30:17.367: Output 'adv_file_output': Total frames output: 1364
16:30:17.367: Output 'adv_file_output': Total drawn frames: 1410
16:30:17.367: ==== Recording Stop ================================================
16:33:09.608: ==== Shutting down ==================================================

Code:
General
Unique ID                      : 240062028825478451060433493212131187555 (0xB49A43D5E535DA1A868F227F4EEF5B63)
Complete name                  : D:\Videos\2019-01-15 16-30-11.mkv
Format                         : Matroska
Format version                 : Version 4 / Version 2
File size                      : 1.45 MiB
Duration                       : 5 s 692 ms
Overall bit rate mode          : Variable
Overall bit rate               : 2 142 kb/s
Writing application            : Lavf57.84.100
Writing library                : Lavf57.84.100
ErrorDetectionType             : Per level 1

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L5.2
Format settings, CABAC         : Yes
Format settings, RefFrames     : 2 frames
Codec ID                       : V_MPEG4/ISO/AVC
Bit rate mode                  : Variable
Maximum bit rate               : 120 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
Original frame rate            : 240.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Default                        : Yes
Forced                         : No
Color range                    : Full
Matrix coefficients            : BT.709
DURATION                       : 00:00:05.692000000

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 5 s 692 ms
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Title                          : Track1
Default                        : Yes
Forced                         : No
DURATION                       : 00:00:05.675000000

Hey I have the same issue about 240 fps and I tried what you said but it didnt work. I used 2 key frame interval 0 GPU and 4 Max B frames. Any advice and whats the connection between the frames?
 
Top