14b4 - when is h264 decoding offloaded?

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Jason Tackaberry

  • Posts: 211
  • Joined: Mon Jan 16, 2017 2:34 am

14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:17 pm

Are there only specific cases where h264 decoding is offloaded?

I have an AVCHD MTS file from a Sony camera, and Resolve is offloading its playback. However, when I transcode that same file to a MOV container, leaving video untouched but transcoding audio to PCM, Resolve is decoding it in software.

(I know it's decoding in software in the latter case because there are 4 active threads in msmpeg2vdec.dll, as it was with b3, but these threads aren't busy when playing back the original MTS file. Same video stream in either case however.)

Thanks,
Jason.
Resolve Studio 18.0.2 | Windows 10 x64 (21H2) | AMD Threadripper 5950X | 64GB | NVIDIA 3080 Ti (516.94)
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:24 pm

Maybe it's playback versus export case.
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:45 pm

What gpu are you using, and what type of footage is it?

https://developer.nvidia.com/nvidia-vid ... ECFeatures
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7
Offline

Jason Tackaberry

  • Posts: 211
  • Joined: Mon Jan 16, 2017 2:34 am

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:45 pm

I don't think so, since both observations I mentioned in my OP were about playback. One played back offloaded, the other didn't. Same video stream, just different container and audio codec.
Resolve Studio 18.0.2 | Windows 10 x64 (21H2) | AMD Threadripper 5950X | 64GB | NVIDIA 3080 Ti (516.94)
Offline

Jason Tackaberry

  • Posts: 211
  • Joined: Mon Jan 16, 2017 2:34 am

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:47 pm

Dan Sherman wrote:What gpu are you using, and what type of footage is it?

NVIDIA 1080 Ti. It's a 60p h264 AVCHD file from a Sony DSC-HX9V camera in the first case (which was offloaded), and the second case was transcoded to a MOV file using Convert 4, while preserving the video stream and converting the AC3 audio stream to PCM (which was not offloaded).

I need to stress here that in the two cases I mentioned, it's the same video stream. It didn't touch the video. Just transcoded audio and muxed to a different container (MOV vs MTS).
Last edited by Jason Tackaberry on Fri Jun 16, 2017 6:53 pm, edited 2 times in total.
Resolve Studio 18.0.2 | Windows 10 x64 (21H2) | AMD Threadripper 5950X | 64GB | NVIDIA 3080 Ti (516.94)
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:47 pm

Container maybe the reason also. It's fairly common that decoding goes through different route depending on the container.
Offline

Jason Tackaberry

  • Posts: 211
  • Joined: Mon Jan 16, 2017 2:34 am

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:52 pm

Andrew Kolakowski wrote:Container maybe the reason also. It's fairly common that decoding goes through different route depending not the container.
You're probably right. I've worked on video software with a much saner design (independent demuxing, decoding, and rendering layers) but only BMD can say what Resolve is doing here.

Maybe/hopefully it's just a matter of a small tweak to send h264 within MOV files to the accelerated path. Not sure if this is relevant, but I don't have QuickTime installed (since Apple has long discontinued it on Windows).
Resolve Studio 18.0.2 | Windows 10 x64 (21H2) | AMD Threadripper 5950X | 64GB | NVIDIA 3080 Ti (516.94)
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 6:59 pm

Jason Tackaberry wrote:
Andrew Kolakowski wrote:Maybe/hopefully it's just a matter of a small tweak to send h264 within MOV files to the accelerated path. Not sure if this is relevant, but I don't have QuickTime installed (since Apple has long discontinued it on Windows).


This is possible, but quite often shortcuts are done to simplify things. For example Edius use to do the same- h264 in MOV was decoded by poor QT engine on PC, even if Edius had very powerful own AVC decoder. Later they changed it and it was like day and night :) It maybe exactly the same case for Resolve.
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 7:10 pm

change the extension from mov to mp4 and see if that makes a difference. I've used this "hack" over the years on several editors.
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7
Offline

Jason Tackaberry

  • Posts: 211
  • Joined: Mon Jan 16, 2017 2:34 am

Re: 14b4 - when is h264 decoding offloaded?

PostFri Jun 16, 2017 7:47 pm

Dan Sherman wrote:change the extension from mov to mp4 and see if that makes a difference. I've used this "hack" over the years on several editors.
That was just clever enough to work. Unfortunately it didn't. :)

One other significant detail: although the video streams are the same, the fourcc reported in the MOV file is 'avc1', while in the original MTS it's 'HDPR'. In the former case (where offload is not occurring) Resolve's metadata panel reports it as h.264, and in the latter case (where offload is occurring) it reports it as AVCHD.

To be honest I might have expected the opposite behavior. :)
Resolve Studio 18.0.2 | Windows 10 x64 (21H2) | AMD Threadripper 5950X | 64GB | NVIDIA 3080 Ti (516.94)

Return to DaVinci Resolve

Who is online

Users browsing this forum: 4EvrYng, dtxeditor, jamedia, Mike C Bonner, schluki123, xunile and 191 guests