If you have been using the cmus music player and noticed that the audio tags you added with ffmpeg are not showing up, don't worry! There is a simple solution to this problem.
Cmus is a powerful and lightweight music player for the command line. It supports various audio formats and provides a simple and efficient way to manage your music library. However, sometimes it may not display the audio tags correctly, especially if they were added using ffmpeg.
Audio tags, also known as metadata, contain information about your audio files such as the title, artist, album, and genre. They make it easier to organize and search for your favorite songs. When these tags are missing or not displayed correctly, it can be frustrating.
The issue with cmus not showing the audio tags added with ffmpeg is typically caused by the way ffmpeg writes the metadata. By default, ffmpeg writes the metadata in a format that cmus cannot read. However, there is a workaround to fix this problem.
To ensure that cmus can read the audio tags added with ffmpeg, you need to specify the output format for the metadata when using ffmpeg. Here's an example of how you can do this:
ffmpeg -i input.mp3 -metadata title="My Song" -metadata artist="John Doe" -metadata album="My Album" -c copy output.mp3
In the above command, replace "input.mp3" with the name of your input audio file and "output.mp3" with the desired name of the output file. The "-metadata" flag is used to specify the individual tags you want to add. You can add more tags as needed.
After running the above command, the audio tags should be added to the output file in a format that cmus can recognize. You can then import the file into cmus, and the tags should be displayed correctly.
If you have already added audio tags using ffmpeg without specifying the output format, you can still fix them. Simply re-encode the audio file with the correct metadata format using the command mentioned above.
It's important to note that cmus may not display certain types of audio tags, such as embedded album art or lyrics. This is because cmus has limited support for certain metadata formats. However, the basic tags like title, artist, and album should be displayed correctly.
In conclusion, if you are facing the issue of audio tags added with ffmpeg not showing up in cmus, make sure to specify the output format for the metadata when using ffmpeg. By following the steps mentioned above, you can ensure that cmus displays the audio tags correctly, allowing you to organize and enjoy your music library more efficiently.
| References |
|---|
| cmus Official Website |
| ffmpeg Official Website |