0

I'm using ffmpeg to perform audio filtering on my music library. However, it is not copying all FLAC tags (in particular, it's dropping chapter information).

Copy all tags from one FLAC file to another? has a potential work-around, but is there a way to get ffmpeg to copy chapter information from the input to the output?

1
  • hey, just a heads up: while using ffmpeg on linux is totally on-topic here, my experience is that the ffmpeg user- and hence expert-base over at superuser.com is larger. So, I'd probably wait another 12 hours for an answer here, and then move the question over, if nothing happened (of course, if someone answered or left a comment, address that.) Commented Oct 30, 2023 at 10:51

1 Answer 1

0

You can use ffprobe to export metadata from a file, into whatever format you want. In this scenario you would probably find use from the flat format, which just exports tags as key=value pairs, ffprobe -show_format -print_format flat music.flac(here is the ffprobe documentation if you want more info on that command)

You can then write this metadata into a file with this command:

ffmpeg -i flac.flac -map 0 -y -codec copy -write_id3v2 1 -metadata artist-sort="emon feat sort" flac.flac, with metadata in the format of key=value, with quotation marks needed if a value has a space in it.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.