Question / Help OBS files cause sony vegas pro 12 to crash

Pokachu105

New Member
Files from DXTory work just fine. (.avi)
If I put OBS files into Sony Vegas Pro 12 after about 30 seconds the program crashes. (.mp4)
This is really bugging me, as I really want to just record some videos without vegas pro crashing.
Thanks in advance for any answers :)
 
Well, we're going to need more information. We can't just somehow fix your problems without knowing anything about your settings. So first post a log as is stated at the top of this subforum, and only then perhaps we could help you.
 

Pokachu105

New Member
Code:
16:13:06: Open Broadcaster Software v0.625b - 64bit ( ^ω^)
16:13:06: -------------------------------
16:13:06: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
16:13:06: CPU Speed: 3309MHz
16:13:06: Physical Memory:  16367MB Total, 12472MB Free
16:13:06: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
16:13:06: monitor 1: pos={0, 0}, size={1920, 1080}
16:13:06: Windows Version: 6.1 Build 7601 S
16:13:06: Aero is Disabled
16:13:06: -------------------------------
16:13:06: OBS Modules:
16:13:06: Base Address     Module
16:13:06: 000000003F080000 OBS.exe
16:13:06: 00000000E9650000 OBSApi.dll
16:13:06: 00000000F6CF0000 DShowPlugin.dll
16:13:06: 00000000F8830000 GraphicsCapture.dll
16:13:06: 00000000FA0C0000 NoiseGate.dll
16:13:06: 00000000F8800000 PSVPlugin.dll
16:13:06: ------------------------------------------
16:13:06: Adapter 1
16:13:06:   Video Adapter: NVIDIA GeForce GTX 560 Ti  
16:13:06:   Video Adapter Dedicated Video Memory: 1024917504
16:13:06:   Video Adapter Shared System Memory: 3221106688
16:13:06:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
16:13:06: =====Stream Start: 2014-07-28, 16:13:06===============================================
16:13:06:   Multithreaded optimizations: On
16:13:06:   Base resolution: 1920x1080
16:13:06:   Output resolution: 1920x1080
16:13:06: ------------------------------------------
16:13:06: Loading up D3D10 on NVIDIA GeForce GTX 560 Ti (Adapter 1)...
16:13:06: ------------------------------------------
16:13:06: Audio Format: 48000 Hz
16:13:06: ------------------------------------------
16:13:06: Audio Channels: 2 Ch
16:13:06: Playback device {0.0.0.00000000}.{5369a439-e1c5-4252-98df-c720b3666803}
16:13:06: ------------------------------------------
16:13:06: Using desktop audio input: Speakers (Realtek High Definition Audio)
16:13:06: Global Audio time adjust: 0
16:13:06: ------------------------------------------
16:13:06: Using auxilary audio input: Microphone (Realtek High Definition Audio)
16:13:06: Mic time offset: 0
16:13:06: ------------------------------------------
16:13:06: Audio Encoding: AAC
16:13:06:     bitrate: 128
16:13:06: Using graphics capture
16:13:06: Trying to hook process: csgo.exe
16:13:06: Scene buffering time set to 700
16:13:06: x264: VBV maxrate specified, but no bufsize, ignored
16:13:06: ------------------------------------------
16:13:06: Video Encoding: x264
16:13:06:     fps: 30
16:13:06:     width: 1920, height: 1080
16:13:06:     preset: veryfast
16:13:06:     profile: high
16:13:06:     keyint: 250
16:13:06:     CBR: no
16:13:06:     CFR: yes
16:13:06:     max bitrate: 1000
16:13:06:     buffer size: 0
16:13:06:     quality: 10
16:13:06: ------------------------------------------
16:13:08: SharedTexCapture hooked
16:18:52: Total frames encoded: 10344, total frames duplicated: 40 (0.39%)
16:18:52: Total frames rendered: 10362, number of late frames: 3 (0.03%) (it's okay for some frames to be late)
16:18:52: 
16:18:52: Profiler time results:
16:18:52: 
16:18:52: ==============================================================
16:18:52: video thread frame - [100%] [avg time: 0.958 ms] [children: 37.4%] [unaccounted: 62.6%]
16:18:52: | scene->Preprocess - [0.209%] [avg time: 0.002 ms]
16:18:52: | GPU download and conversion - [37.2%] [avg time: 0.356 ms] [children: 28.4%] [unaccounted: 8.77%]
16:18:52: | | flush - [19.2%] [avg time: 0.184 ms]
16:18:52: | | CopyResource - [9.08%] [avg time: 0.087 ms]
16:18:52: | | conversion to 4:2:0 - [0.104%] [avg time: 0.001 ms]
16:18:52: Convert444Threads - [100%] [avg time: 1.016 ms] [children: 99.4%] [unaccounted: 0.591%]
16:18:52: | Convert444toNV12 - [99.4%] [avg time: 1.01 ms]
16:18:52: encoder thread frame - [100%] [avg time: 2.144 ms] [children: 2.94%] [unaccounted: 97.1%]
16:18:52: | sending stuff out - [2.94%] [avg time: 0.063 ms]
16:18:52: ==============================================================
16:18:52: 
16:18:52: 
16:18:52: Profiler CPU results:
16:18:52: 
16:18:52: ==============================================================
16:18:52: video thread frame - [cpu time: avg 0.127 ms, total 1326.01 ms] [avg calls per frame: 1]
16:18:52: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
16:18:52: | GPU download and conversion - [cpu time: avg 0.049 ms, total 514.805 ms] [avg calls per frame: 1]
16:18:52: | | flush - [cpu time: avg 0.031 ms, total 327.603 ms] [avg calls per frame: 1]
16:18:52: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
16:18:52: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
16:18:52: Convert444Threads - [cpu time: avg 0.993 ms, total 20545.3 ms] [avg calls per frame: 2]
16:18:52: | Convert444toNV12 - [cpu time: avg 0.988 ms, total 20436.1 ms] [avg calls per frame: 2]
16:18:52: encoder thread frame - [cpu time: avg 1.16 ms, total 11996.5 ms] [avg calls per frame: 1]
16:18:52: | sending stuff out - [cpu time: avg 0.027 ms, total 280.801 ms] [avg calls per frame: 1]
16:18:52: ==============================================================
16:18:52: 
16:18:52: =====Stream End: 2014-07-28, 16:18:52=================================================


Last game capture log:
2014-07-28, 16:13:06: we're booting up: 
16:13:06: CaptureThread: attached to process csgo.exe
16:13:07: D3D9 Present
16:13:07: GL Present
16:13:07: (half life scientist) everything..  seems to be in order
16:13:08: D3D9EndScene called
16:13:08: D3DPRESENT_PARAMETERS {
16:13:08:     BackBufferWidth: 1920
16:13:08:     BackBufferHeight: 1080
16:13:08:     BackBufferFormat: D3DFMT_A8R8G8B8
16:13:08:     BackBufferCount: 1
16:13:08:     MultiSampleType: D3DMULTISAMPLE_NONE
16:13:08:     MultiSampleQuality: 0
16:13:08:     SwapEffect: D3DSWAPEFFECT_DISCARD
16:13:08:     hDeviceWindow: 2360374
16:13:08:     Windowed: false
16:13:08:     EnableAutoDepthStencil: true
16:13:08:     AutoDepthStencilFormat: D3DFMT_D24S8
16:13:08:     Flags: None
16:13:08:     FullScreen_RefreshRateInHz: 60
16:13:08:     PresentationInterval: 2147483648
16:13:08: };
16:13:08: successfully set up d3d9 hooks
16:13:08: D3D9Present called
16:13:08: DoD3D9GPUHook: success
16:13:09: D3DSURFACE_DESC {
16:13:09:     Format: D3DFMT_A8R8G8B8
16:13:09:     Type: D3DRTYPE_SURFACE
16:13:09:     Usage: D3DUSAGE_RENDERTARGET 
16:13:09:     Pool: D3DPOOL_DEFAULT
16:13:09:     MultiSampleType: D3DMULTISAMPLE_NONE
16:13:09:     MultiSampleQuality: 0
16:13:09:     Width: 1920
16:13:09:     Height: 1080
16:13:09: };
16:13:09: successfully capturing d3d9 frames via GPU
16:18:52: ---------------------- Cleared D3D9 Capture ----------------------
16:18:52: received restart event, capturing
16:18:52: DoD3D9GPUHook: success
16:18:52: D3D9EndScene called
16:18:52: D3D9Present called
[code]
 
Try a couple of the following things:
  • Set the buffer size equal to the max bitrate (or rather, disable the custom buffer size thing)
  • In the advanced submenu, set the Keyframe Interval to 2
Then see if it still crashes. If it still crashes, try to enable CBR instead of using VBR.

By the way, you might want to consider recording in 720p instead, and using a higher bitrate as well. 1000kbps is not enough for 720p, let alone for 1080p. Try something more like 2000 - 2765kbps. If you want to stream, however, do check if you have a high enough upload speed.
 

alpinlol

Active Member
Try a couple of the following things:
  • Set the buffer size equal to the max bitrate (or rather, disable the custom buffer size thing)
  • In the advanced submenu, set the Keyframe Interval to 2
Then see if it still crashes. If it still crashes, try to enable CBR instead of using VBR.

By the way, you might want to consider recording in 720p instead, and using a higher bitrate as well. 1000kbps is not enough for 720p, let alone for 1080p. Try something more like 2000 - 2765kbps. If you want to stream, however, do check if you have a high enough upload speed.

no


dont change the buffer you shouldnt have to use cbr (constant bitrate) sinc your bitrate is fluctuating due to the buffer set on 0 the encoder decides what bitrate is needed to achieve the wanted quality each frame

the most important thing is actually the CFR (constant framerate)

since you only want to record you are fine with 1080p but if you would have any ingame issues while recording go into advance and use superfast or ultrafast preset thats everything the encoder takes whatever bitrate is needed but it doesnt look like you need to change your preset since your late and duplicated frames are in an accaptable % range
 

Pokachu105

New Member
no


dont change the buffer you shouldnt have to use cbr (constant bitrate) sinc your bitrate is fluctuating due to the buffer set on 0 the encoder decides what bitrate is needed to achieve the wanted quality each frame

the most important thing is actually the CFR (constant framerate)

since you only want to record you are fine with 1080p but if you would have any ingame issues while recording go into advance and use superfast or ultrafast preset thats everything the encoder takes whatever bitrate is needed but it doesnt look like you need to change your preset since your late and duplicated frames are in an accaptable % range

My CPU already starts getting quite hot (70c, 75c) I don't really want to risk it getting any hotter. I can record just fine, but when I'm editing in sony vegas and I put the .mp4 file in about 30 secs later vegas pro crashes.
 

alpinlol

Active Member
so you can actually import the file but sony crashes afterwards?

and your cpu temps are fine you are probably running with an boxed cooler, you shouldnt consider any problems as long as it stays below 90°C your cpu would throttle itself at ~97-98°C to prevent it form taking any damage, yet its not healthy for the cpu if its 24/7 at ~70°C
 
Last edited:

Pokachu105

New Member
hmm, I can upload a .mp4 file recorded with my settings. It looks good, mic quality is also good. Not sure how it turned out a fail to be honest (not sure what you mean, I can watch it in gom player okay too)
so you can actually import the fail but sony crashes afterwards?

and your cpu temps are fine you are probably running with an boxed cooler, you shouldnt consider any problems as long as it stays below 90°C your cpu would throttle itself at ~97-98°C to prevent it form taking any damage, yet its not healthy for the cpu if its 24/7 at ~70°C
 

alpinlol

Active Member
hmm, I can upload a .mp4 file recorded with my settings. It looks good, mic quality is also good. Not sure how it turned out a fail to be honest (not sure what you mean, I can watch it in gom player okay too)

my question was if you can import the recorded file since you said "I can record just fine, but when I'm editing in sony vegas and I put the .mp4 file in about 30 secs later vegas pro crashes." that tells me that you are actually able to import the file but 30 seconds after you imported the file it crashes which would mean that the problem is completly on sony vegas
 
no

dont change the buffer you shouldnt have to use cbr (constant bitrate) sinc your bitrate is fluctuating due to the buffer set on 0 the encoder decides what bitrate is needed to achieve the wanted quality each frame

the most important thing is actually the CFR (constant framerate)

Err, I'm suggesting things he could try. We already knew he was using CFR, so I didn't comment on that. However, he is obviously having problems, so I'm just giving him options he should try out. I'm just thinking setting the buffer to 0 is kind of strange. With VBR the bitrate fluctuates by itself without needing to set a custom buffer size, since it is using VBR after all. The encoder will figure out on its own how much it needs.

Sometimes Vegas has some issues with certain files in relation with the bitrate. That's why I addressed this part first, and it's just something worth trying out. Nothing else really stands out. So just give it a try and see if it works.

Also, Pokachu, see if you can import it into other video editors without issues.
 
Last edited:

alpinlol

Active Member
Err, I'm suggesting things he could try. We already knew he was using CFR, so I didn't comment on that. However, he is obviously having problems, so I'm just giving him options he should try out. I'm just thinking setting the buffer to 0 is kind of strange. With VBR the bitrate fluctuates by itself without needing to set a custom buffer size, since it is using VBR after all. The encoder will figure out on its own how much it needs.

Sometimes Vegas has some issues with certain files in relation with the bitrate. That's why I addressed this part first, and it's just something worth trying out. Nothing else really stands out. So just give it a try and see if it works.

Also, Pokachu, see if you can import it into other video editors without issues.


in this case you fix the bitrate and set as example the bitrate to somewhat 40k and the buffer to 40k and if you want to have the best chance of a stable bitrate you also activate cbr if this would be the compatibility problem

then he would also not really need the quality set to 10 since cbr is active
 
Last edited:
in this case you fix the bitrate and set as example the bitrate to somewhat 40k and the buffer to 40k and if you want to have the best chance of a stable bitrate you also activate cbr if this would be the compatibility problem

then he would also not really need the quality set to 10 since cbr is active

That is automatically taken care of as you cannot actually change the quality setting when you have CBR enabled. It is grayed out.

Also, I would just try anything in terms of bitrate, although I would absolutely recommend a lower bitrate than that to try things out at first. Also, you don't need to set the buffer seperately as this is taken care of automatically as long as you don't enable the Custom Buffer Size option.

I would start out at a lower bitrate as Vegas can have issues with higher bitrate files. This is not an unknown issue, as some NLE's and players have a tendency to choke when it comes to ultra high bitrates. You want to rule out these kind of things when it comes to basic troubleshooting. Tweaking settings for recording and/or livestreaming purposes only comes after this step is finished.

Also, 40k is a absolutely huge bitrate to just suggest right off the bat, especially since we're currently troubleshooting here. Even if you were going for a 1080p@60FPS recording with 0.2 bits per pixel you would get a recommended bitrate of approximately 25k. Of course bits per pixel is not a measure of quality, but this is just an example. However, the bitrate is arbitrary and using high bitrates is actually irrevelant at this moment.
 
Last edited:

alpinlol

Active Member
if you read carefully it wasnt a suggestion or a recommendation
it was just an example to get an scenario going
 
Which is a suggestion/recommendation. Like I said, we are troubleshooting, so we need concrete, actionable steps that make sense. Suggesting a 40k bitrate at the troubleshooting stage is just horrible, and what's the point of "getting a scenario going" if what you're elaborating on apparently isn't even supposed to be a suggestion or a recommendation? Just give him concrete, actionable steps, so that we can move forward in the troubleshooting stage.
 

Boildown

Active Member
Post a sample .mp4 that you've verified crashes Sony Vegas so we can see for ourselves. Along with the OBS log file generated when you created that .mp4. You can post them to a common file sharing site, a couple minutes long is fine, as long as you've verified this short file still causes the crash.
 
Top