aboutsummaryrefslogtreecommitdiff
path: root/content/notes/convert-mkv.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-05-24 05:57:50 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-05-24 05:57:50 +0200
commitb3dfbe8b70b870399dc335b8dcf028bb9a3955de (patch)
treecd9b9aaa0445d4641356227866827f2d828a1517 /content/notes/convert-mkv.md
parent660cebf99b4317856401acda8238bff75f82c4cc (diff)
downloadmitjafelicijan.com-b3dfbe8b70b870399dc335b8dcf028bb9a3955de.tar.gz
Added notes as a separate type of content and moved the content
Diffstat (limited to 'content/notes/convert-mkv.md')
-rw-r--r--content/notes/convert-mkv.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/content/notes/convert-mkv.md b/content/notes/convert-mkv.md
new file mode 100644
index 0000000..cca08d7
--- /dev/null
+++ b/content/notes/convert-mkv.md
@@ -0,0 +1,20 @@
1---
2title: Convert all MKV files into other formats
3url: convert-mkv.html
4date: 2023-05-14
5type: notes
6draft: false
7---
8
9You will need `ffmpeg` installed on your system. This will convert all MKV files
10into WebM format.
11
12```sh
13# Convert all MKV files into WebM format.
14find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" -vcodec libvpx -acodec libvorbis -cpu-used 5 -threads 8 "${0%%.mp4}.webm"' {} \;
15```
16
17```sh
18# Convert all MKV files into MP4 format.
19find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \;
20```