TRAFEX TRAFEX Consultancy Consultancy
Video Transcoder

Video Transcoder

January 2, 2021

I’m using DaVinci Resolve for editing videos. There’s one downside of using DaVinci Resolve on Linux, it can’t import H.264/H.265 encoded files. On Windows you can experience poor video playback with H.264/H.265 encoded files because it’s a compressed format which requires heavy CPU/GPU processing to decode realtime.

To be able to import H.264/H.265 encoded files on Linux and have smooth playback on Windows you can transcode them. A format that preserves the original quality and is friendly to work with in Davinci Resolve and other editing programs is Apple ProRes. I’ve writting a wrapper around ffmpeg in Go that transcodes media to Apple ProRes.

How to use

  • Download the binary for your system (Linux & Mac only) on the releases page
  • Make sure it’s executable; chmod +x videotranscoder-*
  • Execute it directly (./videotranscoder-*) or move it to a bin folder (e.g. /usr/local/bin)

videotranscoder -h will show you how to use it.

$ videotranscoder -h
Usage of videotranscoder:
  -help
    	Print help and usage information
  -overwrite
    	Overwrite existing files in the target folder
  -source string
    	Path to source folder
  -target string
    	Path to target folder
  -verbose
    	Show output of ffmpeg
  -version
    	Print version information

A new folder will automatically be created in the target folder with the transcoded files.

GitHub Repo stars

Go back

Recent articles

Articles

Giving structure to your Kubernetes configuration

Best practices for giving structure to your Kubernetes configuration

Read More

Articles

Monitor business KPIs using the OpenMetrics standard

Visualizing the important business KPIs in one dashboard by using an open standard and open source software

Read More

Articles

How to make a load testing plan

Load testing gives insight into a web application’s behavior under peak load conditions and realistic load conditions. By load testing your web application you will identify the maximum capacity the web application can handle as well as any bottlenecks and determine which element is causing degradation.

Read More