Skip to content

jchai01/davinci-resolve-aac-workaround-macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

What does it do?

This script transcodes specific footages on the fly while remaining in Resolve. It extracts audio in WAV codec (or other compatible formats) from a particular footage with AAC codec, the .wav file is then imported back into the media pool, all with just a hotkey. The clip that is under the playhead gets converted.

Why?

Somehow AAC codec isn't supported on Linux, even with the Studio version. Before using this, be aware that other solution exist such as:

This script is useful for dealing with footages coming from smartphones as they are usually recorded in a mp4 container with H264/AAC codec. I don't think it's the best ultilization of disk space to convert every video as it duplicates the video portion, extracting every audio file at once makes it hard to keep track which video and audio file goes together too. Most of the time, I don't need the audio from the clips.

Setup/installation

  1. Activate Davinci Resolve scripts API, add required environment variables with sudoedit /etc/profile.
  2. add the following line at the end of the file:
export RESOLVE_SCRIPT_API="/opt/resolve/Developer/Scripting"
export RESOLVE_SCRIPT_LIB="/opt/resolve/libs/Fusion/fusionscript.so"
export PYTHONPATH="$PYTHONPATH:$RESOLVE_SCRIPT_API/Modules/"
  1. Copy the code in convert.py and place it in /opt/resolve/Fusion/Scripts/Comp
  2. Set the variables in convert.py for your working directory, output directory and ffmpeg binary path. Don't forget the trailing / at the end for working and output directory.

Usage

  1. Add some clips into your timeline in Davinci Resolve.
  2. Bring the playhead to the desired clip.
  3. Open the terminal and run python /opt/resolve/Fusion/Scripts/Comp/convert.sh to ensure it is working.
  4. You can also run the script under workspaces > Scripts > Comp, or set a hotkey.

Notes

Known Issues

  • Hotkey set in Davinci keyboard shortcut page sometimes does not work during first startup. Run the script once under workspaces > Scripts > Comp and hotkey works subsequently, not sure why.
  • Case sensitive for now, note the .mp4 and .MP4 and change the script accordingly.

Future

  • Add checks to see if wav file exist. If exist, highlight/focus in media pool.
  • Import and add the clip to timeline too.

More Resources

https://jchai01.github.io/posts/davinci-comprehensive-guide-linux/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages