Question / Help Recording 8K via HEVC

Boildown

Active Member
If you had the processing power, you could do it. The main reason to do it is precisely because you can't do it with AVC (H.264), as 8K exceeds AVC's 4096x4096 limitation. You gotta record 8K somehow, and its not gunna be with H.264. You'd want to use the ultra-fastest preset available, I'd assume, to not overload the encoder.

Whether it works with OBS, I don't know, never tried it and its not on my to-do list.

Edit: I was curious and found that AVC has added support for resolutions up to 8192x4320 at Level 6 (which I didn't even know was a thing) as of a year ago: http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=12904 , but I've seen nothing to indicate any of the particular encoders have implemented this. Still, if I were you I'd try it and see what happens before messing with HEVC.
 
Last edited:

sam686

Member
This can be done only in recording, Custom Output (FFmpeg), using mp4 conainer, video encoder: NVENC_HEVC or libx265 if possible.

Warning: unclean stop of mp4 recordings (BSOD, crash, or out of storage space) will cause mp4 file to be completely unreadable, unless a custom muxer setting is used, frag_duration=15000000

A CPU-only libx265 could be an option... only if FFmpeg was compiled with x265 support. There is an option to replace OBS-Studio's avcodec-57.dll with the one that have libx265.
https://trac.ffmpeg.org/wiki/Encode/H.265

Which NVidia support h265 and 8k? Find code name from your GPU...
https://en.wikipedia.org/wiki/List_of_Nvidia_graphics_processing_units
Use NVENC matrix table at the far right.
https://developer.nvidia.com/video-encode-decode-gpu-support-matrix

Possible problems:
1. Texture size support of 8192x8192 is required for any 8k recordings in OBS-Studio.
2. OBS-Studio might have accuracy problem with NV12, i420, i444 for super high 8k resolutions resulting in color shift or pixelation. RGB might work better, found in Advanced, color format. EDIT: i444 in OBS-Studio 20.1.1 requires 3 times texture height, but 7680x4320 i444 may exceed 8192x8192 texture size which may make i444 unusable.
 
Last edited:

vorob

Member
I managed to fine HEVC. I was just blind :)

But it crashes when i stop recording:

Unhandled exception: c0000005
Date/Time: 2017-11-14, 15:45:43
Fault address: 7FFFB8F74A10 (c:\program files (user)\obs-studio\bin\64bit\avutil-55.dll)
libobs version: 20.1.1
Windows version: 10.0 build 16299 (revision: 19; 64-bit)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
 

sam686

Member
Its working. Its not even overloading my system. But framerate is weird ...
Tried in other game, where gpu wasn't 100% used and even there i had same jerky fps.
Show us OBS logs that have your recordings? It might show dropped frames results.

On the video, top left, it only shows about 20 fps. Your graphics card might be overloaded.
 

vorob

Member
Here is a video from another game, Thief II, https://youtu.be/E82XmqkpJyI over 50 FPS and same laggy recording. That's from its log:



Code:
18:02:13.782: ------------------------------------------------
18:02:54.466: Starting recording due to hotkey
18:02:55.953: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
18:02:55.953: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
18:02:55.960: ==== Recording Start ===============================================
18:03:38.246: Stopping recording due to hotkey
18:03:38.323: Output 'adv_ffmpeg_output': stopping
18:03:38.323: Output 'adv_ffmpeg_output': Total frames output: 1175
18:03:38.323: Output 'adv_ffmpeg_output': Total drawn frames: 1315
18:03:38.323: ==== Recording Stop ================================================
18:03:38.535: warning: 2 frames left in the queue on closing
18:03:52.583: ==== Shutting down ==================================================
18:03:52.593: Switched to scene '(null)'
18:03:52.907: All scene data cleared
18:03:52.907: ------------------------------------------------
 

sam686

Member
Give us full OBS-Studio log, with recording information in it. You can "Upload a file" if need to.

In custom ffmpeg encoder.
Try going up to 50000 Kbps video bitrate or higher. Try keyframe interval (frames): 60.
 

vorob

Member
Try going up to 50000 Kbps video bitrate or higher. Try keyframe interval (frames): 60.

No luck, same story. Here you go, log for video and crash.
 

Attachments

  • Crash 2017-11-15 11-01-16.txt
    93.3 KB · Views: 43
  • 2017-11-15 10-56-33.txt
    12 KB · Views: 36

sam686

Member
Can you try recording at 8k resolution with only 6 fps? It might be NVENC_HEVC or graphics card being overloaded.

if 8k 6fps works fine, try 12 fps then 15 fps, then 24fps.

As for crashing on record stop... i am not sure what might be the problem...
 

vorob

Member
Hmm. Looks like you were right. I tried to record windows and saw message i was unable to see ingame:
voddmu917ag.jpg


I managed to set 6fps, and this message didn't appear. Also when i stopped recording OBS didn't crash.

Now i'm confused cause NV 1070 can encode 8K video. Why its overloaded?
 
Top