Bug Report quicksync 120 hz with use CFR "crash"

freehuhn

Member
no log the program is not stopped correctly.

obs is not responding

there is nothing more to add, without "use CFR" it works fine.

pc
i7 3770k
amd 6770
16 gb ram
 

freehuhn

Member
i record with qsv ~300000 kbit it used about ~40000. i don't stream with 120 and use CFR works fine with 60 fps.

sry i got a log this time.

it works completely fine without use CFR.

17:17:23: max bitrate: 37856
17:17:23: buffer size: 300000

thats interesting so 37856 is max abr ?

Code:
17:17:22: Open Broadcaster Software v0.542b - 64bit ( ^ω^)
17:17:22: -------------------------------
17:17:22: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
17:17:22: CPU Speed: 3500MHz
17:17:22: Physical Memory:  15511MB Total, 13046MB Free
17:17:22: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
17:17:22: monitor 1: pos={0, 0}, size={1920, 1080}
17:17:22: monitor 2: pos={-1920, 0}, size={1920, 1080}
17:17:22: Windows Version: 6.1 Build 7601 S
17:17:22: Aero is Enabled
17:17:22: -------------------------------
17:17:22: OBS Modules:
17:17:22: Base Address     Module
17:17:22: 000000003F730000 OBS.exe
17:17:22: 00000000EC320000 OBSApi.dll
17:17:22: 00000000F4BE0000 DShowPlugin.dll
17:17:22: 00000000F4BB0000 GraphicsCapture.dll
17:17:22: 00000000F4B90000 NoiseGate.dll
17:17:22: 00000000F4B70000 PSVPlugin.dll
17:17:22: ------------------------------------------
17:17:22: Adapter 1
17:17:22:   Video Adapter: AMD Radeon HD 6700 Series
17:17:22:   Video Adapter Dedicated Video Memory: 1055490048
17:17:22:   Video Adapter Shared System Memory: 3569098752
17:17:22: ------------------------------------------
17:17:22: Adapter 2
17:17:22:   Video Adapter: Intel(R) HD Graphics 4000
17:17:22:   Video Adapter Dedicated Video Memory: 67108864
17:17:22:   Video Adapter Shared System Memory: 1711276032
17:17:22: =====Stream Start: 2013-07-21, 17:17:22===============================================
17:17:22:   Multithreaded optimizations: On
17:17:22:   Base resolution: 1920x1080
17:17:22:   Output resolution: 1920x1080
17:17:22: ------------------------------------------
17:17:22: Loading up D3D10...
17:17:22: Playback device Default
17:17:22: ------------------------------------------
17:17:22: Using desktop audio input: Lautsprecher (ASUS Xonar Essence STX Audio Device)
17:17:22: ------------------------------------------
17:17:22: Using auxilary audio input: Mikrofon (ASUS Xonar Essence STX Audio Device)
17:17:22: ------------------------------------------
17:17:22: Audio Encoding: AAC
17:17:22:     bitrate: 128
17:17:22: Using Monitor Capture
17:17:22: Found QSV hardware support
17:17:22: Using custom encoder settings: "bframes=16"
17:17:22: ------------------------------------------
17:17:22: QSV version 1.6 using MFX_IMPL_HARDWARE_ANY | MFX_IMPL_VIA_ANY (actual: MFX_IMPL_HARDWARE2 | MFX_IMPL_VIA_D3D9)
17:17:23: Using 22 encode tasks
17:17:23: ------------------------------------------
17:17:23: Video Encoding: QSV
17:17:23:     fps: 120
17:17:23:     width: 1920, height: 1080
17:17:23:     target-usage: MFX_TARGETUSAGE_BEST_QUALITY
17:17:23:     CBR: no
17:17:23:     CFR: yes
17:17:23:     max bitrate: 37856
17:17:23:     buffer size: 300000
17:17:23: ------------------------------------------
17:17:23: Error: all encode tasks in use, stalling pipeline
17:17:23: Error: encoder is taking too long, consider decreasing your FPS/increasing your bitrate
 

R1CH

Forum Admin
Developer
Your PC cannot encode at 120 FPS, so using CFR will cause timestamps to fall behind, triggering even more duplicated frames. OBS will never catch up once it falls behind, so it will appear frozen. Try encoding at reasonable settings and it should be fine.
 

freehuhn

Member
when i record with 120 and without "use CFR" it is recording in 120 ok nearly 120 (119.952 fps) my 6770 is to weak.
i checked it frame by frame it is real 119.952 fps so my pc can handle it.
on top of this i got a cpu used of about nothing.


is the gpu the part which repeats the frames, when "use CFR" is used?
 

R1CH

Forum Admin
Developer
The frames are duplicated and must go through the encoder again. I really doubt your PC is capable of realtime encoding 1080p @ 120 FPS.
 

freehuhn

Member
here a sample: http://www.file-upload.net/download.php ... lol120.mkv
sorry i'm realy bad with filehost i don't use things like that. the small download button under "Downloads: x" is the right one.

i get zero droped frames and i'm pretty sure qvs is capable of even more fps...
it's created without "use CFR" with obvious reasons...

i try recording with x264 and ultra fast know but i'm pretty sure my pc is not slow for that but the programs starts this way with "use CFR".
 

R1CH

Forum Admin
Developer
If it works without use CFR, is there any reason why you want to use it? Most likely when you see the "Error: all encode tasks in use, stalling pipeline" message, OBS falls behind timestamp-wise and is unable to catch up.
 

freehuhn

Member
is not easy to work with VFR and it works fine with x264 at 120 hz it still produced VFR but the global framerate is 120 now.
and obs is not responding when 120 qsv and "use CFR" is used. so something goes wrong when it used this way and is should work or not? i'm just reporting a misbehavior a simple bug.

it's not a must have for me but a crash program is not that nice.

btw why is qsv limited to 37856 kbit?
 

WayZHC

Member
freehuhn said:
is not easy to work with VFR and it works fine with x264 at 120 hz it still produced VFR but the global framerate is 120 now.
and obs is not responding when 120 qsv and "use CFR" is used. so something goes wrong when it used this way and is should work or not? i'm just reporting a misbehavior a simple bug.

it's not a must have for me but a crash program is not that nice.

btw why is qsv limited to 37856 kbit?

I don't know how it's now but i read about year ago qsv is limited to 100fps. I remember reading article about qsv saying "1920x1080 up to 100 fps".

And it's limited because it's hardware encoder. Hardware encoding has limits. Software encoding can go a lot further than hardware encoding.
 

freehuhn

Member
a short test:

is works with 99 fps not with 100. it got a problem with 3 "digits"?

I don't know how it's now but i read about year ago qsv is limited to 100fps. I remember reading article about qsv saying "1920x1080 up to 100 fps".[/quato]

i'm recording in vfr with a target of 120 fps just fine so maybe qsv doesn't accept input rates of 99+ it can easily encode 120 fps.

if qsv doesn't like input with more then 99 fps why not lie to it. it's VFR but the timestamps are all 8.33 ms long and the output is still 120 CFR.
 
Top