KnightDanila / BAT_FFMPEG

Batch script files for FFMPEG (Microsoft Windows and DOS, OS/2 :unicorn:)
https://github.com/KnightDanila/BAT_FFMPEG
123 stars 28 forks source link

batch replay gain removal #1

Closed trattaa closed 4 years ago

trattaa commented 4 years ago

Возможно ли сделать пакетное удаление Replay Gain по этому примеру. Конкретней, если запустить bat, то он бы пакетно удалил из всех mp3 replay gain, включая вложенные папки, а новое имя было бы точно такое же как у оригинала, ну или просто к новому имени добавлялся какой-нибудь символ, а старый удалялся

KnightDanila commented 4 years ago

Hi, can you add some sample mp3 (or part of mp3) - for tests

trattaa commented 4 years ago

https://dropmefiles.com/iHjfn 2020-06-30_004725

KnightDanila commented 4 years ago

Hello, thank you for sample :) Now I can say it is possible :bug: I found it in source code of ffmpeg https://github.com/FFmpeg/FFmpeg/blob/master/libavfilter/f_sidedata.c#L88 So theoretically, it is possible to remove it from metadata without full reconverting I am working on it :)

KnightDanila commented 4 years ago

Hello, after a while I found out how to do that :)

Audio-ToMP3_RemoveSideData.bat https://github.com/KnightDanila/BAT_FFMPEG/blob/master/Audio-ToMP3_RemoveSideData.bat

This bat file doesn't reconvert the original mp3 - because it is the fastest way. In the same way, it doesn't change the original quality. But on the other hand, it removes all sidedata from metadata (but save all metadata) Read this about sidedata and lameinfo (xing) "not officially part of the mp3 specification" https://eyed3.readthedocs.io/en/latest/plugins/lameinfo_plugin.html

It does not work with subfolders yet, but I am working on it :)

Test it and write if it works :racing_car:

trattaa commented 4 years ago

I confirm the work of this script, thanks for the help. I will wait for the update