Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken image

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

ignus2

  • Posts: 6
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken image

PostMon Nov 27, 2023 9:04 am

I'm using the DaVinci Resolve IO Encode SDK (https://resolve.cafe/developers/encodeplugin/).

Requesting 16-bit clrYUVp 4:2:0 (pIOPropColorModel=clrYUVp, pIOPropHSubsampling=2, pIOPropVSubsampling=2, pIOPropBitsPerSample=16) gives a broken image. Requesting 4:2:2 seems fine.

Here's a dump of both buffers of a single image: https://drive.google.com/file/d/1Aq5lvL ... sp=sharing
The dump contains 4 files:
dump420.raw : dump of 16-bit clrYUVp 4:2:0
dump422.raw : dump of 16-bit clrYUVp 4:2:2
dump420_8.raw : data of dump420.raw with each 16-bit value converted to 8-bit (for easier viewing)
dump422_8.raw : data of dump422.raw with each 16-bit value converted to 8-bit (for easier viewing)

Attached is an image using a raw viewer. The 422 image is fine, Y plane first followed by U/V, but 420 is completely broken somehow.

Please advise.
Attachments
dump422_8.jpg
dump422_8.jpg (259.3 KiB) Viewed 4296 times
dump420_8.jpg
dump420_8.jpg (855.26 KiB) Viewed 4296 times
Offline
User avatar

antoine

  • Posts: 508
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostMon Jan 01, 2024 7:55 am

Hi Balázs,
Did you find the source of your problem or how to work around the bug ?
Regards,
Antoine
BRAW Studio FREE and Premium importer plugins for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

ignus2

  • Posts: 6
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostMon Jan 01, 2024 9:29 pm

The problem is with Resolve giving a broken image, I found no solution to fix that from my end. My workaround is that I simply avoid requesting 16-bit YUV 420 from Resolve.
Offline
User avatar

antoine

  • Posts: 508
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostTue Jan 02, 2024 5:30 am

Ouch sorry about that. Are there others pixel formats who appear to be broken according to your experience ?
BRAW Studio FREE and Premium importer plugins for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

ignus2

  • Posts: 6
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostTue Jan 02, 2024 1:06 pm

I haven't encountered others, but I haven't tried them all.
Why do you ask, do you have the same issue? Can you reproduce?
Offline
User avatar

antoine

  • Posts: 508
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostWed Jan 03, 2024 10:51 am

I might test it at some point ! I'm interested in this export SDK too
BRAW Studio FREE and Premium importer plugins for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

UDaManFunks

  • Posts: 40
  • Joined: Sun Mar 08, 2020 5:39 am
  • Real Name: George Daswani

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostSat Aug 31, 2024 7:35 am

Did this eventually work for you on the newer version of resolve?

You stated

Planar YUV 4:2:0 should be setup as (pIOPropColorModel=clrYUVp, pIOPropHSubsampling=2, pIOPropVSubsampling=2)

How do you setup YUV 4:2:2 (pIOPropColorModel=clrYUVp, pIOPropHSubsampling=2, pIOPropVSubsampling=? <-- i'm assuming 1?)

Did it work when using 8-bit?

I'm trying to create a new plug for the svt-av1 encoder..
Offline

ignus2

  • Posts: 6
  • Joined: Wed Oct 30, 2019 6:51 pm
  • Location: Hungary
  • Real Name: Balázs Oroszi

Re: Resolve IO Encode SDK: 16-bit clrYUVp 420 gives broken i

PostSat Aug 31, 2024 9:43 am

UDaManFunks wrote:Did this eventually work for you on the newer version of resolve?

No. Resolve 19 seems also broken. Does it work for you? Could you test this please?

UDaManFunks wrote:How do you setup YUV 4:2:2 (pIOPropColorModel=clrYUVp, pIOPropHSubsampling=2, pIOPropVSubsampling=? <-- i'm assuming 1?)

Yes (pIOPropVSubsampling=1).
As a side note: for 8-bit 4:2:2 you also have the option of clrUYVY.

UDaManFunks wrote:Did it work when using 8-bit?

Yes.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 2 guests