HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: Porcus on 2021-11-20 20:14:05

Title: Clean tags and other non-audio chunks from .wav. How to?
Post by: Porcus on 2021-11-20 20:14:05
So even after using Mp3tag and fb2k to remove tags, and foo_sanitizer, running flac still returns:
WARNING: skipping unknown chunk 'JUNK' (use --keep-foreign-metadata to keep)

How to strip the .wav file for all the junk with or without capitals?
Title: Re: Clean tags and other non-audio chunks from .wav. How to?
Post by: AiZ on 2021-11-20 20:52:54
Hello,

ffmpeg?
Code: [Select]
ffmpeg -i in.wav -map_metadata -1 -bitexact out.wav
    AiZ
Title: Re: Clean tags and other non-audio chunks from .wav. How to?
Post by: danadam on 2021-11-20 20:56:48
sox
Code: [Select]
]$ hexdump -Cn64 in.wav
00000000  52 49 46 46 d4 09 04 00  57 41 56 45 66 6d 74 20  |RIFF....WAVEfmt |
00000010  10 00 00 00 01 00 01 00  44 ac 00 00 88 58 01 00  |........D....X..|
00000020  02 00 10 00 4a 55 4e 4b  00 00 00 00 6a 75 6e 6b  |....JUNK....junk|
00000030  00 00 00 00 4a 75 4e 6b  00 00 00 00 64 61 74 61  |....JuNk....data|
00000040

]$ sox in.wav out.wav

]$ hexdump -Cn64 out.wav
00000000  52 49 46 46 bc 09 04 00  57 41 56 45 66 6d 74 20  |RIFF....WAVEfmt |
00000010  10 00 00 00 01 00 01 00  44 ac 00 00 88 58 01 00  |........D....X..|
00000020  02 00 10 00 64 61 74 61  98 09 04 00 00 00 01 02  |....data........|
00000030  02 04 02 06 00 08 fd 09  f7 0b ed 0d e1 0f d0 11  |................|
00000040
Title: Re: Clean tags and other non-audio chunks from .wav. How to?
Post by: bennetng on 2021-11-21 16:16:24
For foobar2000, use the file converter and write to a new .wav file.