flac icon indicating copy to clipboard operation
flac copied to clipboard

copy all tags and metadata block (eg. APPLICATION) with metaflac

Open mistepien opened this issue 6 years ago • 4 comments

It would be great to have an opportunity to copy ALL TAGS and metadata blocks from one flac file to the other without encoding.

mistepien avatar Feb 11 '19 11:02 mistepien

Does the flac command line program not do that already? If it doesn't can you give me an example command and input file where all tags are not copied?

erikd avatar Feb 12 '19 00:02 erikd

no, flac makes even more. the point is to have full control over all tags WITHOUT encoding.

mistepien avatar Feb 12 '19 00:02 mistepien

Sorry, I really have zero idea of what you are talking about. You need to explain it much better and provide an example.

erikd avatar Feb 12 '19 00:02 erikd

because copying tags and metadata block by metaflac means also ability to edit them. this is what for is metaflac. to copy, to remove, to edit. currently metaflac does not control all non-stream blocks.

mistepien avatar Feb 12 '19 00:02 mistepien

With PR #549 copying of all metadata blocks (except seektable and streaminfo which can't and shouldn't be copied) can be done as follows

metaflac --remove --except-block-type=STREAMINFO,SEEKTABLE destinationfile.flac
metaflac --list --data-format=binary sourcefile.flac --except-block-type=STREAMINFO,SEEKTABLE | metaflac --append destinationfile.flac

This first removes the existing metadata blocks in the destination and then exports and imports metadata with two metaflac calls.

ktmf01 avatar Feb 20 '23 08:02 ktmf01

This has been implemented in #549

ktmf01 avatar Mar 21 '23 12:03 ktmf01