IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Matroska mka single album file, what's foobar doing?
detto87
post Mar 26 2011, 18:10
Post #1





Group: Members
Posts: 5
Joined: 26-March 11
Member No.: 89326



Hey there!

I have an Image.flac and Image.cue file + my front.jpg cover art in a folder and create my mka file like this:

CODE
mkvmerge Image.flac --cuesheet Image.cue --attach-file front.jpg -o Image.mka


It works like a charm and I can tag everything with foobar, from discnumber to album artist, titles and genre.

But I have a question: WHERE does foobar save the tags? If I extract the chapters file and the cuesheet from the mka again and take a look, there is no info whatsoever of the following: discnumber, total tracks, genre (iirc).
Does foobar alter the mka file itself instead of only the embedded cuesheet?
It DOES alter the cuesheet file, because I embedded a blank on (just the INDEX infos), and now (extracted) it contains tagged infos I entered in foobar. But not all as said before.

Any ideas?
Go to the top of the page
+Quote Post
Kohlrabi
post Mar 26 2011, 18:52
Post #2





Group: Super Moderator
Posts: 1048
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



I'd assume the "--cuesheet" option converts the cuesheet to proper matroska chapers. Foobar in turn uses the facilities for editing metadata provided by matroska. When you extract the chapters as CUE it probably writes a compliant CUE instead of one containing all the extra information. In short, matroska doesn't use the cue file, only mkvmerge uses it to define the matroska chapters.


--------------------
Ceterum censeo Masterdiskem esse delendam.
Go to the top of the page
+Quote Post
detto87
post Mar 26 2011, 19:10
Post #3





Group: Members
Posts: 5
Joined: 26-March 11
Member No.: 89326



Thanks for your help.

The --cuesheet option is indeed used to create the matroska chapters. But that's not the problem.


My mka file has 3 parts inside:
- the audio file "Image.flac"
- the cuesheet file "Image.cue"
- the chapters (created by matroska, not me)

The chapters were created automatically by matroska and looks like this:

CODE
<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> -->

<Chapters>
<EditionEntry>
<EditionFlagHidden>0</EditionFlagHidden>
<EditionFlagDefault>0</EditionFlagDefault>
<EditionUID>550544517</EditionUID>
<ChapterAtom>
<ChapterUID>1693127076</ChapterUID>
<ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>20</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString> - </ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
<ChapterAtom>
<ChapterUID>1791353234</ChapterUID>
<ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>10</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString>INDEX 01</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>2545736877</ChapterUID>
<ChapterTimeStart>00:04:18.666666666</ChapterTimeStart>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>20</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString> - </ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
<ChapterAtom>
<ChapterUID>721132165</ChapterUID>
<ChapterTimeStart>00:04:18.666666666</ChapterTimeStart>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>10</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString>INDEX 01</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>1325760386</ChapterUID>
<ChapterTimeStart>00:08:06.133333333</ChapterTimeStart>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>20</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString> - </ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
<ChapterAtom>
<ChapterUID>2241010850</ChapterUID>
<ChapterTimeStart>00:08:06.133333333</ChapterTimeStart>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>10</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString>INDEX 01</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>3133706427</ChapterUID>
<ChapterTimeStart>00:12:01.960000000</ChapterTimeStart>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>20</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString> - </ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
<ChapterAtom>
<ChapterUID>2576452256</ChapterUID>
<ChapterTimeStart>00:12:01.960000000</ChapterTimeStart>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterPhysicalEquiv>10</ChapterPhysicalEquiv>
<ChapterDisplay>
<ChapterString>INDEX 01</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
</ChapterAtom>
</EditionEntry>
</Chapters>


My "Image.cue" BEFORE the merging (outside of the mka):

CODE
FILE "Image.mka" WAVE
  TRACK 01 AUDIO
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    INDEX 01 04:18:50
  TRACK 03 AUDIO
    INDEX 01 08:06:10
  TRACK 04 AUDIO
    INDEX 01 12:01:72


and AFTER the merging (inside the mka) and tagging via foobar:

CODE
PERFORMER "Artist"
TITLE "AlbumTitle"
FILE "Image.mka" WAVE
  TRACK 01 AUDIO
    TITLE "song1"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "song2"
    INDEX 01 04:18:50
  TRACK 03 AUDIO
    TITLE "song3"
    INDEX 01 08:06:10
  TRACK 04 AUDIO
    TITLE "song4"
    INDEX 01 12:01:72


But I tagged more: genre, album artist, discnumber, total discnumber, total tracks, year.
Where the heck does foobar save this? biggrin.gif

This post has been edited by db1989: Aug 7 2011, 15:41
Reason for edit: enclosing XML in [codebox], not [code]
Go to the top of the page
+Quote Post
Kohlrabi
post Mar 26 2011, 19:26
Post #4





Group: Super Moderator
Posts: 1048
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



For reference, see: http://www.matroska.org/technical/specs/ta...mple-audio.html . I'd assume foobar writes these, not sure why the cuesheet is even changed.


--------------------
Ceterum censeo Masterdiskem esse delendam.
Go to the top of the page
+Quote Post
detto87
post Mar 27 2011, 17:19
Post #5





Group: Members
Posts: 5
Joined: 26-March 11
Member No.: 89326



Thanks again, that helped me out! cool.gif

I completely forgot about matroskas tags.
Doing a: "mkvextract tags Image.mka > tags.txt" and looking into the file showed me all the information I saved in the mka with foobar.

It's fine that the cuesheet file is altered at the same time when tagging with foobar. That way one can extract the cuesheet without losing (most of) the tags.

Really starting to love the matroska format for music archiving: One file to keep the music with cuesheet and all of the pictures inside.
Just renaming the front picture to cover.[jpg/png] inside the file attachements is enough to let it appear in foobar. smile.gif
Go to the top of the page
+Quote Post
mpuckett
post Mar 28 2011, 05:18
Post #6





Group: Members
Posts: 93
Joined: 15-October 06
Member No.: 36405



QUOTE (detto87 @ Mar 27 2011, 09:19) *
Really starting to love the matroska format for music archiving: One file to keep the music with cuesheet and all of the pictures inside.
Just renaming the front picture to cover.[jpg/png] inside the file attachements is enough to let it appear in foobar. smile.gif

Just curious... but why is this necessary to store the flac file inside the matroska container? I use React to do my ripping and it stores the cuesheet and cover art inside the flac file already. Everything stored into the single flac image file which foobar handles without any problem.

What is the point of then storing the flac file in a matroska container? Am I missing something?
Go to the top of the page
+Quote Post
Kohlrabi
post Mar 28 2011, 16:54
Post #7





Group: Super Moderator
Posts: 1048
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



QUOTE (mpuckett @ Mar 28 2011, 06:18) *
What is the point of then storing the flac file in a matroska container? Am I missing something?

As long as you only store cover art and CUE sheet you are right, the FLAC container is sufficient. But Matroska can store any amount of additional files or even multiple streams, and is especially designed to do so.


--------------------
Ceterum censeo Masterdiskem esse delendam.
Go to the top of the page
+Quote Post
mpuckett
post Mar 28 2011, 18:22
Post #8





Group: Members
Posts: 93
Joined: 15-October 06
Member No.: 36405



QUOTE (Kohlrabi @ Mar 28 2011, 08:54) *
As long as you only store cover art and CUE sheet you are right, the FLAC container is sufficient. But Matroska can store any amount of additional files or even multiple streams, and is especially designed to do so.

Sure, the Matroska container is very nice, no debate about that at all. But the OP specifically was interested in storing the flac, the cuesheet and the cover art into a single file which the flac container is already capable of doing without requiring the use of any of the other Matroska features. Of course, other content can also be stored in the flac tags as well such as the EAC log file in my case so you are not restricted to just a cuesheet and the cover art.
Go to the top of the page
+Quote Post
detto87
post Mar 29 2011, 20:24
Post #9





Group: Members
Posts: 5
Joined: 26-March 11
Member No.: 89326



With mka I have all the album art scans in one file, not just the front cover art. Maybe flac can handle that too, not quite sure.
Also I added the original cuesheet (the unmodified Image.cue) to the attachments. That way I can be sure to easily demux an untouched flac and untouched cuesheet if I want to.
Guess it's kind of a personal preference too. For example all my movies are in mkv containers. Matroska all the way. wink.gif
Go to the top of the page
+Quote Post
mpuckett
post Mar 31 2011, 04:49
Post #10





Group: Members
Posts: 93
Joined: 15-October 06
Member No.: 36405



QUOTE (detto87 @ Mar 29 2011, 12:24) *
With mka I have all the album art scans in one file, not just the front cover art. Maybe flac can handle that too, not quite sure.

Yes, a flac container can handle that without a problem.

QUOTE
Also I added the original cuesheet (the unmodified Image.cue) to the attachments. That way I can be sure to easily demux an untouched flac and untouched cuesheet if I want to.

Yes, the flac container can handle this without a problem. All of my flacs have my original cuesheets embedded in them as well as the EAC rip log file, tags and cover art. If you are interested you can read the manual pages to determine the capabilities of the flac container.

QUOTE
Guess it's kind of a personal preference too. For example all my movies are in mkv containers. Matroska all the way. wink.gif

Can't quarrel with your personal preference. Just don't want any misunderstanding that one must use a matroska container to do what your original post described. A flac container is perfectly capable of storing everything you were interested in within a single file as well. You can use the metaflac program to list, add, remove, or edit metadata in one or more flac files similar to mkvmerge or mkvextract.

Not trying to change your personal preference but there is no technical reason why the flac container can't meet the needs you have identified here directly.
Go to the top of the page
+Quote Post
detto87
post Apr 21 2011, 14:56
Post #11





Group: Members
Posts: 5
Joined: 26-March 11
Member No.: 89326



Hm, that's nice to know. FLAC is more versatile than I thought.

Well, in the end it really just is preference I guess. The mkvtoolnix (especially mkvmerge GUI) is really nice to handle. There are also batch extractors if I want to easily get all the content from a matroska file.

Do you know a nice GUI for creating such flac images (with pictures and original cue sheet + embedded cue sheet inside)?
How do you do it?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th September 2014 - 22:28