I'm using the following line to convert
for f in *.mkv; do ffmpeg -i "$f" -c:v copy -c:a aac -b:a 256k "${f%%mkv}mp4";&& rm "{$f}.mkv"; done
i need this to also check sub directories but i keep getting token error or bash error
also it doesn't delete the mkv files when finished converting
once i have the line working correctly how would i then go one step further and make it auto run say once a day to convert any newly added mkv files.
/storage2
, eithercd
there before running this, or replace**/*.mkv
with/storage2/**/*.mkv
. – muru Oct 24 '21 at 15:20