{"id":2021,"date":"2024-08-25T17:57:58","date_gmt":"2024-08-25T15:57:58","guid":{"rendered":"https:\/\/hannes.enjoys.it\/blog\/?p=2021"},"modified":"2024-08-25T18:49:03","modified_gmt":"2024-08-25T16:49:03","slug":"converting-lots-of-audio-files-to-lower-quality-with-soundkonverter","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2024\/08\/converting-lots-of-audio-files-to-lower-quality-with-soundkonverter\/","title":{"rendered":"Converting lots of audio files to lower quality with soundKonverter"},"content":{"rendered":"\n<p>Notes for myself but maybe useful for *you* too?<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/dfaust\/soundkonverter\">https:\/\/github.com\/dfaust\/soundkonverter<\/a><\/p>\n\n\n\n<p>Add your directory or directories, let it scan.<\/p>\n\n\n\n<p>For music select Opus with 48 kbps if that&#8217;s enough for your use case.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"811\" height=\"372\" src=\"https:\/\/hannes.enjoys.it\/blog\/wp-content\/uploads\/asd.png\" alt=\"\" class=\"wp-image-2022\" srcset=\"https:\/\/hannes.enjoys.it\/blog\/wp-content\/uploads\/asd.png 811w, https:\/\/hannes.enjoys.it\/blog\/wp-content\/uploads\/asd-300x138.png 300w, https:\/\/hannes.enjoys.it\/blog\/wp-content\/uploads\/asd-768x352.png 768w, https:\/\/hannes.enjoys.it\/blog\/wp-content\/uploads\/asd-624x286.png 624w\" sizes=\"auto, (max-width: 811px) 100vw, 811px\" \/><\/figure>\n\n\n\n<p>Create the file list, then fix special characters with <a href=\"https:\/\/github.com\/dfaust\/soundkonverter\/issues\/96\">https:\/\/github.com\/dfaust\/soundkonverter\/issues\/96<\/a>: <code>sed -i 's\/file:\\\/\\\/\/\/; s\/%20\/ \/g; s\/%23\/#\/g' ~\/.local\/share\/soundkonverter\/filelist.xml<\/code><\/p>\n\n\n\n<p>For audiobooks use Opus with a low bitrate of 16 kbps and the Additional encoder argument <code>-ac 1<\/code> for mono.<\/p>\n\n\n\n<p>Copy directory structure will create full path directories in the destination directory, e.g. if you convert <code>\/home\/foo\/music\/<\/code> to <code>\/tmp\/<\/code>, it will create the output in <code>\/tmp\/home\/foo\/music\/<\/code>.<\/p>\n\n\n\n<p>For future updates: Select the same directories, fix the xml again, make sure that Settings -> General -> Conversion -> Conflict Handling is set to &#8220;Skip File&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notes for myself but maybe useful for *you* too? https:\/\/github.com\/dfaust\/soundkonverter Add your directory or directories, let it scan. For music select Opus with 48 kbps if that&#8217;s enough for your use case. Create the file list, then fix special characters with https:\/\/github.com\/dfaust\/soundkonverter\/issues\/96: sed -i &#8216;s\/file:\\\/\\\/\/\/; s\/%20\/ \/g; s\/%23\/#\/g&#8217; ~\/.local\/share\/soundkonverter\/filelist.xml For audiobooks use Opus with a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12,40],"tags":[],"class_list":["post-2021","post","type-post","status-publish","format-standard","hentry","category-guide","category-linux","category-small-things"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/2021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=2021"}],"version-history":[{"count":3,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/2021\/revisions"}],"predecessor-version":[{"id":2025,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/2021\/revisions\/2025"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=2021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=2021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=2021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}