Audio Tags (Ogg & FLAC, so far...)

Viewer and VFS (Virtual File System) plugins.

Audio Tags (Ogg & FLAC, so far...)

Postby leo » 22 May 2009, 12:14

  • Introduction:

    The plugin gives Opus the ability to display metadata (and in the future thumbnails) for various audio formats. This is in addition to Opus's built-in support for MP3 and WMA.

    Unlike the dMCTags Plugin, this plugin supports 64-bit and does not require any third-party software.

    At the moment the plugin supports only Ogg Vorbis and FLAC (and Ogg-FLAC). It is essentially a re-written replacement of the old Ogg/FLAC plugin (adding support for 64-bit Windows/Opus and USB exports).

    A future version of the plugin will add support for iTunes/Nero AAC/M4A & Apple Lossless (ALAC), Monkey's Audio (APE), and Speex (SPX). Album-cover thumbnail support will be added for those formats which allow it (including Ogg and FLAC). If you'd like to suggest other formats then add a reply below.
  • Plugin's Web Page:

    See the plugin's web page for more information:

    http://www.pretentiousname.com/audiotags/index.html
  • Screenshot:

    Image
  • History:

    Version 1.0.0.1 (22nd May 2009):
    • First release as part of Directory Opus 9.1.2.0.
    • This first release of the plugin is intended to replace the old Ogg/FLAC plugin.
    • Supports 64-bit Windows/Opus.
    • Supports Opus running from USB sticks (i.e. no registry changes).
    • Supports Unicode filepaths and tag data.
User avatar
leo
Admin
 
Posts: 14688
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby Kaminari » 23 May 2009, 13:00

Hi Leo,

Thanks for the heads-up. Great plugin! So far, I didn't notice any issue with Unicode characters in Vorbis/Flac tags. At last I can stop using Nosh's Ogg plugin for Opus 8 :p
Core 2 Duo E7400 2.8 GHz | Radeon HD4850 512 MB | DDR2 4.0 GB | Win XP Pro SP3 | Opus 9.5.4.0
User avatar
Kaminari
 
Posts: 47
Joined: 06 Mar 2005, 09:25
Location: Paris, France
OS: Windows XP 32-bit
Opus: Illuminati

Postby fuzi1968 » 26 May 2009, 13:10

Hi Leo,

great! THANKS!

Is it please possible to support ID3 tags from WAV files?

It's really easy - you only have to find the ID3 start point in the file and the rest is as in MP3 files.

ID3 tags in WAV files is a defacto-standard used by
- iTunes (never tried it but the developers of the DJ software Serato Scratch Live have told me that)
- Rane Serato Scratch Live
- Tag & Rename (3.5.1)

I'm using Tag & Rename but reading them via DOPUS would be great too!

I'm not a Windows programmer but I know the format and I've written a how-to "read/write" ID3 tags from a WAV/AIFF file here

You only have to handle from one sub chunk to the next until you have found "id3 " (4 characters). Then the marker ID3 indicates the start as in MP3 files ...

Here are other very useful links about the RIFF WAV/AIFF format:

http://ccrma.stanford.edu/courses/422/p ... aveFormat/
http://www.sonicspot.com/guide/wavefile ... estructure
http://www.sno.phy.queensu.ca/~phil/exi ... /RIFF.html
http://www.sno.phy.queensu.ca/~phil/exi ... s/WAV.html
http://www.kk.iij4u.or.jp/~kondo/wave/mpidata.txt
http://muratnkonar.com/aiff/aboutiff.html

:D
fuzi1968
 
Posts: 141
Joined: 26 Sep 2006, 07:07

Postby leo » 26 May 2009, 13:32

I thought ID3 in WAV files was "illegal" and could cause problems with some players? Maybe that's wrong?

Why not use WMA-Lossless, FLAC or Apple Lossess which are both smaller and have official tag formats? Is there something that supports WAVs with ID3s but not one of the other lossless formats?
User avatar
leo
Admin
 
Posts: 14688
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby fuzi1968 » 26 May 2009, 23:59

leo wrote:I thought ID3 in WAV files was "illegal" and could cause problems with some players? Maybe that's wrong?


No - this is not true.

I'm using WMP 11, RealPlayer 10.5, QuickTime 7.6, WinAmp 5.5 and never had a problem with a WAV file (with a sub chunk called "id3 ") - they don't use it - as for other sub chunks which exist but they don't need it so they overread it.

Additional sub chunks could be defined by other programs. So "other" programs which have problems with a sub chunk "id3 " are also having problems with other new sub chunks defined by other programs. This is not related to the sub chunk "id3 " :wink: !
(There might be problems when programs are using the same sub chunk id for their own data/application only but never heared a problem).

I've also tried other djing software and the music programs WaveLab 5 and Sony SoundForge 9 and never had a problem.

WAV is embedded in the RIFF file format.

A very basic explanation of the file format:

"RIFF"
length of following file content RIFF
- "WAV"
- length of following content WAV
- - "sub1"
- - length of following content sub 1
- - content of sub 1
- - "sub2"
- - length of following content sub 2
- - content of sub 2
- - "sub3"
- - length of following content sub 3
- - content of sub 3
- - ... (more sub chunks)
- - "id3 "
- - length of following content "id3 "
- - the content of sub "id3 " - starting with the id "ID3" - the marker as in other music file types which support ID3
- - "sub5"
- - length of following content sub 5
- - content of sub 5
- - ... (more sub chunks)
end of file

(Check ALL links in my first post above and read it carefully for all the details).

So the only one thing you have to do:

Open the WAV file, read the sub chunks (read the first, add the content length and make a new seek in the file, read the next, and so on ...) - until you have found the sub chunk "id3 ". Then the standard ID3 stream begins as in other music files with the id "ID3". From there you use the same sub routine for reading ID3 in MP3's :wink:

In http://www.id3.org/id3v2.4.0-structure, chapter 3, read the first paragraph - and especially the part after "but".

ID3v2 is a general tagging format for audio, which makes it possible to store meta data about the audio inside the audio file itself. The ID3 tag described in this document is mainly targeted at files encoded with MPEG-1/2 layer I, MPEG-1/2 layer II, MPEG-1/2 layer III and MPEG-2.5, but may work with other types of encoded audio or as a stand alone format for audio meta data.


So - you only have to read the de-facto standard. If it's there - use & display it as you read the ID3 stream from MP3. The ID3 stream has it's own standard format. As explained above - it doesn't matter where embedded!

Ok? :wink:

leo wrote:Why not use WMA-Lossless, FLAC or Apple Lossess which are both smaller and have official tag formats? Is there something that supports WAVs with ID3s but not one of the other lossless formats?


I want to have it easy:

    I only use MP3 or WAV - I don't want to use more formats. Space is not the problem. All the software I'm using might not be able to read FLAC or Apple Lossless, etc. - MP3 & WAV are defacto standards here and widly used. I don't want to change it.

    I only get MP3 or WAV files promoted for download (sometimes AIFF from MAC studios but it's the same as WAV - only high/low order bytes are switch which I convert with sox in a few seconds).

    When I buy music, MP3 and/or WAV is available. No convertion required

    I want to us the SAME audio tagging standard - which is ID3 and works in both files (with all the software which support it and which I have).


The funny thing is - whenever I post "please support ID3 in WAV" I get a return question "Why don't you use another lossless format?" (see e.g. mp3tag.de forum). :wink:

.. if you would not support Apple Lossless and other people ask why don't you support Apple Lossless - would you ask "Why don't you use another (lossless) format?" :wink:

However - a support would be great. It's really easy to read the data out and no big overhead to find the ID3 stream ... and analyzing the ID3 stream is still programmed - use this sub routine :wink:

Cheers,
Robert
:D
fuzi1968
 
Posts: 141
Joined: 26 Sep 2006, 07:07

Postby fuzi1968 » 27 May 2009, 00:10

PS: If you need a WAV file with ID3 tags for testing. Please ask me for one ... ROBERT
fuzi1968
 
Posts: 141
Joined: 26 Sep 2006, 07:07

Postby leo » 27 May 2009, 01:32

Thanks for the info. I'll add it to the to-do list.
User avatar
leo
Admin
 
Posts: 14688
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby fuzi1968 » 27 May 2009, 04:58

btw: You can download & install Tag & Rename 3.5.1 - there is 30 days test mode - and tag your own files.

I recommend THIS version because the previous versions/betas had a bug with ID3 in WAV files (in detail: a sub chunk must have an even number of bytes - maybe a "00" have to be added after the ID3 stream). - Which explains that ALL wav files must have an even number of bytes. :wink:
fuzi1968
 
Posts: 141
Joined: 26 Sep 2006, 07:07

Postby fuzi1968 » 27 May 2009, 05:07

Maybe you want to have a good mapping between different tags & versions:

Click
http://help.mp3tag.de/de/main_tags.html

mp3tag.de is the best tagging program (except it doesn't support ID3 in WAV files but the programmer is informed and will look into it when time).

[/url]
fuzi1968
 
Posts: 141
Joined: 26 Sep 2006, 07:07

Postby fuzi1968 » 27 May 2009, 06:27

btw: In DOPUS 9.1.2.0 there is still a bug showing the property bit rate of a wav file.

All wav files have the bit rate 176 kbps ... which means that a mp3/192 would sound better? :shock:

The correct value is 1411 kbps - as shown by any other program. Reported as bug BEFORE 9.1.1.8 came out.
fuzi1968
 
Posts: 141
Joined: 26 Sep 2006, 07:07

Postby leo » 28 May 2009, 03:52

WAV bitrate isn't to do with this plugin, but Jon tells me he's fixed it for the next version.
User avatar
leo
Admin
 
Posts: 14688
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby Dal » 02 Jun 2009, 11:35

Thanks for the plugin, but it is not displaying any info about my flac files.

The plugin is selected in Preferences, and I'm running Dopus 9.1.2.0

What am I doing wrong?

The FLAC files are made with CD DA Extractor v12, with highest compression, BTW.
Dal
 
Posts: 4
Joined: 12 Aug 2005, 02:32

Postby leo » 02 Jun 2009, 11:40

If the FLAC files have ID3 tags instead of Vorbis Comments then the plugin will not show the tags. (ID3 tags on FLAC are illegal, but some programs still put them on.)

Otherwise, or if you're not sure, please create a small sample file for me to look at. (e.g. Maybe find a CD with lots of those 4 second silent tracks padding the end before a "hidden" track 99 or similar, and rip & tag one of the silent tracks.)

So long as you zip the file and it isn't too large you should be able to attach a FLAC to a forum message. (Please avoid copyright stuff for obvious reasons. A silent track will be fine, though.)
User avatar
leo
Admin
 
Posts: 14688
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Postby Manuel74 » 06 Aug 2009, 06:51

I had the same problem, no tag for FLAC file.
After some time I realize that while with MP3 Directory Opus automatically switch folder format to music and display tag, with FLAC I have to manually switch folder format to music and after that i see the tag.

Can Dopus change folder format automatically also with flac file ?

bye
Manuel
Manuel74
 
Posts: 1
Joined: 26 Apr 2006, 02:14

Postby leo » 06 Aug 2009, 07:13

You just need to add FLAC to the Music file types group, under Settings -> File Types.

(Not 100% sure but I think .FLAC is in the group by default now, but if you installed Opus before that change then you'll have the old list of extensions... I might be wrong though. Either way, it's easy to add.)
User avatar
leo
Admin
 
Posts: 14688
Joined: 07 Nov 2004, 01:30
Location: London, UK
OS: Windows 7 64-bit
Opus: Illuminati

Next

Return to Plugins