4 fileout="${filename%.*}"
7 ffmpeg -threads 2 -hwaccel vaapi -vaapi_device /dev/dri/renderD128 \
8 -i "$1" -c:v h264_vaapi -vf "format=nv12,hwupload,scale_vaapi=iw/'$proxy':ih/'$proxy'" \
9 -vcodec h264_vaapi -preset fast -c:a copy \
10 -bf 0 -profile:v 66 "$fileout".proxy"$proxy"-mp4.mp4