From 16f52b7bef745097f7076dde76715db378b54343 Mon Sep 17 00:00:00 2001
From: JJ <nicetry@noemail.com>
Date: Wed, 19 Mar 2025 14:56:26 +0000
Subject: first commit

---
 content/snippets/rip-edit-audio.md | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 content/snippets/rip-edit-audio.md

(limited to 'content/snippets/rip-edit-audio.md')

diff --git a/content/snippets/rip-edit-audio.md b/content/snippets/rip-edit-audio.md
new file mode 100644
index 0000000..0cbb35b
--- /dev/null
+++ b/content/snippets/rip-edit-audio.md
@@ -0,0 +1,33 @@
+---
+title: Ripping and cutting music sets
+description: Ripping and cutting music sets
+tags: ["commandline"]
+---
+
+Here's a simple process to rip audio, add metadata and cut the audio from the command line:
+
+```console
+yt-dlp --extract--audio --audio-quality 0 "https://youtu.be/vbkyazLGovM?si=SQXs6PHIcBrsr5to"
+```
+
+This rips a 3 hour set locally. Use `mv` if you want to rename the file. Let's call the file `set.m4a`.
+
+Adding metadata using `exiftool`:
+
+```console
+exiftool -Title="Big set" -Artist="Wicked skengman" set.m4a
+```
+
+It's a three hour set and we only want from 2:30:00 until the end, so only the last 30 minutes, for this we can use `ffmpeg`.
+
+```console
+ffmpeg -ss 2:30:00 -i set.m4a -c copy output.m4a
+```
+
+`copy` copies the file without re-encoding.
+
+If using `cmus` then run the following to update your library with the new file:
+
+```console
+:add ~/Music/
+```
-- 
cgit v1.2.3