diff options
author | JJ <nicetry@noemail.com> | 2025-03-19 14:56:26 +0000 |
---|---|---|
committer | JJ <nicetry@noemail.com> | 2025-03-19 14:56:26 +0000 |
commit | 16f52b7bef745097f7076dde76715db378b54343 (patch) | |
tree | cfcacda8adced2059dcc120d2bc2446d3c4f960a /content/snippets/rip-edit-audio.md |
first commit
Diffstat (limited to 'content/snippets/rip-edit-audio.md')
-rw-r--r-- | content/snippets/rip-edit-audio.md | 33 |
1 files changed, 33 insertions, 0 deletions
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/ +``` |