diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:57:50 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-24 05:57:50 +0200 |
| commit | b3dfbe8b70b870399dc335b8dcf028bb9a3955de (patch) | |
| tree | cd9b9aaa0445d4641356227866827f2d828a1517 /content/notes/convert-mkv.md | |
| parent | 660cebf99b4317856401acda8238bff75f82c4cc (diff) | |
| download | mitjafelicijan.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.md | 20 |
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 | --- | ||
| 2 | title: Convert all MKV files into other formats | ||
| 3 | url: convert-mkv.html | ||
| 4 | date: 2023-05-14 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | You will need `ffmpeg` installed on your system. This will convert all MKV files | ||
| 10 | into WebM format. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | # Convert all MKV files into WebM format. | ||
| 14 | find ./ -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. | ||
| 19 | find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \; | ||
| 20 | ``` | ||
