(VP 13.0) Stuttery framerate when editing OBS-recorded file

Dibidoolandas wrote on 10/29/2016, 4:19 PM

Hi, I'm having an issue with files I've recorded from OBS. On their own, they playback fine and smooth. However when I edit them, in the preview window and when exported they fluctuate between smooth and stuttery frame rates. I've been advised to turn off smart resampling, which I've done, but it still hasn't solved the issue. You can see an example of this in a finished video here at 3 minutes or so . Note that in the same video recorded from the same clip, the frame rate turns smooth about halfway through (look around the 7.5 minute mark). Again, the source video looks as smooth as that second bit, just when brought into Vegas it makes it choppy.

Any idea what can be causing this, and what I can do to fix it? Thanks in advance.

Comments

ushere wrote on 10/29/2016, 9:24 PM

what codec are they recorded in?

NickHope wrote on 10/29/2016, 10:08 PM

OBS records with the x264 encoder. The 1080p OBS recordings I've made recently have played fine.

These 2 posts cover most things that you could try. Unfortunately lots of broken images at the moment in the 2nd one.

https://www.vegascreativesoftware.info/us/forum/fluent-preview-playback--100487/#ca615994

https://www.vegascreativesoftware.info/us/forum/why-does-my-rendered-video-look-bad-quality-troubleshooting-basics--103361/

Dibidoolandas wrote on 10/30/2016, 12:32 AM

OBS records with the x264 encoder. The 1080p OBS recordings I've made recently have played fine.

These 2 posts cover most things that you could try. Unfortunately lots of broken images at the moment in the 2nd one.

https://www.vegascreativesoftware.info/us/forum/fluent-preview-playback--100487/#ca615994

https://www.vegascreativesoftware.info/us/forum/why-does-my-rendered-video-look-bad-quality-troubleshooting-basics--103361/

Thanks for taking the time to respond. So I checked out your post and did a quick render after opening the footage in a clean Vegas project, matching media to the source (making sure the footage matched frame rate - 30), disabling resample, and rendering using CPU only with SONY AVC/MVC codec. I'm still seeing the output footage as less smooth than the source. I've followed your instructions for downloading MediaInfo, here's my log for the source file.

General
Complete name                            : E:\Videos\Doom\Doom.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 2.87 GiB
Duration                                 : 46 min 33 s
Overall bit rate                         : 8 815 kb/s
Encoded date                             : UTC 2016-07-03 20:07:20
Tagged date                              : UTC 2016-10-29 15:59:20
Writing application                      : Open Broadcaster Software v0.657b

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=60
Muxing mode                              : Container profile=High@3.1
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 46 min 33 s
Source duration                          : 46 min 33 s
Bit rate                                 : 8 679 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 30.000 FPS
Minimum frame rate                       : 29.412 FPS
Maximum frame rate                       : 30.303 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.314
Stream size                              : 2.82 GiB (98%)
Source stream size                       : 2.82 GiB (98%)
Writing library                          : x264 core 146 r2538 121396c
Encoding settings                        : cabac=0 / ref=1 / deblock=0:0:0 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=60 / keyint_min=6 / scenecut=0 / intra_refresh=0 / rc=crf / mbtree=0 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=0
Encoded date                             : UTC 2016-07-03 20:07:20
Tagged date                              : UTC 2016-07-03 20:07:20
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : sYCC
Matrix coefficients                      : BT.709
mdhd_Duration                            : 2793033

Audio
ID                                       : 1
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 46 min 33 s
Source duration                          : 46 min 32 s
Bit rate mode                            : Constant
Nominal bit rate                         : 128 kb/s
Channel(s)                               :  channel0
Channel(s)_Original                      : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Source stream size                       : 42.6 MiB (1%)
Language                                 : English
Encoded date                             : UTC 2016-07-03 20:07:20
Tagged date                              : UTC 2016-07-03 20:07:20

NickHope wrote on 10/30/2016, 1:05 AM

Your file is quite a bit different from the ones I have been recording using the "High Quality, Medium File Size" preset in OBS Studio 0.16.2 (64bit). Maybe try updating to the latest version? I would suggest uploading a sample but I guess it's going to be too big as it would have to be long. Here's the MediaInfo report for one of my recent recordings:

General
Complete name                            : D:\Videos\OBS-recordings\2016-10-20 18-34-30.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 2.28 MiB
Duration                                 : 43 s 767 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 436 kb/s
Writing application                      : Lavf57.41.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 43 s 767 ms
Bit rate                                 : 426 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 200 pixels
Display aspect ratio                     : 16:10
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.006
Stream size                              : 2.22 MiB (98%)
Writing library                          : x264 core 148 r2721 72d53ab
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=24 / lookahead_threads=8 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 43 s 734 ms
Bit rate mode                            : Variable
Bit rate                                 : 1 500 b/s
Maximum bit rate                         : 128 kb/s
Channel(s)                               : 2 channels
Channel(s)_Original                      : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 8.01 KiB (0%)
Title                                    : simple_aac_recording
Default                                  : Yes
Alternate group                          : 1
Quitter wrote on 10/30/2016, 1:22 AM

The problem should be the variable frame rate

Frame rate mode                          : Variable
Frame rate                                    : 30.000 FPS
Minimum frame rate                     : 29.412 FPS
Maximum frame rate                    : 30.303 FPS

Camcorder: Sony CX 520 VE
Hardware:   Acer NG-A717-72G-71YD, Win 11 , i7-8750 H, 16GB, GTX 1060 6GB, 250GB SSD, 1TB HDD
NLE:  Sony Vegas Pro 13.0 Build 453
            Vegas Pro 14.0 Build 270
            Vegas Pro 21.0 Build 300

 

NickHope wrote on 10/30/2016, 2:11 AM

Ah, didn't spot that. It's certainly not going to help. I just don't understand why some encoders use variable frame rate but then hardly vary it. Lots of phones do the same. YouTube used to do the same and still might. For your existing footage you can try quantizing the frames within the file (i.e. making the frame boundaries conform to a 29.97 fps timeline) using this script. Put it in C:\Program Files\Sony\Vegas Pro 13.0\Script Menu . More about that script in this thread.

Quitter wrote on 10/30/2016, 2:31 AM

Out of your script: This script will not work on video that has a truly variable frame rate.
Maybe its easier to convert the file with handbrake to a constant framrate of 30 FPS

And for the future change the setting of OBS

Last changed by Quitter on 10/30/2016, 2:33 AM, changed a total of 1 times.

Camcorder: Sony CX 520 VE
Hardware:   Acer NG-A717-72G-71YD, Win 11 , i7-8750 H, 16GB, GTX 1060 6GB, 250GB SSD, 1TB HDD
NLE:  Sony Vegas Pro 13.0 Build 453
            Vegas Pro 14.0 Build 270
            Vegas Pro 21.0 Build 300

 

NickHope wrote on 10/30/2016, 3:44 AM

Maybe its easier to convert the file with handbrake to a constant framrate of 30 FPS

Possibly. Depends how far the frame rate really varies within Dibidoolandas's files. If it's close to constant then disable resample might in effect make it behave like a constant frame rate on the Vegas timeline, then the stuttering might become just a preview issue rather than a problem in the rendered files. If so, and he needs to do more work with them in Vegas, he could render to an intermediate such as Sony XAVC Intra.

Actually I forgot that my script just looks at the average frame rate, and only truly lines each frame boundary up if the file is really just a constant frame rate stream reported as "variable". That's how my Samsung Note 2 footage was behaving a few months ago, but now I'm totally confused, as both MediaInfo and Vegas now seem to think those files are simply constant frame rate 29.970.

Dibidoolandas wrote on 10/30/2016, 10:13 AM

Maybe its easier to convert the file with handbrake to a constant framrate of 30 FPS

Possibly. Depends how far the frame rate really varies within Dibidoolandas's files. If it's close to constant then disable resample might in effect make it behave like a constant frame rate on the Vegas timeline, then the stuttering might become just a preview issue rather than a problem in the rendered files. If so, and he needs to do more work with them in Vegas, he could render to an intermediate such as Sony XAVC Intra.

Actually I forgot that my script just looks at the average frame rate, and only truly lines each frame boundary up if the file is really just a constant frame rate stream reported as "variable". That's how my Samsung Note 2 footage was behaving a few months ago, but now I'm totally confused, as both MediaInfo and Vegas now seem to think those files are simply constant frame rate 29.970.

So I've already disabled resample and re-rendered bits of the video with no luck (though some ghosting looks better). However it's confusing that it says it has a variable frame rate, since the 'CFR' box seems to be checked in my settings and the frame rate set at 30. Not sure what other setting there could possibly be, here's a snapshot. http://i.imgur.com/OkCrOwu.png

I suppose if it is a frame rate I could fix it in the OBS settings for future recordings and use Premiere or something for the files I've already recorded... I just don't see how this can't be a Vegas issue, since the source video looks so much more smooth. I trimmed the clip in VLC to show a comparison of the source footage with what is rendering out of Vegas. Again, if you look around 3:15 in this Youtube vid -   you'll see the same section of the source video here: https://1drv.ms/v/s!AiTPeNT5oR9jits6qh6OK4VdoNUVCA <-I recommend DLing it as opposed to viewing it in OneDrive as OneDrive makes it look worse.

Again I appreciate all the help. I haven't used Handbrake but I think converting the video may be another good possible solution.

Quitter wrote on 10/30/2016, 10:37 AM

i'm using OBS studio, and it is delivering a constant frame rate.
Maybe change on it

Camcorder: Sony CX 520 VE
Hardware:   Acer NG-A717-72G-71YD, Win 11 , i7-8750 H, 16GB, GTX 1060 6GB, 250GB SSD, 1TB HDD
NLE:  Sony Vegas Pro 13.0 Build 453
            Vegas Pro 14.0 Build 270
            Vegas Pro 21.0 Build 300

 

Dibidoolandas wrote on 10/30/2016, 3:36 PM

So as a follow-up, I ended up using Handbrake to convert the file to an mp4 with constant 30fps, and it seems to have handled the issue. Not sure there's any way to force Vegas to read the file as 30, but that seems to be the problem, so for now I'll just convert the files I've already recorded in Handbrake and try to use OBS Studio in the future to get a CFR.

If you can think of anything in Vegas though to make the existing clips work, I would still appreaciate saving the step. Thanks for the help.