From 4760fda5245cceccba270d5eaada76737c8cd5ca Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Fri, 28 Mar 2025 16:20:09 -0400 Subject: [PATCH] patch --- src/patch.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/patch.sh diff --git a/src/patch.sh b/src/patch.sh new file mode 100644 index 0000000..303cbf0 --- /dev/null +++ b/src/patch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for fmv in *.wmv; do + ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i "$fmv" -vf 'format=nv12,hwupload,vflip' -c:v h264_vaapi "${fmv%.wmv}.mp4"; + rm -rf $fmv; + mv -- ${fmv:0:-4}.mp4 $fmv; +done \ No newline at end of file