From cd6644ea4ddc78597934ab0ef5ba50e3c3daa927 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 8 Jul 2023 23:25:41 +0200 Subject: Moved to a simpler SSG --- public/convert-mkv.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 public/convert-mkv.html (limited to 'public/convert-mkv.html') diff --git a/public/convert-mkv.html b/public/convert-mkv.html new file mode 100755 index 0000000..b6faef5 --- /dev/null +++ b/public/convert-mkv.html @@ -0,0 +1,16 @@ +Convert all MKV files into other formats

Convert all MKV files into other formats

May 14, 2023

You will need ffmpeg installed on your system. This will convert all MKV files +into WebM format.

# Convert all MKV files into WebM format.
+find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" -vcodec libvpx -acodec libvorbis -cpu-used 5 -threads 8 "${0%%.mp4}.webm"' {} \;
+
# Convert all MKV files into MP4 format.
+find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \;
+
\ No newline at end of file -- cgit v1.2.3