Инструмент командной строки для записи метаданных flac, ogg vorbis и mp3 id3v2?
есть ли инструмент командной строки, который может записывать все три формата / контейнера? Я уже искал но не мог найти ничего, что делает работу.
до сих пор я использую vorbiscomment, metaflac и id3tool, и я действительно хотел бы заменить их одним инструментом, если это возможно.
Если нет инструмента, чем можно написать их все, есть ли хотя бы предложение заменить id3tool чем-то, что может написать id3v2 (v2.4) теги, по крайней мере?
Я не ищу Таггер но для инструмента, который позволит мне записывать метаданные скриптом в разные аудиофайлы. Мой текущий статус заключается в том, что у меня есть скрипт, который использует три инструмента (vorbiscomment, metaflac и id3tool), но затем я понял, что id3tool не может писать теги id3v2... Я автоматически создаю эти 3 аудиоформата из WAV master и должен иметь возможность автоматизировать запись метаданных в эти файлы.
4 ответов
Удивительно, но я нашел хорошее решение после месяца: Ffmpeg.
ffmpeg -i out.mp3 -metadata title="The Title You Want" -metadata artist="" -metadata album="Name of the Album" -c:a copy out2.mp3
Читать полную статью здесь http://jonhall.info/how_to/create_id3_tags_using_ffmpeg
он даже работает с данными UTF8 и внешними символами.
libsndfile
сделает все это ffmpeg
делает и гораздо более элегантно.
например, когда вы запускаете $ sndfile-metadata-set --help
, вы можете увидеть использование:
sndfile-metadata-set [options] <file>
sndfile-metadata-set [options] <input file> <output file>
Where an option is made up of a pair of a field to set (one of
the 'bext' or metadata fields below) and a string. Fields are
as follows :
--bext-description Set the 'bext' description.
--bext-originator Set the 'bext' originator.
--bext-orig-ref Set the 'bext' originator reference.
--bext-umid Set the 'bext' UMID.
--bext-orig-date Set the 'bext' origination date.
--bext-orig-time Set the 'bext' origination time.
--bext-coding-hist Set the 'bext' coding history.
--bext-time-raf Set the 'bext' Time ref.
--str-comment Set the metadata comment.
--str-title Set the metadata title.
--str-copyright Set the metadata copyright.
--str-artist Set the metadata artist.
--str-date Set the metadata date.
--str-album Set the metadata album.
--str-license Set the metadata license.
There are also the following arguments which do not take a
parameter :
--bext-auto-time-date Set the 'bext' time and date to current time/date.
--bext-auto-time Set the 'bext' time to current time.
--bext-auto-date Set the 'bext' date to current date.
--str-auto-date Set the metadata date to current date.
большую часть из вышеуказанных деятельностей можно сделать in-place на существовать папка. Если какая-либо операция не может быть выполнена, приложение выход с соответствующим сообщением об ошибке.
использование libsndfile-1.0.25.
Другие вопросы command-line flac metadata mp3 ogg