Jump to content

Music - multivalue tags


Helios61

Recommended Posts

Helios61

Hi community! 

 

I am a completely newbie here at Mediabrowser and probably i am doing something wrong. It seems that the tagreader of MB doesn't read the multvalue tags of my .flac file propper. 

 

MediaInfo of one of theses files -> 

Allgemein
Vollständiger Name                       : F:\Test\Hilary Hahn (2003) - Bach · Concertos (24bit-88kHz studio master)\01 - Violin Concerto No.2 in E, BWV 1042 - 1. Allegro.flac
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Dateigröße                               : 141 MiB
Dauer                                    : 6min 56s
Modus der Gesamtbitrate                  : variabel
Gesamte Bitrate                          : 2 837 Kbps
Album                                    : Bach · Concertos
Album/Künstler                           : Hilary Hahn / Los Angeles Chamber Orchestra / Jeffrey Kahane / Hilary Hahn / Los Angeles Chamber Orchestra / Jeffrey Kahane
Teil                                     : 01/01
Track-Name                               : Violin Concerto No.2 in E, BWV 1042 - 1. Allegro
Track-Name/Position                      : 01/12
Künstler                                 : Hilary Hahn / Los Angeles Chamber Orchestra / Jeffrey Kahane
Komponist                                : Johann Sebastian Bach
Leiter                                   : Jeffrey Kahane
Genre                                    : Klassik
Aufnahmedatum                            : 2003
Cover                                    : Yes
Cover-Typ                                : Cover (front)
Cover-MIME                               : image/jpeg
HDTRACKS                                 : HDtracks.com

Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Dauer                                    : 6min 56s
Bitraten-Modus                           : variabel
Bitrate                                  : 2 837 Kbps
Kanäle                                   : 2 Kanäle
Samplingrate                             : 88,2 KHz
BitDepth/String                          : 24 bits
Stream-Größe                             : 141 MiB (100%)
verwendete Encoder-Bibliothek            : libFLAC 1.2.1 (UTC 2007-09-17)

and this is the result in MB -> 

 

post-398-0-33329400-1381480709_thumb.jpg 

 

Couid you please help me, that the taginformations  are completely displayed? 

 

Best regards 

Helios

Edited by Helios61
Link to comment
Share on other sites

rickster53

Try using a semi-colon as the separator between entries instead of the slash.  Ie   artist1; artist2; artist3; 

 

I can recommend mp3tag as an excellent tool to maintain and edit your tags...

Edited by rickster53
Link to comment
Share on other sites

Helios61

Try using a semi-colon as the separator between entries instead of the slash.  Ie   artist1; artist2; artist3; 

 

I can recommend mp3tag as an excellent tool to maintain and edit your tags...

 

Hi rickster53! 

 

Thanks for reply! The slash is only used by mediainfo for display. All my music is propper tagged by mp3tag since ages  ;), IMO the best tagger -> 

 

post-398-0-92503700-1381491513_thumb.jpg

Edited by Helios61
Link to comment
Share on other sites

Helios61

I notice your tags are not in English...

 

I think, Tags are multi-language, e.G. Artist Tags "Hilary Hahn" and "Los Angeles Chamber Orchestra" or Album Tag "Bach · Concertos".

Link to comment
Share on other sites

Please post a link to the file on dropbox so that we can test it out.

 

Tikuf, when you see this, can you run ffprobe against it?

 

Helios61 - if you can save us some time and figure out how to run ffprobe against it, in json format showing the streams and format info, that would be helpful.

Link to comment
Share on other sites

Helios61

Hi Luke, 

 

here it is -> 

C:\Users\Michael\AppData\Roaming\MediaBrowser-Server\ffmpeg\ffmpeg20130904.1>ffp
robe c:\test.flac
ffprobe version N-56041-gf974289 Copyright (c) 2007-2013 the FFmpeg developers
  built on Sep  4 2013 18:01:17 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 16.101 / 55. 16.101
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 83.102 /  3. 83.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, flac, from 'c:\test.flac':
  Metadata:
    TITLE           : Concerto for Violin and Orchestra in D major, Op.77 - II.
Adagio
    TOTALDISCS      : 01; 1
    TOTALTRACKS     : 06
    ALBUM           : Brahms -À Violin Concerto Op.77 - Double Concerto Op.102
    GENRE           : Klassik
    disc            : 01/01
    COMPOSER        : Johannes Brahms
    CONDUCTOR       : Riccardo Chailly
    album_artist    : Riccardo Chailly
    ALBUM ARTIST    : Riccardo Chailly
    ARTIST          : Riccardo Chailly
    DATE            : 2008
    track           : 02/06
  Duration: 00:09:10.72, bitrate: 636 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Stream #0:1: Video: mjpeg, yuvj420p(pc), 709x709 [SAR 300:300 DAR 1:1], 90k
tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
It seems, that FFmpg isn't able to read (multivalue-) tags of .flac files. DropBox Link -> Link

 

Best regards

Helios

Edited by Helios61
Link to comment
Share on other sites

no that's not true because we already support multiple artists.

 

however, it might be true in your case if the artist tag name is not in english.

Link to comment
Share on other sites

Helios61

Just testet this behaviour with the Genre tag of this file. I've added the genre Test to this this file and in mediabrowser only Test is displayed. Exspected entries are Klassik and Test!

 

 

 

however, it might be true in your case if the artist tag name is not in english.

 

What have language settings to do with the tags inside a .flac file (Header)?  ;) "Vadim Repin" (first artist tag of this file) is the same in german, english, french....

Edited by Helios61
Link to comment
Share on other sites

Helios61

Aah, now i understand, but i don't believe so. Please forget the mediainfo quote from first post. I thik the translation "Artist ~ Künstler" is confusing. All tagreaders here (MP3Tag, Foobar, MPTagThat) are reading the Artist Tag with multivalue entries fine. 

Edited by Helios61
Link to comment
Share on other sites

ginjaninja

looking at your test file i dont think this has anything to do with foreign tags..its all down to the fact that Helios61 is using a delimter '\\'.

Interestingly

1. MP3TAG seems to prefer '\\' as a separator (separate values show as separate in the extended tag interface (see Helios61s screenshot)

2. ffprobe treats '\\' as special and only shows the value after the last \\.

3. With an alternative delimter FFPROBE shows the tags as a normal text string. Presumably MB3 applies its separator logic to the string. 

ALBUM           : Ring Ring
ARTIST          : artist1;artist2;artist3
GENRE           : Pop
TITLE           : Ring Ring
album_artist    : aartist1/aartist2/aartist3
DATE            : 1973
track           : 1

4. Given assumption that MB3 uses the text output of ffprobe...Even if MB3 understood '\\' 'as a separator', MB3 never sees the fuller text string in the tag because ffprobe has presumably truncated.

 

I think a solution would be to use the mp3tag, format value action, to replace \\ with / (or another separator that mb3 understands) in your tags.

As long as your other environments dont rely on \\

 

Action Type: Format Value

FIELD: ARTIST

Format Value: $meta_sep(ARTIST,/)

Edited by ginjaninja
  • Like 1
Link to comment
Share on other sites

ginjaninja

as an aside looks like 2.4 will introduce a standard for multiple values, which MB3 devs may want to take into account in time.

from wikipedia

Multiple values in v2.4 tags[edit]

Version 2.4 of the specification prescribes that the text fields (all the fields starting with a T except TXXX) can contain multiple values separated by a null character. The null character is the one represented by the termination code for the character encoding used.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
Helios61

 

I think a solution would be to use the mp3tag, format value action, to replace \\ with / (or another separator that mb3 understands) in your tags.

As long as your other environments dont rely on \\

 

Action Type: Format Value

FIELD: ARTIST

Format Value: $meta_sep(ARTIST,/)

 

Hi ginjaninja, 

 

Thanks for reply, but unfortunately the result of tagging in this way is this -> 

 

5274edaae4da2_Bild_001.jpg

 

It should be ->

 

5274ee957d149_Bild_002.jpg

 

 

 

Best regards 

 

Helios

post-398-0-23194100-1383394697_thumb.jpg

Edited by Helios61
Link to comment
Share on other sites

ginjaninja

Hi Helios.

 

i still think i am correct in the sense that that action will result in MB3 seeing separate artists.

 

When mp3tag shows artists on separate lines it is because it has special appreciation for '\\'. other than that artist1\\artist2 is no diferent to artist1/artist2 as an id3tag.

as well as mp3tag treating '\\' as special; ffprobe does aswell.

 

the screenshot which shows the result of the artists all on 1 line separated by a tag mb3 understands and ffprobe doesnt balk at ie '/' is the correct configuration (if you want mb3 to 'see' multiple artists); it just doesnt look as 'pretty' in mp3tag.

Link to comment
Share on other sites

RaxPower

How does other media players pick up the tags, do they read the mp3tag method "\\" and display the expected output?

Im pretty curious about this as i retagged a lot of my music using mp3tag, and as such all extra fields arent being picked up by MB.

 

Granted ive started ripping to flac, i am not too bothered about how it looks on other players.

Link to comment
Share on other sites

Helios61

How does other media players pick up the tags, do they read the mp3tag method "\\" and display the expected output?

Foobar2000, Musicbee and Mediaportal are reading these multivalue tags fine.

Link to comment
Share on other sites

ginjaninja

@tifuf

is that how you get someones attention on this forum?

I think it is tikuf who is the ffprobe expert?

if you could find a way for ffprobe to not 'interpret' '\\' as special..then you could ask luke to add '\\' as an Mb3 seperator.

As you confirmed other clients do support '\\' then it would be good reason for mb3 to support.

  • Like 1
Link to comment
Share on other sites

If you could find a way for ffprobe to not 'interpret' '\\' as special..then you could ask luke to add '\\' as an Mb3 seperator.

 

Short of recompiling ffprobe with the extra code (which will likely have a flow on effect and break other things) this isnt going to happen unless the ffmpeg devs feel like supporting it. I would suggest using ; as a separator 

  • Like 1
Link to comment
Share on other sites

Helios61

I would suggest using ; as a separator 

 

Not working, so i have to wait with using MB till this bug is fixed in FFMpeg and/or MB3. :(

 

Thanks for your great work! 

 

Helios

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...