Jor*_*Lis 14 sound tagging ogg-opus
我通常使用 EasyTAG 2.1.7 标记 Ogg Vorbis 文件。
现在,我想生成 Ogg Opus 文件,但我无法将标签写入文件。EasyTAG 承担 Ogg 文件没有 Vorbis 或 Speex 流。
另一个工具,例如 lltag,会吐出诸如“跳过此未知类型的文件”之类的消息。
一些忠告?谢谢。
自从这个问题首先被问到然后被回答以来,时代已经改变了!现在在 2017 年 10 月,Ogg Opus 文件变得更加主流,并且在 Ubuntu 下有几个不错的选择来允许标记您的 Ogg Opus 文件。
我在下面详细介绍了我个人推荐的 3 种方法:
1.易标签
EasyTag 的现代版本可以标记 Ogg Opus 文件。
编辑:正如已经指出的那样,这不是一个好主意,因为Ogg Vorbis 文件的标记损坏存在未解决的问题。根据我的经验,Ogg Vorbis 的 EasyTag 安全版本是 2.4.2,这个版本对我个人没有任何问题。
首先安装 EasyTag:
sudo apt-get install easytag
Run Code Online (Sandbox Code Playgroud)
然后使用 EasyTag 打开您的 Ogg Opus 文件进行标签编辑!我自己的系统截图如下:
其他不错的选择可能是 PuddleTag 或 Kid3 ...
2. 使用 Opusenc 编码时创建标签:
如果您更喜欢命令行,则可以在使用opusenc
. 通过运行以下命令安装此实用程序:
sudo apt-get install opus-tools
Run Code Online (Sandbox Code Playgroud)
我用来创建测试文件的命令行如下:
opusenc --bitrate 128 \
--artist "Jody Marie Gnant" \
--title "Lucky Night" \
--date "1995" \
--album "Treasure Quest Soundtrack" \
--genre "Soundtrack" \
luckynight.wav luckynight.opus
Run Code Online (Sandbox Code Playgroud)
更多的标签可以添加到上面的语法中,所有这些都可以通过opusenc -h
从命令行运行来查看。
3. 将音频 CD 翻录到 Ogg Opus + 标记
同样,如果您热衷于命令行,并且在较新版本的 Ubuntu 下从音频 CD 创建 Ogg Opus 音频文件,您可以使用单个命令abcde
进行翻录、转换和标记。安装 abcde 如下:
sudo apt-get install abcde opus-tools
Run Code Online (Sandbox Code Playgroud)
然后将以下配置文件放入~/.abcde.conf
:
# -----------------$HOME/.abcde.conf----------------- #
#
# A sample configuration file to convert music cds to
# Opus using abcde version 2.7.2
#
# http://andrews-corner.org/linux/abcde/index.html
# -------------------------------------------------- #
# Encode tracks immediately after reading. Saves disk space, gives
# better reading of 'scratchy' disks and better troubleshooting of
# encoding process but slows the operation of abcde quite a bit:
LOWDISK=y
# Specify the method to use to retrieve the track information,
# I give the default below but consider setting 'musicbrainz'
# instead, which is my own preferred option:
CDDBMETHOD=cddb
# Make a local cache of cddb entries and then volunteer to use
# these entries when and if they match the cd:
CDDBCOPYLOCAL="y"
CDDBLOCALDIR="$HOME/.cddb"
CDDBLOCALRECURSIVE="y"
CDDBUSELOCAL="y"
# Specify the encoder to use for Opus. In this case
# the only choice is opusenc.
OPUSENCODER=opusenc
# Specify the path to the selected encoder. In most cases the encoder
# should be in your $PATH as I illustrate below, otherwise you will
# need to specify the full path. For example: /usr/bin/opusenc
OPUSENC=opusenc
# Specify your required encoding options here. Multiple options can
# be selected as '--preset standard --another-option' etc.
# In vbr mode the bitrate setting allows for a range of bitrates, use
# --cvbr or --hard-cbr for exact bitrate control. See all of the options
# by running ;opusenc -h' from the command line...
OPUSENCOPTS="--vbr --bitrate 128"
# Output type for opus.
OUTPUTTYPE="opus"
# The cd ripping program to use. There are a few choices here: cdda2wav,
# dagrab, cddafs (Mac OS X only) and flac. New to abcde 2.7 is 'libcdio'.
CDROMREADERSYNTAX=cdparanoia
# Give the location of the ripping program and pass any extra options,
# if using libcdio set 'CD_PARANOIA=cd-paranoia'.
CDPARANOIA=cdparanoia
CDPARANOIAOPTS="--never-skip=40"
# Give the location of the CD identification program:
CDDISCID=cd-discid
# Give the base location here for the encoded music files.
OUTPUTDIR="$HOME/Music"
# The default actions that abcde will take.
ACTIONS=cddb,playlist,read,encode,tag,move,clean
# Decide here how you want the tracks labelled for a standard 'single-artist',
# multi-track encode and also for a multi-track, 'various-artist' encode:
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
VAOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
# Decide here how you want the tracks labelled for a standard 'single-artist',
# single-track encode and also for a single-track 'various-artist' encode.
# (Create a single-track encode with 'abcde -1' from the commandline.)
ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'
# Create playlists for single and various-artist encodes. I would suggest
# commenting these out for single-track encoding.
PLAYLISTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}.m3u'
VAPLAYLISTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}.m3u'
# This function takes out dots preceding the album name, and removes a grab
# bag of illegal characters. It allows spaces, if you do not wish spaces add
# in -e 's/ /_/g' after the first sed command.
mungefilename ()
{
echo "$@" | sed -e 's/^\.*//' | tr -d ":><|*/\"'?[:cntrl:]"
}
# What extra options?
MAXPROCS=2 # Run a few encoders simultaneously
PADTRACKS=y # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=2 # Useful for debugging
COMMENT='abcde version 2.7.2' # Place a comment...
EJECTCD=y # Please eject cd when finished :-)
Run Code Online (Sandbox Code Playgroud)
然后只需运行以下命令:
abcde
Run Code Online (Sandbox Code Playgroud)
设置进程运行!
综上所述:
在现代版本的 Ubuntu 下,你会被 gui 和命令行中的好选择标记你的 Ogg Opus 文件的选择所宠坏......