
- Posts: 151
- Joined: Fri Sep 08, 2017 6:20 pm
Hi! Since DR on linux lacks some codecs and variable framerate is still a thing, i made a little script to prepare all video files in a given folder to be used by DR.
Usage:
Make sure to install ffmpeg and mediainfo packages (tested with Debian 10 and 11)
unzip davincirecode10.zip, give it a "chmod a+x" or something, go to folder with videos, run the script.
What it does:
If the media file has variable framerate (VFR) - reencode to fixed 24 fps (change this by touching framerate variable inside the script)
In case of unsupported by DR on linux audio codec - reencode audio
Interlaced video - Use "deinterlace=true" to de-interlace using yadif (via ffmpeg) or let DR handle it (for studio users)
There are 3 options inside DR to de-interlace: Normal (worked fine for me), High (also good) and Neural engine (slow on my setup)
Also at times DR detects interlaced videos as progressive, in that case you may set the Field Dominance by hand inside Clip Attributes
All the files in current dir will output to .MKV container
You can change this inside the script, but note that not any audio codecs may fit into some containers
There is a variable "folderprefix", to specify an export directory (default is "exportedvideo")
Would be cool:
To make use of framerate in VFR videos (at times you have minimum and maximum values, but not always)
Starting with Resolve 18.5b1 we now have AC3 decoding
I should reflect this change in the script one day
Notes
You may also want to add an alias for this script like this:
echo "alias davincirecode='/path/to/davincirecode10.sh'" >> ~/.bashrc
Please feel free to make this script better! Hope this is only temporal solution and we will get all the codecs soon
Usage:
Make sure to install ffmpeg and mediainfo packages (tested with Debian 10 and 11)
unzip davincirecode10.zip, give it a "chmod a+x" or something, go to folder with videos, run the script.
What it does:
If the media file has variable framerate (VFR) - reencode to fixed 24 fps (change this by touching framerate variable inside the script)
In case of unsupported by DR on linux audio codec - reencode audio
Interlaced video - Use "deinterlace=true" to de-interlace using yadif (via ffmpeg) or let DR handle it (for studio users)
There are 3 options inside DR to de-interlace: Normal (worked fine for me), High (also good) and Neural engine (slow on my setup)
Also at times DR detects interlaced videos as progressive, in that case you may set the Field Dominance by hand inside Clip Attributes
All the files in current dir will output to .MKV container
You can change this inside the script, but note that not any audio codecs may fit into some containers
There is a variable "folderprefix", to specify an export directory (default is "exportedvideo")
Would be cool:
To make use of framerate in VFR videos (at times you have minimum and maximum values, but not always)
Starting with Resolve 18.5b1 we now have AC3 decoding

Notes
You may also want to add an alias for this script like this:
echo "alias davincirecode='/path/to/davincirecode10.sh'" >> ~/.bashrc
Please feel free to make this script better! Hope this is only temporal solution and we will get all the codecs soon

- Attachments
-
davincirecode10.zip
- v0.10
- (1.58 KiB) Downloaded 298 times
Last edited by Boris Kovalev on Wed Apr 26, 2023 12:45 am, edited 38 times in total.