Created
November 12, 2018 16:06
-
-
Save k5trismegistus/8d620138a463df8ea47f9411008a2c72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
for file in toconvert/* | |
do | |
filename=`pwd`/$file | |
basename=`echo $filename | sed 's/.*toconvert\/\(.*\)\.[^\.]*$/\1/'` | |
targetname=`pwd`/converted/$basename'.mp4' | |
ffmpeg -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i $filename -loglevel error -c:v h264_vaapi $targetname -y | |
done | |
echo 'done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment