x264 encoder, Resolve 17 Studio for Windows, macOS, Linux

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

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

x264 encoder, Resolve 17 Studio for Windows, macOS, Linux

PostWed Nov 11, 2020 10:40 am

As you know, Blackmagic has added an open plugin SDK toolkit for encoder developers (in DaVinci Resolve 17 Studio).

They also added an implementation for x264 (C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\Developer\CodecPlugin\Examples\x264_encoder_plugin)

So, I am compiling this plugin for Windows and Mac platforms. You can test it if you like.

You need to unzip the downloaded archive to C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins on Windows or to /Library/Application Support/Blackmagic Design/DaVinci Resolve/IOPlugins on macOS. You probably need to create IOPlugins folder.

Then restart Resolve.

x264_encoder_plugin.dvcp.bundle.png
x264_encoder_plugin.dvcp.bundle.png (99.4 KiB) Viewed 33649 times


Screenshot 2020-11-11 134155.png
Screenshot 2020-11-11 134155.png (15 KiB) Viewed 33433 times


Win: https://yadi.sk/d/GfyncFMQ8qnuzQ
Mac: https://yadi.sk/d/pGmERKeOXV4NuA
Linux: https://www.dropbox.com/s/kih4x6rc5imvq ... X.zip?dl=0
(Linux version from here: https://liftgammagain.com/forum/index.p ... ins.15195/)
Last edited by Sergey Mirontsev on Fri Jan 15, 2021 9:09 am, edited 7 times in total.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline

bstaley

  • Posts: 83
  • Joined: Tue Jan 15, 2019 1:26 pm
  • Real Name: Bill Staley

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 2:02 pm

Thank you! Any chance of a version for Linux?
Windows 10
AMD Threadripper 5950x
32GB RAM
nVidia GTX 1080
All SSD
Resolve Studio 17
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 2:05 pm

Ooooh, can't wait to try this. Thanks Sergey.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

G0bble

  • Posts: 318
  • Joined: Wed Nov 21, 2018 10:04 am
  • Real Name: Rahul Sawarkar

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 3:09 pm

x.264 is the one I choose if using Handbrake - I like its quality/output. Considering DVR can already export h.264 what particular advantages do the more knowledgeable folks here anticipate from this?

Thanks
DVR Studio
Win 11 Pro, Ryzen 3900X, Nvidia RTX 3080FE,32GB RAM, SM951 M.2 AHCI SSD Boot, 512GB WD Blue nvme scratch
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 4:17 pm

bstaley wrote:Thank you! Any chance of a version for Linux?

Not from me, sorry. I have not a Linux developer's environment, only Windows.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline

jhoepffner

  • Posts: 185
  • Joined: Wed Sep 05, 2018 9:43 am
  • Location: Paris
  • Real Name: Jacques Hoepffner

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 4:28 pm

Hello,
Thank you, thats super-smart. As you are a Windows developer, do you think it would be possible to implement HAP and LCNotch codec export?
It would be very useful for people, like me, working in event and big projection.
All the best,
Jacques
W10 Ryzen7 3800X nVidia 3090 RAM 64 DVR-Fusion Studio 18.6.5 SSD 2To raid0 32To (HD) raid0 8To (SSD)
MSI G65 W10 / RAM 32 nVidia 1070 Intel Core i7-8750H DVR Studio 18.6.5
MBP 15" (2012) OS 10.14.6 RAM 16 nVidia 650M Intell i7 DVR Studio 17.4
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 4:47 pm

G0bble wrote:what particular advantages do the more knowledgeable folks here anticipate from this?

I would say 'hope' rather than 'anticipate'.

For me, access to more encoding parameters which leads to better quality at smaller file sizes.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 11, 2020 4:52 pm

jhoepffner wrote:Hello,
Thank you, thats super-smart. As you are a Windows developer, do you think it would be possible to implement HAP and LCNotch codec export?
It would be very useful for people, like me, working in an event and big projection.
All the best,
Jacques

I am not a Windows developer. Just my skills are made able for me to do a few things. :)
Skilled Windows developer can many things. But it is the wrong way to solve task.
HAP is already implemented in libavcodec (part of ffmpeg), so, we need to implement ffmpeg support, not HAP.
LCNotch plugins are available for Adobe products, so, maybe a better solution is a letter to Notch developers for asking for a new plugin, for DaVinci Resolve.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline
User avatar

antoine

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

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostWed Nov 11, 2020 9:14 pm

Awesome thanks Sergey for the info !
BRAW Studio FREE and Premium 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

Mario Kalogjera

  • Posts: 1201
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostWed Nov 11, 2020 11:50 pm

Thank you Sergei.

What I noticed so far:

- Bitrate is in KBps...I think mbps would be better.

- I tried to render but render queue reported: FAILED, rendering never really starts but it actually reports it's rendering, could not snap it out of it even by pressing "stop", GUI becomes non-responsive, one can only press X and quit Resolve.
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostThu Nov 12, 2020 7:30 pm

Sergey Mirontsev wrote:unzip it to C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins

That location does not exist. There is a "plugins" folder (no IO, small p). Same thing?
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostThu Nov 12, 2020 7:32 pm

Jim Simon wrote:
Sergey Mirontsev wrote:unzip it to C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins

That location does not exist. There is a "plugins" folder (no IO, small p). Same thing?

Nope. You must create IOPlugins.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline

mm0nst3r

  • Posts: 12
  • Joined: Wed Apr 10, 2019 5:21 pm
  • Real Name: Maksim Medushkin

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostFri Nov 13, 2020 3:04 am

Could you compile x.265 plugin also?
Offline

Peter Fleming

  • Posts: 75
  • Joined: Sat Nov 18, 2017 3:08 am

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostFri Nov 13, 2020 5:00 am

I created a IOPlugins folder in the correct location (C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins) and copied the 2 files into it, but no x264 options appear in the output render settings panel. What am I doing wrong?
Thanks
Windows 10 Pro 64-bit
Intel Core i7 Coffee Lake @ 3.70GHz
32.0GB Dual-Channel DDR4 @ 1600MHz
Z370 AORUS Gaming 5-CF
4095MB NVIDIA GeForce RTX 2070
223GB Western Digital SSD
3726GB Western Digital WDC
5589GB INTEL SSDSC2BW120A4
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostFri Nov 13, 2020 7:28 am

Peter Fleming wrote:I created a IOPlugins folder in the correct location (C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins) and copied the 2 files into it, but no x264 options appear in the output render settings panel. What am I doing wrong?
Thanks
You must copy not files, but folder, as shown on the screenshot in the first message.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline

Peter Fleming

  • Posts: 75
  • Joined: Sat Nov 18, 2017 3:08 am

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostFri Nov 13, 2020 10:13 am

Thank you, I did not see that you had to include the the folder "x264_encoder_plugin.dvcp.bundle" to get it to work.
Anyway that works really well, mind you I haven't tried the different data rates as yet.
Any possibility of having a VP9 output, as it is a common web format now.?
Thanks again
Windows 10 Pro 64-bit
Intel Core i7 Coffee Lake @ 3.70GHz
32.0GB Dual-Channel DDR4 @ 1600MHz
Z370 AORUS Gaming 5-CF
4095MB NVIDIA GeForce RTX 2070
223GB Western Digital SSD
3726GB Western Digital WDC
5589GB INTEL SSDSC2BW120A4
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostFri Nov 13, 2020 10:27 am

Peter Fleming wrote:Thank you, I did not see that you had to include the the folder "x264_encoder_plugin.dvcp.bundle" to get it to work.
Anyway that works really well, mind you I haven't tried the different data rates as yet.
Any possibility of having a VP9 output, as it is a common web format now.?
Thanks again

I am sure x264_encoder_plugin.dvcp.bundle is inside zip.
About VP9: I am not the author of the plugin so, it is possible but not by me. Sorry.
Attachments
2020-11-13_13-24-49.png
2020-11-13_13-24-49.png (9.3 KiB) Viewed 32770 times
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostFri Nov 13, 2020 4:25 pm

Got it working. Thanks, Sergey.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline
User avatar

roger.magnusson

  • Posts: 3398
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 12:51 am

Maybe it should be noted that this sample plugin has a hardcoded bit depth, set to 8-bit. Simply changing the relevant variable to 10 breaks it, so there's obviously a bit more to it that I haven't found yet. As far as I know x264 should no longer require a different binary for 10-bit.

I also note that the source code has a reference to an FFmpeg include folder that isn't used, so perhaps there's more they can release eventually.
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 7:51 am

roger.magnusson wrote:Maybe it should be noted that this sample plugin has a hardcoded bit depth, set to 8-bit. Simply changing the relevant variable to 10 breaks it, so there's obviously a bit more to it that I haven't found yet. As far as I know x264 should no longer require a different binary for 10-bit.

I also note that the source code has a reference to an FFmpeg include folder that isn't used, so perhaps there's more they can release eventually.
I found three variables: i_bithdepth for x264 on line 521 and two more on line 406.
Code: Select all
val = 8;
codecInfo.SetProperty(pIOPropBitDepth, propTypeUInt32, &val, 1);
codecInfo.SetProperty(pIOPropBitsPerSample, propTypeUInt32, &val, 1);
Maybe it is a current limitation of SDK?
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline
User avatar

Kizzume

  • Posts: 21
  • Joined: Thu Nov 12, 2020 9:58 am
  • Real Name: Kizzume Fowler

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 10:07 am

I sincerely hope this can eventually go smoothly. A lack of good bitrates for AAC exporting/rendering is the only thing keeping me from using Resolve. Granted, if this worked on the free version I could try it out myself, but it says "Studio" in the title, so I assume it's only for that.
Offline
User avatar

Kizzume

  • Posts: 21
  • Joined: Thu Nov 12, 2020 9:58 am
  • Real Name: Kizzume Fowler

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 10:08 am

I just wanted to add: Thank you so much for compiling this.
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 10:44 am

Haven’t tried myself yet but x264 library should be compiled with HAVE_BITDEPTH10 setting I think, otherwise the dll does not support 10bit encoding.
I do stuff
Offline
User avatar

roger.magnusson

  • Posts: 3398
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 11:13 am

That's no longer necessary (source). Running x264.exe --help on the one I compiled shows "Output bit depth: 8/10".
Offline

Hendrik Proosa

  • Posts: 3053
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 11:29 am

roger.magnusson wrote:That's no longer necessary (source). Running x264.exe --help on the one I compiled shows "Output bit depth: 8/10".

If the dll is copied from ffmpeg. If it is built yourself, it might be disabled by default. The makefile for x264 has lots of conditionals based on this variable. Not sure which way Sergey did it.

EDIT: I can’t read, you compiled yourself and it shows 10bit there... must try myself what the problem might be then.
I do stuff
Offline

NeoTrantor

  • Posts: 15
  • Joined: Sun Oct 04, 2020 11:06 pm
  • Real Name: Martin Schlosser

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 12:24 pm

Just wanted to share the linux package but I get
You are not allowed to post URLs!
:?
Is there any way I can share that file without breaking the forum rules?
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSat Nov 14, 2020 12:31 pm

Hendrik Proosa wrote:
roger.magnusson wrote:That's no longer necessary (source). Running x264.exe --help on the one I compiled shows "Output bit depth: 8/10".

If the dll is copied from ffmpeg. If it is built yourself, it might be disabled by default. The makefile for x264 has lots of conditionals based on this variable. Not sure which way Sergey did it.

EDIT: I can’t read, you compiled yourself and it shows 10bit there... must try myself what the problem might be then.

Screenshot 2020-11-14 153120.png
Screenshot 2020-11-14 153120.png (53.89 KiB) Viewed 32494 times
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline
User avatar

Dan Olson

  • Posts: 43
  • Joined: Mon Mar 13, 2017 5:27 am

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSun Nov 15, 2020 8:22 am

Installed on Mac, handled all the permissions, plugin shows up on the Delivery page, but export only outputs audio.
MacOS 10.15.5, MacPro 3.5GHz, Radeon Pro W5700X, 32GB DDR4
Offline

Juan Salvo

  • Posts: 343
  • Joined: Wed Aug 22, 2012 4:22 am

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostSun Nov 15, 2020 6:51 pm

Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostMon Nov 16, 2020 8:29 am

Dan Olson wrote:Installed on Mac, handled all the permissions, plugin shows up on the Delivery page, but export only outputs audio.

Not good. Tested on various Macs. This is not a typical error. The video is usually present.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline
User avatar

FuzzeeDee

  • Posts: 102
  • Joined: Sun Oct 18, 2020 5:41 pm
  • Location: Alberta, Canada
  • Real Name: David Reid

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostMon Nov 16, 2020 5:20 pm

Mario Kalogjera wrote:Thank you Sergei.

What I noticed so far:

- Bitrate is in KBps...I think mbps would be better.

- I tried to render but render queue reported: FAILED, rendering never really starts but it actually reports it's rendering, could not snap it out of it even by pressing "stop", GUI becomes non-responsive, one can only press X and quit Resolve.


I had the same issue. If you move your play head off of the beginning of the timeline before starting render it should render fine, albeit a little slower than DVR 16.
-
➤ DVR 18.6.5 Studio
CPU: Ryzen 9 3900XT
MB: Gigabyte B550 Vision D-P
➤ WiFi 6, BT 5, 2.5Gb Ethernet
RAM: 64 GB Corsair 3600Mhz
GPU: Sapphire Nitro+ 6700 XT 12 GB
PSU: 850W 80+ Gold
OS: Win 11 Pro 23H2 Build 22631.3155
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostMon Nov 16, 2020 5:47 pm

So far all my tests using the plug-in have worked. But I did notice one oddity.

It was my understanding that in CQ mode, the Encoder Presets Ultrafast to Placebo would only affect file size, not quality. (Hence the Constant Quality.)

Ultrafast should create larger files with less compression, and Placebo the smallest files with the most compression.

But I found the opposite to be true. The Placebo file was larger.

Huh?

Studio 17b1 for Windows.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Mario Kalogjera

  • Posts: 1201
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostMon Nov 16, 2020 11:49 pm

FuzzeeDee wrote:
Mario Kalogjera wrote:Thank you Sergei.

What I noticed so far:

- Bitrate is in KBps...I think mbps would be better.

- I tried to render but render queue reported: FAILED, rendering never really starts but it actually reports it's rendering, could not snap it out of it even by pressing "stop", GUI becomes non-responsive, one can only press X and quit Resolve.


I had the same issue. If you move your play head off of the beginning of the timeline before starting render it should render fine, albeit a little slower than DVR 16.


Will try. Noticed that this happens for me when I set output to interlaced. And you're god damn right it's slower - it's high quality...I'd be worried if it were otherwise ;)

Wonder if we can get the x265 in the future...
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline

G0bble

  • Posts: 318
  • Joined: Wed Nov 21, 2018 10:04 am
  • Real Name: Rahul Sawarkar

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostTue Nov 17, 2020 6:40 am

Jim Simon wrote:
G0bble wrote:what particular advantages do the more knowledgeable folks here anticipate from this?

I would say 'hope' rather than 'anticipate'.

For me, access to more encoding parameters which leads to better quality at smaller file sizes.


Yesterday I tried the YT H.264 export template built-in to DVR and the results are horrible. Banding everywhere like the video is 6-bit not 8-bit. The Pro codec exports are the way to go. I had tested these early on in v15 and immediately switched to DNxHR output then, preferring Handbrake for x.264 exports. More than a year later, the results are the same in 16.2.7.

I can see where the x.264 plugin can be useful. While I dont want to mess with it right now - once it is working fully in DVR - will there be a UI to select parameters or save a custom Preset like in HB?
DVR Studio
Win 11 Pro, Ryzen 3900X, Nvidia RTX 3080FE,32GB RAM, SM951 M.2 AHCI SSD Boot, 512GB WD Blue nvme scratch
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostTue Nov 17, 2020 6:34 pm

Yes to both, Rahul.

That said, we don't get full access to x264 parameters. :cry:
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline
User avatar

Gary Hango

  • Posts: 886
  • Joined: Mon Apr 09, 2018 10:35 pm
  • Location: Left Coast
  • Real Name: Gary Hango

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostTue Nov 17, 2020 7:00 pm

Jim Simon wrote:That said, we don't get full access to x264 parameters. :cry:

I think it’s just a matter of adding the parameters into the IOPlugin wrapper code to access them in the x264.dll and recompiling. You don’t need to recompile the x264.dll again.

I think I’ll try compiling the plugin as-is then modify the code to add more parameters. I don’t have the Studio version so others would need to test it.
Microsoft Windows 10 Pro x64
Intel(R) Core(TM) i7-6700, 3.40GHz, 32.0 GB
MB: MSI, BIOS: American Megatrends Inc. A.60, 12/17/2015
NVIDIA GeForce GTX 960, 2Gb
Resolve 18.1.1.0007(Free)
Offline

Andrew Kolakowski

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

Re: x264 encoder for DaVinci Resolve 17 for Windows

PostWed Nov 18, 2020 11:55 am

jhoepffner wrote:Hello,
Thank you, thats super-smart. As you are a Windows developer, do you think it would be possible to implement HAP and LCNotch codec export?
It would be very useful for people, like me, working in event and big projection.
All the best,
Jacques


This needs to be done as ffmpeg plugin. Then you have access to all of them. Writing for each own is rather not very optimal, although simplifies GUI needs.
Last edited by Andrew Kolakowski on Wed Nov 18, 2020 12:19 pm, edited 1 time in total.
Offline

Andrew Kolakowski

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

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 11:57 am

Jim Simon wrote:Yes to both, Rahul.

That said, we don't get full access to x264 parameters. :cry:


If playing with GUI is time consuming you just add 1 GUI text parameter which is passing command to x264. Many tools have it done this way- only key parameters are in GUI and rest can be added as x264 reference command way.
Exactly the same can be done with ffmpeg. You just get video+audio data form Resolve which is key point- rest can be sorted as single window which is ffmpeg command (so all after -i), eg.

-pix_fmt yuv420p -c:v libx264 -c:a aac

output can be also specified in plugin GUI for simplicity. This way you expose all x264/ffmpeg possibilities. Once ffmpeg is done no need for x264/5 separate plugins as it's all there and uses about same commands.
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 4:31 pm

Sorry Andrew, my Latin isn't up to snuff.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Andrew Kolakowski

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

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 5:43 pm

x264 has too many parameters to expose all of them in GUI (unless someone is bored ).
So without making big effort there is very simple way of still giving you the access to all parameters, by introducing 1 text box in GUI.
Then you type there eg.:
--bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1

and you have Blu-ray complaint h264 export. You can then access any parameters x264 offers if you need to.
Offline
User avatar

Gary Hango

  • Posts: 886
  • Joined: Mon Apr 09, 2018 10:35 pm
  • Location: Left Coast
  • Real Name: Gary Hango

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 5:43 pm

The best option would be to provide as many settings as feasibly possible in the GUI and provide a mechanism to load a text file that will override GUI settings when needed.
Microsoft Windows 10 Pro x64
Intel(R) Core(TM) i7-6700, 3.40GHz, 32.0 GB
MB: MSI, BIOS: American Megatrends Inc. A.60, 12/17/2015
NVIDIA GeForce GTX 960, 2Gb
Resolve 18.1.1.0007(Free)
Offline

Jim Simon

  • Posts: 30311
  • Joined: Fri Dec 23, 2016 1:47 am

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 5:45 pm

Andrew Kolakowski wrote:x264 has too many parameters to expose all of them in GUI

I get a good many of them in MeGUI. I guess was hoping for that same access right in Resolve.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Andrew Kolakowski

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

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 8:23 pm

Gary Hango wrote:The best option would be to provide as many settings as feasibly possible in the GUI and provide a mechanism to load a text file that will override GUI settings when needed.


No need for text file- simple text area is easier.
Offline

Arun Ezilmanivannan

  • Posts: 39
  • Joined: Thu Oct 10, 2013 8:48 pm

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostWed Nov 18, 2020 8:36 pm

going to test it now, thanks for the plugin.
Thanks and Regards
Arun EM
editor.emarun@gmail.com

iMac 27 inch, a windows laptop with RTX2060, a windows desktop with RTX2080ti and Amd ryzen 3900x
Offline

Andrew Kolakowski

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

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostWed Nov 18, 2020 10:40 pm

Sergey Mirontsev wrote:
Peter Fleming wrote:I created a IOPlugins folder in the correct location (C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\IOPlugins) and copied the 2 files into it, but no x264 options appear in the output render settings panel. What am I doing wrong?
Thanks
You must copy not files, but folder, as shown on the screenshot in the first message.


For me not showing in GUI at all.
Bundle is there. I gave it full 777 permissions. OSX Mojave.
Offline
User avatar

Dan Olson

  • Posts: 43
  • Joined: Mon Mar 13, 2017 5:27 am

Re: x264 encoder for Resolve 17 Studio for Windows and macOS

PostThu Nov 19, 2020 2:09 am

Sergey Mirontsev wrote:
Dan Olson wrote:Installed on Mac, handled all the permissions, plugin shows up on the Delivery page, but export only outputs audio.

Not good. Tested on various Macs. This is not a typical error. The video is usually present.

I took a shot in the dark and manually gave the plugin full access via chmod and now it works, so either it was a problem with that, or maybe it was just the footage I was testing with, or it was some other arcane setting that I bumped in the night.
MacOS 10.15.5, MacPro 3.5GHz, Radeon Pro W5700X, 32GB DDR4
Offline
User avatar

Dan Olson

  • Posts: 43
  • Joined: Mon Mar 13, 2017 5:27 am

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostThu Nov 19, 2020 2:12 am

Andrew Kolakowski wrote:For me not showing in GUI at all.
Bundle is there. I gave it full 777 permissions. OSX Mojave.

Have the Security and Privacy preferences open when you launch Resolve. Under General, below where it says "Allow apps downloaded from" it should display a note like "this file was blocked from running" with a "run anyway" option. That's what I had to do before I could get it to actually load in the UI.
MacOS 10.15.5, MacPro 3.5GHz, Radeon Pro W5700X, 32GB DDR4
Offline

Andrew Kolakowski

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

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostThu Nov 19, 2020 10:35 am

No such a warning. Have to find way how to trigger it.
Offline
User avatar

Johan Fleetwood

  • Posts: 107
  • Joined: Tue Mar 21, 2017 12:52 pm
  • Location: Sweden

Re: x264 encoder, Resolve 17 Studio for Windows, macOS, Linu

PostThu Nov 19, 2020 10:52 am

Adding ffmpeg ProRes this way would be nice... :)
Johan Fleetwood
Colorist | Editor | Post Production Consultant
- Win10pro, RTX 2080, Decklink, Mini Panel, Speed Editor, Ample RAM & SSD storage -
Offline

Andrew Kolakowski

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

Re: x264 encoder for DaVinci Resolve 17 Studio for Windows

PostThu Nov 19, 2020 6:08 pm

Dan Olson wrote:
Andrew Kolakowski wrote:For me not showing in GUI at all.
Bundle is there. I gave it full 777 permissions. OSX Mojave.

Have the Security and Privacy preferences open when you launch Resolve. Under General, below where it says "Allow apps downloaded from" it should display a note like "this file was blocked from running" with a "run anyway" option. That's what I had to do before I could get it to actually load in the UI.


Even sudo spctl --master-disable
doesn't change anything. There must be some other reason.
Next

Return to DaVinci Resolve

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher, renzhezhu and 214 guests