Bit Goblin video transcoder
Go to file
Gregory Ballantine 12ab510224
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Updated README with info on how to build and configure this software
2022-05-02 18:37:23 -04:00
src Added Maven step to compile a .jar file with all dependencies (for easy deployment); Added code to define the FFMPEG binary path and video repository through a TOML file 2022-05-02 16:15:01 -04:00
.gitignore Created a Java w/ Maven project structure; added a simple directory creation and executes an FFMPEG command to transcode videos 2022-04-30 20:12:32 -04:00
.woodpecker.yml Added Woodpecker CI config 2022-05-01 14:25:15 -04:00
LICENSE Created a Java w/ Maven project structure; added a simple directory creation and executes an FFMPEG command to transcode videos 2022-04-30 20:12:32 -04:00
pom.xml Added Maven step to compile a .jar file with all dependencies (for easy deployment); Added code to define the FFMPEG binary path and video repository through a TOML file 2022-05-02 16:15:01 -04:00
README.md Updated README with info on how to build and configure this software 2022-05-02 18:37:23 -04:00

Dragoon

The Bit Goblin video transcoder.

Building

Currently this project is targeting Java 11 LTS and uses Maven to manage the software lifecycle. Thus, you must have a Java 11 JDK and Maven installed to build this project.

NOTE: The targeted Java version will likely change to 17 LTS soon.

Ubuntu

sudo apt install openjdk-11-jdk maven

Red Hat/Almalinux

sudo dnf install java-11-openjdk-devel maven

Actually Building

Now that the needed tools are installed, you should be able to build this project. To build a JAR file with it's dependencies included:

mvn clean compile assembly:single

Then you can run the transcoder:

java -jar target/Dragon-VERSION-jar-with-dependencies.jar

Configuration

If you were paying attention to Dragoon's output, you would have noticed that it failed with a complaint about not finding a configuration file. The location might move in the future or even be configurable, but for now you need to have a TOML file located at ~/.config/dragoon.toml with at minimum the following contents:

# This example transcodes footage to DNxHD 1080p60 for use in video editors like DaVinci Resolve.
[transcoder]
repo_path = '~/videos' # location of the videos to transcode
video_codec = 'dnxhd' # video codec to use
video_format = 'scale=1920x1080,fps=60,format=yuv422p' # video format flag - this will be broken later into separate attributes
video_profile = 'dnxhr_hq' # DNxHD has multiple presets for various video qualities
audio_codec = 'pcm_s16le' # audio codec to use