Skip to content

Instantly share code, notes, and snippets.

View kevinseelbach's full-sized avatar

Kevin Seelbach kevinseelbach

View GitHub Profile
@kevinseelbach
kevinseelbach / vaapi_ffmpeg_transcode.sh
Last active April 10, 2023 06:42
h264 transcode using ffmpeg/vaapi for older hardware
#!/usr/bin/env bash
# Description: Convert all mkv files in a directory to mp4 using ffmpeg and vaapi
# set -x
convert_file() {
input_filename="$1"
output_filename="${input_filename%.mkv}.mp4"
python3 -c 'header=" BEGIN converting '"$input_filename "'"; print(f"{header:*^80}")'