web-dev-qa-db-fra.com

Ajouter des tags à un fichier Ogg Opus

Je marque habituellement les fichiers Ogg Vorbis avec EasyTAG 2.1.7.

Maintenant, je veux produire des fichiers Ogg Opus et je ne peux pas écrire de balises dans le fichier. EasyTAG indique que le fichier Ogg n’a pas de flux Vorbis ou Speex.

Un autre outil, tel que lltag, crache des messages tels que "Sauter ce fichier avec un type inconnu".

Quelques conseils? Merci.

8

Les temps ont changé depuis que cette question a été posée pour la première fois, puis répondue! Depuis octobre 2017, les fichiers Ogg Opus sont devenus beaucoup plus courants et Ubuntu propose plusieurs bons choix pour permettre le balisage de vos fichiers Ogg Opus.

Je détaille 3 méthodes ci-dessous que je recommanderais personnellement:

1. EasyTag

Une version moderne d’EasyTag peut baliser les fichiers Ogg Opus.

Modifier : Comme cela a été souligné, c'est moins bien idée car il y a un problème non résolu avec marquage cassé des fichiers Ogg Vorbis . D'après mon expérience, la version sûre de EasyTag pour Ogg Vorbis est 2.4.2 et cette version ne m'a personnellement posé aucun problème.

Installez d'abord EasyTag:

Sudo apt-get install easytag

Ouvrez ensuite votre fichier Ogg Opus avec EasyTag pour l'édition de balises! Une capture d'écran de mon propre système vu ci-dessous:

enter image description here

D'autres bons choix pourraient être PuddleTag ou Kid3 ...

2. Créer des tags lors de l'encodage avec Opusenc:

Si vous préférez la ligne de commande, vous pouvez créer vos balises en codant vos fichiers avec opusenc. Installez cet utilitaire en lançant:

Sudo apt-get install opus-tools

La ligne de commande que j'ai utilisée pour créer mon fichier de test est la suivante:

opusenc --bitrate 128 \
        --artist "Jody Marie Gnant" \
        --title "Lucky Night" \
        --date "1995" \
        --album "Treasure Quest Soundtrack" \
        --genre "Soundtrack" \
        luckynight.wav luckynight.opus

Plus de balises sont disponibles pour ajouter à la syntaxe ci-dessus et toutes peuvent être vues en exécutant opusenc -h à partir de la ligne de commande.

3. Extraction de CD audio vers Ogg Opus + tagging

Encore une fois, si vous aimez la ligne de commande et créez vos fichiers audio Ogg Opus à partir de CD audio sous des versions plus récentes d’Ubuntu, vous pouvez utiliser abcde pour extraire, convertir ainsi que tag avec une seule commande. Installez abcde comme suit:

Sudo apt-get install abcde opus-tools

Placez ensuite le fichier de configuration suivant dans ~/.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 :-)

Ensuite, lancez simplement la commande:

abcde

pour mettre en marche le processus!

En conclusion:

Sous une version moderne d'Ubuntu, vous n'aurez que l'embarras du choix pour baliser vos fichiers Ogg Opus avec de bons choix à la fois en mode d'interface graphique et en ligne de commande ...

3
andrew.46

Le standard opus est relativement nouveau et n’a pas encore obtenu un bon support pour les outils. Le flux d'opus est généralement emballé dans des conteneurs ogg; Quand un programme qui ignore tout de l'opus regarde le flux de conteneurs, il recherche les codecs qu'il connaît (généralement vorbis ou speex pour l'audio).

L'état actuel du support est indiqué sur la page Wikipedia d'Opus: https://en.wikipedia.org/wiki/Opus_ (audio_format) #Support_in_software

VLC version 2.04 devrait obtenir un support opus, mais il n'est pas encore sorti.

J'utilise wine avec foobar20 pour baliser les fichiers opus sous linux, et cela fonctionne bien.

2
phoibos