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