Talk:DaVinci Resolve
Python 3.6 not found problem
I need help with setting python 3.6 that way that:
- I can install packages there (with pip?)
- dr could see the python 3.6
- pycharm could debug scripts in that installation
The problem of not seen python 3.6 is discussed here:
- https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=116859#p798244 - ended up by invoking python via lua, and did not work for me
- https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=141012&p823341#p823341 - ended with working solution for windows, but unknown for linux. PYTHONHOME variable may be needed?
- https://video.stackexchange.com/questions/32458/davinci-resolve-python-3-6-not-found - solution with symlinks to pyenv. It worked for me.
I set External scripting using to Local in General settings. Installed python36 (tried both from aur and with pyenv). Then with variables RESOLVE_SCRIPT_API, RESOLVE_SCRIPT_LIB and PYTHONPATH and with /usr/bin/python3.6 interpreter, I successfully run the example script (it creates the Hello World project). Place it to the ~/.local/share/DaVinciResolve/Fusion/Scripts/Utility/example.py It appears in Workspace -> Scripts.
If I go to Workspace -> Console -> Py3, I now see there is no more error window that python 3.6 it is not found.
I tried with patched (see [1]) python36AUR and it was detected by dr. But now I am thinking that it is better with virtual environment, because I need other python libs available for scripting, and aur python packages only supposed for latest python version.
Help will be appreciated.
Ashark (talk) 04:40, 7 February 2022 (UTC)
Docker and DR
I have found a project for dr containerization. I did not explored it yet, which benefits it gives versus normal pkgbuild repackaging. And it seems it is targetet for ubuntu and for nvidia. Probably, it may be useful somewhen, so I decided to keep it here for this link not being lost.Ashark (talk) 11:14, 6 April 2022 (UTC)
Workaround for DR Free causes a/v desync
$ ffmpeg -i input.mp4 -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le -f mov output.mov
This causes a/v desync to me (15 min video, generated with vlog-toolset).
In case if anybody runs into the same issue, here's the solution:
$ ffmpeg -threads 16 -fflags '+genpts+igndts' -i input.mp4 -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -af 'aresample=async=1,asetpts=PTS-STARTPTS' -c:a pcm_s16le -f mov output.mov
The downside is that it makes sound in DaVinci Resolve preview choppy, but it's fine after final rendering. Alopatindev (talk) 00:21, 4 March 2024 (UTC)
noborderrule=2
doesn't work on Wayland.
As https://bbs.archlinux.org/viewtopic.php?pid=2165312#p2165312 explains, noborderrule=2
shan't work on Wayland, per the decision at https://bugs.kde.org/show_bug.cgi?id=452240#c1. Is there a better solution available? Regardless, we should probably add something to mention this caveat.
When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread. (talk) 16:39, 16 April 2024 (UTC)
Unable to play any video or hear audio despite import succeeding
I uninstalled opencl-amdAUR and opencl-amd-devAUR and installed rocm-opencl-runtime as advised by the DaVinci_Resolve_Checker, and to avoid the whole program from crashing, with the following message:
"Package opencl-amd contains both implementations for amd: legacy orca and modern rocm. But DR crashes when it sees both (no bug report for this yet). And currently the opencl loader does not support specifying specific icd file, see https://github.com/OCL-dev/ocl-icd/issues/7#issuecomment-1522941979. So currently it is recommended to install rocm-opencl-runtime instead of opencl-amd."
But then, I could import videos and add them to the timeline, but not play them, nor hear the sound; the preview stayed black. The whole app except for the file, edit etc menu on the top also sometimes hung. In the logs, there was also this error:
opt/resolve/libs/libc++.so.1: undefined symbol: __cxa_init_primary_exception
After reinstalling the free 19.0.3-1 package, the problem was solved. Running on integrated AMD GPU.