LinuxForum.Fans
Тема

Замена mp32ogg

Автор: Aspedin 3 сообщений 1574 просмотров
#41971

Т.к. omp32ogg в плачевном состоянии, решил наскриптовать его подобие.
Lame и oggenc собственно со всем справляются..кроме Тегов.

Задача такая. Вытащить из *.mp3 теги, перекодировать в UTF и вставить в *.ogg

С oggenc всё просто, там есть ключи:

text
-c comment, --comment comment    Add the string comment as an extra comment. This may be used multiple times, and all instances will be added to each of the input files specified. The argument should be in the form "tag=value".
-a artist, --artist artist    Set the artist comment field in the comments to artist.
-G genre, --genre genre    Set the genre comment field in the comments to genre.
-d date, --date date    Sets the date comment field to the given value. This should be the date of recording.
-N n, --tracknum n    Sets the track number comment field to the given value.
-t title, --title title    Set the track title comment field to title.
-l album, --album album    Set the album comment field to album. 

Тоесть вопрос такой. Как автоматически вытащить теги из *.mp3 и при необходимости перевести в UTF-8?

#41979

Я для извлечения mp3 тегов использовал eyed3

#41981

Пузон....плохое у меня к этому языку отношение, но как вариант можно оставить

Войдите или зарегистрируйтесь, чтобы ответить.