Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

git-developer/vaapi-video-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VAAPI video converter

A Docker-based video converter that uses VAAPI-compatible hardware for transcoding

Key features

  • Transcode a video
  • Keep only the main video and a single audio track
  • Use hardware-acceleration to unburden the CPU
  • Use docker to keep the system clean of dependent packages

Pre-requisites

  • A linux system with docker-compose

On debian-based systems, docker-compose may be installed by calling

$ sudo apt install docker-compose

Examples

Convert a video to a small MP4 with stereo audio in german for use on a mobile device:

$ ./start /media/input.mkv /tmp/output.mp4

Use italian language; if not available, use english as fallback:

$ AUDIO_LANGUAGES=ita,eng ./start /media/input.mkv /tmp/output.mkv

Create output video with permissions for user with user id and group id 1000:

$ PUID=1000 PGID=1000 ./start /media/input.mkv /tmp/output.mp4

Environment variables

The following list shows environment variables that may be used to adjust the format of the output video, together with their defaults.

  • VIDEO_BITRATE=1280k
  • VIDEO_CODEC=h264_vaapi
  • VIDEO_WIDTH=720
  • AUDIO_BITRATE=128k
  • AUDIO_CODEC=aac
  • AUDIO_CHANNELS=2
  • AUDIO_LANGUAGES=deu,ger,eng
  • VAAPI_DEVICE=/dev/dri/renderD128
  • PUID=uid of current user
  • GUID=group of current user

About

A docker-based video converter that uses VAAPI-compatible hardware for transcoding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages