noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

noxz.tech/articles/remove_soundcloud_vorbis_description/index.www
1When downloading music from sites like SoundCloud using
2.ICD yt-dlp ,
3you may encounter OGG/Vorbis files that include metadata, such as a
4description. If you wish to remove this metadata, you can use the vorbiscomment
5utility in combination with a simple script. Here's a guide on how to achieve
6this.
7
8.HnS 1
9Using
10.ICD yt-dlp
11.HnE
12
13.DLS
14.LI "Download Music from SoundCloud:"
15Use
16.ICD yt-dlp
17to download the music from SoundCloud. Ensure that the downloaded
18music is in OGG/Vorbis format. For example:
19
20.CDS
21.COS
22yt-dlp -x --audio-format vorbis [SoundCloud URL]
23.COE
24.CDE
25
26Replace
27.ICD "[SoundCloud URL]"
28with the actual URL of the SoundCloud track you want to download.
29
30.LI "Check Metadata:"
31Before removing the description, check if the OGG/Vorbis file includes a
32description. You can use the
33.ICD vorbiscomment
34utility for this:
35
36.CDS
37.COS
38vorbiscomment -l [yourfile.ogg]
39.COE
40.CDE
41
42If you find a "DESCRIPTION" tag in the output, it means that a description is
43present and can be removed.
44
45.HnS 1
46Using the Removal Script
47.HnE
48
49You can use the following script to remove the description metadata:
50
51.CDS
52.COS
53for f in *.ogg; do
54   vorbiscomment -l "$f" | sed '/^[Dd][Ee][Ss][Cc][Rr][Ii][Pp][Tt][Ii][Oo][Nn]=/,/^purl=/{/purl=/!d}' | vorbiscomment -w "$f";
55   echo "Removed description from $f";
56done
57.COE
58.CDE
59
60.DLE
61
62Here's how the script works:
63
64.ULS
65.LI
66It iterates through all OGG/Vorbis files in the current directory.
67
68.LI
69The
70.ICD "vorbiscomment -l '$f'"
71command lists the metadata tags in the file.
72
73.LI
74The
75.ICD sed
76command filters out all lines between the "DESCRIPTION" and "purl" tags and
77deletes them, effectively removing the description.
78
79.LI
80The
81.ICD "vorbiscomment -w '$f'"
82command writes the modified metadata back to the file.
83
84.LI
85Finally, it prints a message to confirm the removal of the description from
86each file.
87.ULE
88
89After running the script, the OGG/Vorbis files will no longer contain the
90SoundCloud description metadata.
91
92By following these steps, you can successfully remove SoundCloud Vorbis
93descriptions from OGG/Vorbis files downloaded using
94.ICD yt-dlp .
95This can be helpful for organizing and managing your music library without the
96additional metadata.