Page 1 of 1

Optimized Media crashes, "Media Offline" and other issues

PostPosted: Fri Jan 29, 2021 8:27 am
by wolfgang.b
I've been having issues with Optimized Media on my machine. When I import H.264 files recorded in OBS, the timeline scrubbing is very choppy and I basically can't play them back until the Optimized Media versions are generated. However, when I work on the timeline with Optimized Media, Davinci would sometimes quit without any warning. No error message, nothing. At the same time, the Davinci process would stay open (I can still see it in the Task Manager) and consume GPU memory and RAM. Unless I kill it manually, the new instance of Davinci would quickly run out of GPU memory and, once again, crash.

Moreover, the generated Optimized Media files would randomly go offline, with "Media Offline" screen being played back instead of the actual files. This happens intermittently and requires me to restart the application mid-work, which is really frustrating.

I have a 12-core CPU and a 3080, so yes, my computer is powerful enough for 4k25p footage.

Things I've tried that didn't help:
  • Changing the Optimized Media format – currently set to DNxHQ, switching formats doesn't help.
  • Setting a scratch drive to a non-boot NVMe SSD
  • Reinstalling Windows
  • Upgrading my hardware – used to have Ryzen 2600 and NVIDIA 2060 Super
  • Downgrading to the latest stable versions and upgrading to the last Public Beta
My hardware configuration:
  • AMD Ryzen 5900X
  • NVIDIA RTX 3080 10G
  • 32GB DDR4 3600Mhz CL18
  • Reinstalling the NVIDIA drivers, installing a newer version, downgrading, installing Studio Drivers, etc.

Software configuration:
  • Windows 10 20H1
  • Nvidia Drivers
  • Davinci Resolve Studio 17 Public Beta 6 (the problem also persists on stable versions (16.x))

Relevant lines in the logs:

Code: Select all
[0x00003270] | DVIP  | ERROR | 2021-01-27 21:42:04,055 | cudaMalloc failed: Requested size 19.0 MiB
[0x00003270] | DVIP  | ERROR | 2021-01-27 21:42:04,055 | DeviceResourceTypeCUDA.cpp:97: CUDA error cudaErrorMemoryAllocation (2)
[0x00003270] | DVIP | ERROR | 2021-01-27 21:42:04,055 | Cuda Memory Status : free 0.0 MiB total 10240.0 MiB
[0x00003138] | IO | ERROR | 2021-01-27 21:42:04,055 | Nvidia codec fails to create decoder 2
[0x00003138] | IO | ERROR | 2021-01-27 21:42:04,055 | Nvidia codec fails to parse video data 999
[0x00003138] | IO | ERROR | 2021-01-27 21:42:04,055 | 3rd Party Decode Err(Failed to decode the video frame.)
[0x00003270] | GPU.SingleBoardMgr   | ERROR | 2021-01-27 21:42:04,055 | DVIP exception caught: DVIP Exception: Position DeviceResourceTypeCUDA.cpp:97
 - API: CUDA
 - API Error Code: cudaErrorMemoryAllocation (2)
 - Call stack:
   00007FF771261AED
   00007FF771357431
   00007FF771355DD6
   00007FF771356556
   00007FF771356BB3
   00007FF7713587A4
   00007FF773720E50
   00007FFA284D1080
   00007FFA284D26B5
   00007FFA2F0F0486
   00007FF771359D3A
   00007FF771316731
   00007FF7713152BB
   00007FF7712836A4
   00007FF772CFD798
   00007FF772CFD1C8
   00007FF772CCCC7A
   00007FF772D41ECB
   00007FF772CE41D1
   00007FF772CB9FF8
   00007FF772C0A296
   00007FF772C077F6
   00007FF772C08CE8
   00007FF772C04809
   00007FFA2CFD14C2
   00007FFA2DF97034

Re: Optimized Media crashes, "Media Offline" and other issue

PostPosted: Fri Jan 29, 2021 3:41 pm
by Jim Simon
I always recommend hardware recorders for screen capture you intend to edit. They typically offer editing friendly options like DNx and ProRes, whereas software normally doesn't.

https://www.blackmagicdesign.com/produc ... ideoassist

Re: Optimized Media crashes, "Media Offline" and other issue

PostPosted: Fri Jan 29, 2021 5:32 pm
by wolfgang.b
Jim Simon wrote:I always recommend hardware recorders for screen capture you intend to edit. They typically offer editing friendly options like DNx and ProRes, whereas software normally doesn't.

That sounds like a solid option, but not very cost efficient since it starts at $495. Resolve should normally be able to handle H264 footage (I have no issues with the videos filmed on my A6400)

Re: Optimized Media crashes, "Media Offline" and other issue

PostPosted: Sun Jan 31, 2021 5:16 am
by Uli Plank
Yes, it's all fine with camera recordings. Unfortunately, OBS is not delivering constant frame rates, like every camera other than those in smartphones. Resolve is incompatible with such files. Get an amateur editing software, they are more tolerant.

Re: Optimized Media crashes, "Media Offline" and other issue

PostPosted: Tue Feb 09, 2021 5:47 pm
by wolfgang.b
Uli Plank wrote:Yes, it's all fine with camera recordings. Unfortunately, OBS is not delivering constant frame rates, like every camera other than those in smartphones. Resolve is incompatible with such files. Get an amateur editing software, they are more tolerant.


The framerate is locked at 60FPS in my OBS Settings, so no, variable FPS is not the issue.
Apart from that, I just realized that the crashes also happen without OBS footage on the timeline – it seems that anything that isn't camera footage will sooner or later cause Resolve to crash. Screencasts recorded with QuickTime on macOS cause similar issues and won't render properly – the resulting files contain artifcats and 'glitches'

Re: Optimized Media crashes, "Media Offline" and other issue

PostPosted: Tue Feb 09, 2021 11:52 pm
by Uli Plank
When there is heavy load on the machine besides OBS itself, like gameplay, in my experience OBS doesn't respect that setting anymore. You can check for free with MediaInfo (second tab).