Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x264 plugin not loading #68

Closed
mbway opened this issue Jan 25, 2025 · 5 comments
Closed

x264 plugin not loading #68

mbway opened this issue Jan 25, 2025 · 5 comments

Comments

@mbway
Copy link
Contributor

mbway commented Jan 25, 2025

thanks for this project, it's very useful!

I tried building with BUILD_X264_ENCODER_PLUGIN=1 and didn't see x264 listed as an option for the QuickTime codec in the 'Deliver' tab and H264 videos do not load.

I have the file

/opt/resolve/IOPlugins/x264_encoder_plugin.dvcp.bundle/Contents/Linux-x86-64/x264_encoder_plugin.dvcp

in place. I don't see anything obious in the log to indicate that the plugin is being loaded. To see whether resolve was even attempting to load the plugin, I ran with

strace -o /home/resolve/strace.log -e trace=open,openat,read,getdents,getdents64 /opt/resolve/bin/resolve

to see all the files and directories it attempts to read. I then went to the Deliver tab and clicked the codecs dropdown. I can see many files in /opt/resolve are being read, but it never attempts to read anything in /opt/resolve/IOPlugins.

I also tried adding fopen("/tmp/plugin_loaded" ,"a"); to g_HandlePluginStart() in plugin.cpp to signal that the plugin was loaded. After opening resolve the file was not created.

I'm running version:

#PROGRAM_NAME DaVinci Resolve v19.1.2.0003 (Linux/Clang x86_64)
#BMD_ARCHITECTURE x86_64
#BMD_BUILD_UUID 3eb98c6c-b05d-4005-b356-f316dd60b0ad
#BMD_GIT_COMMIT 4c2e19cbf1068b07c22f06c87e469554e42f010c
#BMD_UTIL_VERSION 19.1.2.0003
#OS Linux

any ideas?

@fat-tire
Copy link
Owner

Hmm this looks correct. My most recent build of 19.1.2 produces this:

Image
and
Image
in the deliver tab.

Questions:

  1. Did you see the plugin build as part of the image-building process? The file is there so it must be being built, but any unusual warnings?
  2. Are you using Resolve Studio or just the free version of Resolve? I believe (but I'm not 100% sure) that the encoder plugins will only work with Resolve Studio, or at least all the references I see mention the Studio version.

I can run an strace on my version to look where it gets loaded but it looks like you may be using the free version and that might be the issue, so I want to check this is as the potential issue first.

@fat-tire
Copy link
Owner

Oh, the H264 videos not loading is not related. The x264 plugin is only for exporting videos.

Here's a list of the supported codecs for import & export, if it's helpful. Linux starts on page 11.

Cheers!

@mbway
Copy link
Contributor Author

mbway commented Jan 25, 2025

  1. the plugin definitely gets built. I also tried building manually. There are two warnings about unused variables but nothing significant
  2. I'm using the free version. In my searching about the issue I didn't see any explicit mention that the plugin is only supported in the studio version but that would make sense if so

@fat-tire
Copy link
Owner

Yeah I'm kind of getting hints that it may be the case. The readme in /opt/resolve/Developer/CodecPlugin/ says:

The DaVinci Resolve IO Encode Plugin SDK enables development of additional codecs and container formats that can be rendered directly from DaVinci Resolve. These plugins can be distributed directly to customers who can use these in supported versions of DaVinci Resolve Studio

So it does mention Studio there.

And more confirmation-- this Blackmagic Certified Trainer says "Only Studio, yes" when asked about it.

All this said, I highly recommend considering getting the Studio version if you can swing it. I believe that anyone who's bought a license has thusfar received free updates forever and the benefits just with the AI-stuff alone is worth it.

@mbway
Copy link
Contributor Author

mbway commented Jan 26, 2025

ok. thanks for your help

@mbway mbway closed this as completed Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants