----/testing \-------
avi to avc1 mkv. using ffmpeg on linux 2014
mkdir encoded
for f in *.avi; do ./ffmpeg -i "$f" -vf scale=-1:720 -c:v libx264 -crf 18 -preset fast -c:a copy encoded/"${f%.avi}.mkv"; done
----------------
== huge file ==
mkdir encoded
for f in *.avi; do \
ffmpeg -i "$f" -vf scale=-1:720 -vcodec libx264 -crf 18 -preset fast -acodec copy encoded/"${f%.avi}.mkv";
done
----------------------
== smaller file===
mkdir encoded
for f in *.avi; do \
ffmpeg -i "$f" -vf scale=720: -vcodec libx264 -crf 18 -preset fast -acodec copy encoded/"${f%.avi}.mkv";
done
-------------/test 360p\-------
mkdir encoded
for f in *.avi; do \
ffmpeg -i "$f" -vf scale=-1:360 -vcodec libx264 -crf 18 -preset superfast -acodec copy encoded/"${f%.avi}.mkv";
done
i haven't played around alot with this code. it's just here for testing
No comments:
Post a Comment