summaryrefslogtreecommitdiff
path: root/video/vaapiencode
diff options
context:
space:
mode:
Diffstat (limited to 'video/vaapiencode')
-rwxr-xr-xvideo/vaapiencode9
1 files changed, 9 insertions, 0 deletions
diff --git a/video/vaapiencode b/video/vaapiencode
new file mode 100755
index 0000000..ae079f2
--- /dev/null
+++ b/video/vaapiencode
@@ -0,0 +1,9 @@
+#!/bin/sh
+ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 \
+ -ss 60 \
+ -i "$1" \
+ -t 60 \
+ -c:v h264_vaapi \
+ -b:v 1000k \
+ -c:a libopus -b:a 128k \
+ "h264_$1.mkv"