From d25eb1159e10ddf6c9a6c17909580f08cd132d17 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 20 May 2023 16:38:11 +0200 Subject: Patse: convert mkv --- content/pages/pastebin.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'content') diff --git a/content/pages/pastebin.md b/content/pages/pastebin.md index 675accc..fe9c4e1 100755 --- a/content/pages/pastebin.md +++ b/content/pages/pastebin.md @@ -7,6 +7,18 @@ draft: false *No additional explanation provided here. Use blog for more detailed stuff.* +**▒ Convert all MKV files into WebM format** + +```sh +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** + +```sh +find ./ -name '*.mkv' -exec bash -c 'ffmpeg -i "$0" c:a copy -c:v copy -cpu-used 5 -threads 8 "${0%%.mp4}.mp4"' {} \; +``` + **▒ Download list of YouTube files** ```js -- cgit v1.2.3