Zereges / id3-tag-cli

Command line utility for reading and editing ID3 meta information (tags) for audio and video files
GNU General Public License v3.0
5 stars 2 forks source link

[FeatureRequest] Support for Tagging DSD Files (e.g., .dsf, .dff) #1

Open chenghuangqobuz opened 3 weeks ago

chenghuangqobuz commented 3 weeks ago

Hello,

First of all, thank you for creating and maintaining id3-tag-cli. It’s a great tool for managing metadata across various audio formats.

Feature Request: I would like to request the addition of support for tagging DSD (Direct Stream Digital) files, specifically .dsf and .dff formats.

Use Case: DSD files are commonly used in high-resolution audio environments and are increasingly popular among audiophiles. Being able to tag these files with id3-tag-cli would significantly enhance the tool’s versatility, allowing users to manage their entire music library, including high-resolution audio, from a single command-line interface.

Zereges commented 3 weeks ago

Hi, thank you for the feature request. I'll check out those formats and see if I can add support.

Zereges commented 3 weeks ago

This project uses TagLib as backend and it already supports DSD files (even at the version this project ships with).

Have you tried it?

chenghuangqobuz commented 3 weeks ago

I attempted to process the file, but I encountered the following error: "Couldn't process given file /Users/**/Desktop/Wake Up Dead.dsf."

chenghuangqobuz commented 3 weeks ago

Hi,

Thank you for the updated code.

I followed your documentation to generate a Mac version and created a Makefile. I installed TagLib version 1.31.1 via Homebrew.

However, it seems the issue might be related to the installation at /opt/homebrew/opt/taglib/include/taglib, as I couldn’t find any references to DSD support in the source files. This could be why it’s not working as expected.

Screenshot 2024-08-24 at 09 11 53

I’ll try compiling TagLib on my Mac and will test again.

Really appreciate your support — thanks again!

Zereges commented 2 weeks ago

Sorry, I was away from internet. I will check this during this week. Can you check the TagLib directly? Their documentation says

Currently, it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags in FLAC, MPC, Speex, WavPack, TrueAudio, WAV, AIFF, MP4, APE, ASF, DSF, DFF and AAC files.

Also, can you share the input file? If not, I could add some extra debugging and would ask for an output.

Zereges commented 1 week ago

It seems that the TagLib added support only in 2.0.

Support for Direct Stream Digital (DSD) stream files (DSF) and interchange file format (DSDIFF, DFF), ADTS (AAC) files.

The current version of id3-tag-cli works with 2.0, but it's not yet in all package repositories (i.e. Debian is still with 1.13, Homebrew also seems to use only 1.13).

Compiling TagLib 2.0 on Linux and linking id3-tag-cli against it works with DSD files.