Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Clean tags and other non-audio chunks from .wav. How to? (Read 340 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Clean tags and other non-audio chunks from .wav. How to?

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?
High Voltage socket-nose-avatar

Re: Clean tags and other non-audio chunks from .wav. How to?

Reply #1
Hello,

ffmpeg?
Code: [Select]
ffmpeg -i in.wav -map_metadata -1 -bitexact out.wav
    AiZ

Re: Clean tags and other non-audio chunks from .wav. How to?

Reply #2
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

 

Re: Clean tags and other non-audio chunks from .wav. How to?

Reply #3
For foobar2000, use the file converter and write to a new .wav file.