IPB

Welcome Guest ( Log In | Register )

7 Pages V  < 1 2 3 4 5 > »   
Reply to this topicStart new topic
m-TAGS component (foo_tags), Support for m-TAGS metadata separation
hyakukv
post Oct 5 2012, 21:26
Post #51





Group: Members
Posts: 8
Joined: 12-September 12
Member No.: 103106



QUOTE (hyakukv @ Oct 3 2012, 09:05) *
I'm actually having problems playing certain tracks in my library. I'm sure the .tags! file points to the correct location of the song files.

I'm getting the following error:
QUOTE
Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Fujitou_Chika_-_K-ON!_character_image_song_series_-_Manabe_Nodoka_[w_scans]_(FLAC)\!.tags" / index: 1

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 17

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Hyakkoku_Hajime_-_K-ON!_ORIGINAL_SOUND_TRACK_[w_scans]_(FLAC)\!.tags" / index: 18

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 13

Do you know how I could fix this? I was thinking a feature that allows u to change the path of source file would fix it. I'm trying to avoid recreating the m-TAGS files, because I have created a lot of tags for these songs already.


I noticed that the fields <@REFERENCED_FILE> is empty and <REFERENCED_INDEX> is "-1" for all the songs that are getting the above error. On songs that are working <@REFERENCED_FILE> points to the exact location of the songs, and <@REFERENCED_INDEX> is 0. On all songs <@> field is the relative path to the song.

Go to the top of the page
+Quote Post
tofu
post Oct 8 2012, 07:40
Post #52





Group: Members
Posts: 26
Joined: 28-January 05
Member No.: 19411



thank you!

i can get rid of mediamonkey now!

all this needs is the ability to manually or auto rescan the selected directory for added files and it will be perfect

edit: and be able to ignore cue files and playlists

This post has been edited by tofu: Oct 8 2012, 08:14
Go to the top of the page
+Quote Post
elemiah
post Oct 8 2012, 13:36
Post #53





Group: Members
Posts: 3
Joined: 18-December 07
From: Paris
Member No.: 49664



Hello !

It's not a important feature, but what about adding the ability to have some tags that are still written to the targeted file?
It would be useful for those who tag rating and last played info in the file.

Is it possible?
Go to the top of the page
+Quote Post
MrMonkey
post Oct 9 2012, 13:58
Post #54





Group: Members
Posts: 82
Joined: 22-August 10
Member No.: 83276



I've tried connectiong to the m-tags.org website many times over the last few days to take a look at the plugin. The site always seems to be down.
Down For Everyone reports it's not just my connection either.
Go to the top of the page
+Quote Post
hyakukv
post Oct 11 2012, 20:02
Post #55





Group: Members
Posts: 8
Joined: 12-September 12
Member No.: 103106



QUOTE (hyakukv @ Oct 5 2012, 12:26) *
QUOTE (hyakukv @ Oct 3 2012, 09:05) *
I'm actually having problems playing certain tracks in my library. I'm sure the .tags! file points to the correct location of the song files.

I'm getting the following error:
QUOTE
Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Fujitou_Chika_-_K-ON!_character_image_song_series_-_Manabe_Nodoka_[w_scans]_(FLAC)\!.tags" / index: 1

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 17

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Hyakkoku_Hajime_-_K-ON!_ORIGINAL_SOUND_TRACK_[w_scans]_(FLAC)\!.tags" / index: 18

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 13

Do you know how I could fix this? I was thinking a feature that allows u to change the path of source file would fix it. I'm trying to avoid recreating the m-TAGS files, because I have created a lot of tags for these songs already.


I noticed that the fields <@REFERENCED_FILE> is empty and <REFERENCED_INDEX> is "-1" for all the songs that are getting the above error. On songs that are working <@REFERENCED_FILE> points to the exact location of the songs, and <@REFERENCED_INDEX> is 0. On all songs <@> field is the relative path to the song.


I hope the creator of this plugin comes back. There are still some problems with the functionality sad.gif
Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 15:58
Post #56





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (Eclipsed Moon @ Oct 3 2012, 14:00) *
QUOTE (luigimercurio @ Oct 2 2012, 12:08) *
I use embedded cues all the time. I do NOT use external cue files at all, though. I am not sure that I understand what you are trying to do: embedding a cue sheet in an m-TAGS file? What do you mean for that? m-TAGS files cannot embed cue sheets. You just "m-TAG" either the cue sheet file or the audio file with the embedded cue sheet.

Please give me some more details. I do not understand if this is a bug or if you are trying to do something I did not foresee.

A file that already has an embedded cue in it works fine. An external cue works fine, too, but I'm trying to reduce how many extra files I'm using.

If I understand correctly from looking at files in a hex editor, an embedded cuesheet is actually simply another tag, and when foobar2000 sees it, it knows what to do. If it's a tag in m-TAGS, though, foobar2000 still sees it, but doesn't know what to do, and it only shows up as an extra tag in the Properties dialog. So, as you said, m-TAGS cannot embed a cuesheet, but I don't understand just why it can't.


OK, I am back. Sorry for the "disappearance".

You are right. An embedded cue file works and an external cue file works too. But ypou cannot embed a cue file in m-tags, because a cue file is an "index" file that identifies parts of a media file. As that is not the purpose of m-tags, there is no point in embedding it (m-tags can refer to parts of a media file, but not "define" them, so it can use a cue file, but not contain it or substitute for it).

If you want to reduce the number of files, I suggest that you just do as I do: always embed the cue file into the media file (where it really belongs, as it pertains to the media structure rather than its metadata). On fb2k, just use "Utilities/ Edit cue sheet" from the context menu and import the cue sheet into the media file (cannot do that for WAV files, though).

I actually thought of making m-tags "index-aware", so that cue files could be eliminated altogether, but I ended up thinking that this would be too dangerous a practice, because cue files are the proper recognized method of doing that for CD-originated media and also because it could break the gapless playing feature. Besides, if you use m-tags with other media, then the problem compounds (embedding IFO's for DVD media??? What about TIFFs?)

Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 16:13
Post #57





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (hyakukv @ Oct 3 2012, 05:44) *
Hi. Thanks for this app. It works the way I wanted it to.

Is it possible to somehow change or locate the music source? In case I move the music to a different location. Thanks.


Yes. the locator is editable as any other tag. Its name is "@". If you use scripts, then you can access it as "@" when writing, and as "$info(@)" when reading. For example, if you relocate an album to a different folder, you can use the the "Properties / Tools / Automatically fill values..." window like this:

Source: "Other..." / "$replace($info(@),'/<old folder>/','/<new folder>/')"
Pattern: @

After you click "OK" you will se the "@" tag listed among the tags. If you click "Apply", then the locators will be changed in the m-tags files.
Of course you can do the same with masstagger, or you can "Add new filed..." manually in the properties window and manually edit the locator (Field name = @).

You could even display the "@" tag on the playlist (as a column on the Columns UI interface, for example) and edit it directly there. But I cannot frankly foresee that anyone would want the locator shown in the playlist! LOL

Needless to say, because an m-tags file is a text file, you can also directly edit the file or write an external script to change the locator ("@") tags.

This post has been edited by luigimercurio: Oct 27 2012, 16:14
Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 16:16
Post #58





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (romor @ Oct 5 2012, 20:32) *
You can grab last version from here: http://db.tt/WB4rkiRt

I'll remove the file when it becomes obsolete


Thanks romor. The site is up now, but keep your copy, for now!
Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 16:33
Post #59





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (tofu @ Oct 8 2012, 07:40) *
thank you!

i can get rid of mediamonkey now!

all this needs is the ability to manually or auto rescan the selected directory for added files and it will be perfect

edit: and be able to ignore cue files and playlists


The ability to rescan is there. Just rescan the folder(s) and make sure that "File / Preferences / Advanced / Tagging / m-TAGS / m-TAGS creator / Replace existing files" is unchecked. the m-TAGS creator does not rewrite existing m-TAGS files if that checkbox is unchecked, so rescanning is equivalent to updating.

As for the other request, playlists are already ignored. CUE files are not ignored because they are part of the media bundle (just like an IFO file is part of a DVD media, and not just the VOB files). The rule applied is that if a CUE file has the same name as another media file (e.g. Image.cue / Image.flac), then only the CUE file is scanned (because that is the file containing the media structure information and possibly some basic metadata).

If you embed the CUE file into the media files, then you can remove the CUE files altogether and live happily everafter without CUE files around. In this case the media file are scanned, the embedded CUE files are found and processed, and the m-TAGS files are properly created.
Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 16:39
Post #60





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (elemiah @ Oct 8 2012, 13:36) *
Hello !

It's not a important feature, but what about adding the ability to have some tags that are still written to the targeted file?
It would be useful for those who tag rating and last played info in the file.

Is it possible?


It is possible, but it would be in contrast with the core mission of m-TAGS, which is never to touch the media files, so it is not going to be implemented. But why would you want to do that, if I may ask? I would imagine that, for example, the last played info would be the LAST thing anyone would want to have directly into the media file. In fact m-TAGS was created in order to prevent just that from happening.

Go to the top of the page
+Quote Post
tofu
post Oct 27 2012, 16:41
Post #61





Group: Members
Posts: 26
Joined: 28-January 05
Member No.: 19411



Thanks for the reply. My album rips with a single cue file in the directory seem to double up on my playlist. The doubled files pointing to the cue error out, while the ones pointing to the flac (and other audio formats) are fine.

I guess the only solution would be for me to delete the cue files, but I was hoping to preserve my torrents' directory structure as they follow a set of strict ripping rules.

This post has been edited by tofu: Oct 27 2012, 16:43
Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 16:48
Post #62





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (hyakukv @ Oct 11 2012, 20:02) *
QUOTE (hyakukv @ Oct 5 2012, 12:26) *
QUOTE (hyakukv @ Oct 3 2012, 09:05) *
I'm actually having problems playing certain tracks in my library. I'm sure the .tags! file points to the correct location of the song files.

I'm getting the following error:
QUOTE
Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Fujitou_Chika_-_K-ON!_character_image_song_series_-_Manabe_Nodoka_[w_scans]_(FLAC)\!.tags" / index: 1

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 17

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Hyakkoku_Hajime_-_K-ON!_ORIGINAL_SOUND_TRACK_[w_scans]_(FLAC)\!.tags" / index: 18

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 13

Do you know how I could fix this? I was thinking a feature that allows u to change the path of source file would fix it. I'm trying to avoid recreating the m-TAGS files, because I have created a lot of tags for these songs already.


I noticed that the fields <@REFERENCED_FILE> is empty and <REFERENCED_INDEX> is "-1" for all the songs that are getting the above error. On songs that are working <@REFERENCED_FILE> points to the exact location of the songs, and <@REFERENCED_INDEX> is 0. On all songs <@> field is the relative path to the song.


I hope the creator of this plugin comes back. There are still some problems with the functionality sad.gif



The behaviour you observe is the correct behavior of m-TAGS when it does not find the files referenced by the locator (@) tags. It is usually due to the files having been moved after creating the m-TAGS file, but it may be a bug caused by some peculiar characteristic of the media files' names.

Please check the "File / Preferences / Advanced / Tagging / m-TAGS / Enable verbose logging". Then open "View / Console" and check "Write log". Then replicate the error and send me the log file.

Thank you.
Go to the top of the page
+Quote Post
luigimercurio
post Oct 27 2012, 16:50
Post #63





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (tofu @ Oct 27 2012, 16:41) *
Thanks for the reply. My album rips with a single cue file in the directory seem to double up on my playlist. The doubled files pointing to the cue error out, while the ones pointing to the flac (and other audio formats) are fine.

I guess the only solution would be for me to delete the cue files, but I was hoping to preserve my torrents' directory structure as they follow a set of strict ripping rules.


Can you please send me the names of a CUE / FLAC (or whatever other format) pair of files? And also the contents of one of the CUE files? Thank you.
Go to the top of the page
+Quote Post
r3v0
post Nov 21 2012, 18:39
Post #64





Group: Members
Posts: 107
Joined: 25-August 08
From: Netherlands
Member No.: 57475



Hi, I'm trying your component and I found a bug I think.
I use the DUI playlist view and Simplaylist side by side,
and when dropping the *.tags file onto one of both everything looks fine,
but when I switch to the other playlist view, the playlist entries are replaced with the *real* files.


--------------------
<3 F00
Go to the top of the page
+Quote Post
r3v0
post Nov 21 2012, 20:23
Post #65





Group: Members
Posts: 107
Joined: 25-August 08
From: Netherlands
Member No.: 57475



QUOTE (r3v0 @ Nov 21 2012, 19:39) *
Hi, I'm trying your component and I found a bug I think.
I use the DUI playlist view and Simplaylist side by side,
and when dropping the *.tags file onto one of both everything looks fine,
but when I switch to the other playlist view, the playlist entries are replaced with the *real* files.


Strangely, I can't reproduce it anymore now???


--------------------
<3 F00
Go to the top of the page
+Quote Post
hyakukv
post Nov 27 2012, 08:36
Post #66





Group: Members
Posts: 8
Joined: 12-September 12
Member No.: 103106



QUOTE (luigimercurio @ Oct 27 2012, 08:48) *
QUOTE (hyakukv @ Oct 11 2012, 20:02) *
QUOTE (hyakukv @ Oct 5 2012, 12:26) *
QUOTE (hyakukv @ Oct 3 2012, 09:05) *
I'm actually having problems playing certain tracks in my library. I'm sure the .tags! file points to the correct location of the song files.

I'm getting the following error:
QUOTE
Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Fujitou_Chika_-_K-ON!_character_image_song_series_-_Manabe_Nodoka_[w_scans]_(FLAC)\!.tags" / index: 1

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 17

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Hyakkoku_Hajime_-_K-ON!_ORIGINAL_SOUND_TRACK_[w_scans]_(FLAC)\!.tags" / index: 18

Decoding failure at 0:00.000 (Unsupported format or corrupted file):
"N:\Black Box\foobar2000\m-TAGS\[LonE] K-ON! Music Collection\[LonE]_Various_Artists_-_K-ON!_Official_Band_Yarou_yo!!_[w_scans]_(FLAC)\DISC 1\!.tags" / index: 13

Do you know how I could fix this? I was thinking a feature that allows u to change the path of source file would fix it. I'm trying to avoid recreating the m-TAGS files, because I have created a lot of tags for these songs already.


I noticed that the fields <@REFERENCED_FILE> is empty and <REFERENCED_INDEX> is "-1" for all the songs that are getting the above error. On songs that are working <@REFERENCED_FILE> points to the exact location of the songs, and <@REFERENCED_INDEX> is 0. On all songs <@> field is the relative path to the song.


I hope the creator of this plugin comes back. There are still some problems with the functionality sad.gif



The behaviour you observe is the correct behavior of m-TAGS when it does not find the files referenced by the locator (@) tags. It is usually due to the files having been moved after creating the m-TAGS file, but it may be a bug caused by some peculiar characteristic of the media files' names.

Please check the "File / Preferences / Advanced / Tagging / m-TAGS / Enable verbose logging". Then open "View / Console" and check "Write log". Then replicate the error and send me the log file.

Thank you.


Hi. I noticed this happens to song directories that have .flac soundtracks and additional .cue files.

Here is a directory I have troubles in:


Notice how I have 3 different .cue file (kanji, romaji, and original). Now look at my foobar2000 playlist, notice how there is also 3 of the album listed in it.


This is what happens when I play any of these songs:


I solved this problem by editing the !.tags file for each of the directories that have this problem. I just removed the entries with the .cue in them.
I hope this helps!

This post has been edited by hyakukv: Nov 27 2012, 08:48
Go to the top of the page
+Quote Post
Fire
post Dec 4 2012, 21:50
Post #67





Group: Members
Posts: 1
Joined: 4-December 12
Member No.: 104971



I second hyakukv.

There are lots of good sites that the album must be split by tracks, and in the same directory of the album it must have the cue file as other files, like log, etc.
And it isn't uncommon to see this even in scene lossless releases. I have a lot of releases in this format, being really painful to edit every !.tags file by hand, and for this reason I would love if there was an option to exclude cue files.

One possible suggestion may be to reverse the current approach: only read the cue file if there is an media file with the same name, otherwise don't read the cue file.
Or another suggestion that may futureproof it is to make a textfield where the user can fill "restrict to" or "exclude" file types, just like the "restrict to" option on foobar media library preferences, with a default value already in there.

Thanks!
Go to the top of the page
+Quote Post
luigimercurio
post Dec 13 2012, 23:35
Post #68





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



Sorry for the delay.

Well, philosophically, I do not agree with the need for .cue files for split tracks. It is exactly to avoid that that I created m-tags.

However I am definitely sensitive to the difficulty of getting out of habits or to the delicacies imposed by legacy systems.

I will look into the "restrict to certain kinds of files" solution. It sounds reasonable independently of the cue issue.


But please wait until January, as I am on vacation.... Thanks !!!
Go to the top of the page
+Quote Post
dubwai
post Dec 17 2012, 20:16
Post #69





Group: Members
Posts: 36
Joined: 23-January 11
Member No.: 87576



Media-metadata separation problem already solved by foo_input_monkey.dll.
Two years ago, when I start use private trackers, I start searching solution to solve problem, how to get proper tags (or just replaygain info) in my musical collection without modification files, because I want to seed all what I download. And I find solution with foo_input_monkey.dll. It allows to use Monkey's Audio Image Link File (APL) native in foobar2000. APL is simple file, with path to media and APE tags. One APL file = one track. Path to source can be relative, exact or just name of file in the same directory. APE tags fully specification support, so in fb2k I can get anything I want, for example multi value tags and etc. It’s standard APE tags, witch works with all fb2k functions natively: convector, all taggers (discogs, mb, cddb, etc), etc. This example of APL file:
CODE
[Monkey's Audio Image Link File]
Image File=FILENAME.ape // mp3, flac, wv, whatever witch support fb2k
Start Block=0
End Block=34289 // This line not necessary, it need only for album in one image file

----- APE TAG (DO NOT TOUCH!!!) -----
//here will be APE tags witch use fb2k,

As you can see, you can use with any codec type of source files, works with everything witch supported by fb2k. Only bad thing that foobar2000 can create natively APL files, only for image .ape files with .cue. And it’s main reason why I post to this thread. Maybe author want to not to create own bicycle and just wrote plugin for already exciting solution of metadata separation problem.
But you may ask, how you say that you find solution, when this link files can be done only for ape image+cue files? Answer is simple, I wrote simple vbs script. And my work flow, now very simple and quick. First of all, I download music content from whatcd. Then, I give to script path of the album (all whatcd torrents must be in separate folders:) and he create APL files file_name.apl for MP3 or FLAC files, witch it found in directory what I give to him. It practice, I just enter to folder what I download in total commander and hit only one button with start script, another solutions maybe more automatic, for example automatic start script, when utorrent finish downloading, but I don’t try it, because I add to collection not all what I download. Then my fb2k collection settings to monitor only *APL files in my music directories, so when APL files created it automatic adds to fb2k collection. When this apl file with only path to file and without tags gets in foobar2000, fb2k read tags of source files and wrote them to APL files. So in collection your new albums already get tags from original files, and then you can correct them as you wish.
Already size of my collection is ~2TB (MP3 and FLAC) and all it, foobar2000 see throw apl files. I don't find any problems with this solution. But year ago one of my hdd start damage, so many music files was damaged, but I just copy it to another hdd, start recheck hash in utorrent, download damage pieces and main things, that it don’t touch my fb2k collection tags and statistic. WOW! I love p2p!
So again, my English is not perfect, may be I wrote not well for understanding, what I mean, but I think that this solution is already perfect works for this kind of problem, except creating apl files. Because in m-tags I don't find any advantage over APL method. So may be author of m-tags want to solve problem with creating apl files with foo_plugin, and start populized it (web site) because vbs method not trivial to understand for average p2p user.

This my vbs script:
CODE
' How to use:
' wscript.exe script_path folder_to_work1 [folder_to_work2] [...]

Option Explicit

Const EXT_FILTER = "*.mp3; *.flac; *.ape; *.wv"

If WScript.Arguments.Length Then
  Dim objShApp
  Dim objFSO
  Dim objOC
  Dim i
    Set objShApp = CreateObject("Shell.Application")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objOC = CreateObject("OlePrn.OleCvt.1")
    For i = 0 To WScript.Arguments.Count - 1
      RecDirs objFSO.getfolder(WScript.Arguments.Item(i))
    Next
    Set objShApp = Nothing
    Set objFSO = Nothing
    Set objOC = Nothing  
End If

MsgBox "APL files created"

WScript.Quit

Sub RecDirs(sDir)
  Dim SubDir
  Dim arrFiles
  Dim i
    For Each SubDir In sDir.SubFolders
      RecDirs(SubDir)
    Next
    Set arrFiles = objShApp.NameSpace(sDir.Path).Items
    arrFiles.Filter 192, EXT_FILTER
    For i = 0 To arrFiles.Count - 1
      CreateAplFile arrFiles.Item(i).Path
    Next
End Sub

Sub CreateAplFile(fPath)
  Dim aplFileUTF8
  Dim aplFileWithoutBOM
  Dim aplFileName
    aplFileName = objFSO.GetParentFolderName(fPath) & "\" & objFSO.GetBaseName(fPath) & ".apl"
    If Not objFSO.FileExists(aplFileName) Then
        Set aplFileUTF8 = CreateObject("ADODB.Stream")
            aplFileUTF8.Type=2
            aplFileUTF8.Charset = "UTF-8"
            aplFileUTF8.Open
            aplFileUTF8.WriteText     "[Monkey's Audio Image Link File]" & vbCrLf & _
                                    "Image File=" & objFSO.GetFileName(fPath) & vbCrLf & _
                                    "Start Block=0" & vbCrLf & vbCrLf & _
                                    "----- APE TAG (DO NOT TOUCH!!!) -----" & vbCrLf & _
                                    ""
            aplFileUTF8.Position=3
        Set aplFileWithoutBOM = CreateObject("ADODB.Stream")
            aplFileWithoutBOM.Type=1
            aplFileWithoutBOM.Open
        aplFileUTF8.CopyTo aplFileWithoutBOM
        aplFileWithoutBOM.SaveToFile(aplFileName)
    End If
End Sub

This random apl file from my collection:
CODE
[Monkey's Audio Image Link File]
Image File=01. Basic Channel - Enforcement.flac
Start Block=0

----- APE TAG (DO NOT TOUCH!!!) -----
APETAGEXР                          Track 1/6       Album BCD-2
       Artist Basic Channel        Barcode 827670143123       Catalognumber BCD-2       Year 2008
       Genre Electronic
       Label Basic Channel$       Musicbrainz_albumid 1b43a144-f4be-4365-b376-947d93586550       Musicbrainz_albumstatus Official       Musicbrainz_albumtype Compilation$       Musicbrainz_artistid d145a57e-7afb-4793-8cc4-2fad292374ef$       Musicbrainz_releasegroupid 17f80ceb-4cd5-3158-8dd5-6c1b5267b845$       Musicbrainz_trackid 15a54337-f1c7-4804-b4bf-414453f8fc62       Rerating 1       Title Enforcement        Tracktype instrumental       replaygain_album_gain -6.75 dB       replaygain_album_peak 0.999969       replaygain_track_gain -6.89 dB       replaygain_track_peak 0.991089APETAGEXР          Ђ


P.S. Also I will glad to answer any questions, because I want to get more seeds on torrents smile.gif And may be anyone adds any info about APL files to hydrogenaudio wiki, and maybe gives link to solution, how to used them to solve metada separation problem.

This post has been edited by dubwai: Dec 17 2012, 20:21
Go to the top of the page
+Quote Post
romor
post Dec 17 2012, 21:02
Post #70





Group: Members
Posts: 680
Joined: 16-January 09
Member No.: 65630



WTF?
Whats use of CreateObject("OlePrn.OleCvt.1")?
Wait! Don't answer.

You can do what your script does in two line batch file, as you are just copying same template for each file in all subfolders.

This component purpose if way above letting you tag seeds, so I see your post off-topic and inappropriate.


--------------------
scripts: http://goo.gl/M1qVLQ
Go to the top of the page
+Quote Post
dubwai
post Dec 17 2012, 21:52
Post #71





Group: Members
Posts: 36
Joined: 23-January 11
Member No.: 87576



romor
I also, don't want to discuss my script, because I am not author of it. Also you are right, it searches files recursive. When two years ago, I try to wrote this script in batch I have some errors with encoding, because if create apl files not in UTF-8 without BOM (in batch I don't find how to do it), fb2k have some errors. I don't remember exact problem, but if you wish i can find my notes about this. Also I don't see problem, if this realization bigger then 2 lines works for me around two years without errors.

The main idea of my post, was to show, that fb2k (because this topic in fb2k forums) already have a native (Peter author of foo_monkeys_input) working solution of problem, that describe author of this topic. Only difference in format of storing metadata. APE tags instead JSON.

This post has been edited by dubwai: Dec 17 2012, 22:06
Go to the top of the page
+Quote Post
Ket
post Dec 24 2012, 22:57
Post #72





Group: Members
Posts: 2
Joined: 22-December 12
Member No.: 105329



nthing the request for the ability to ignore .cue files :) I've only just come across this component and I can tell it's going to save me a lot of heartache in the future!
I'm too impatient to wait until January though (although I'm going to have to).
But thanks for creating this in the first place!
Go to the top of the page
+Quote Post
gabri.ns
post Jun 28 2013, 09:28
Post #73





Group: Members
Posts: 11
Joined: 28-June 13
Member No.: 108854



my experience using this:
  1. it work great with local file. but,
  2. it can't be used to tag opened remote file, using windows share. mtags file created, can be opened, but can't be played.
  3. when trying to create mtag using file>mtag menu, remote shared folder only show administrative share, like C$, D$, dll. other share doesn't show up.


hope it can be fixed soon

my request is:
  1. updating exist file instead of replacing it when creating mtags file, giving possibility to create single db.
  2. when creating mtags file from opened file, add possibility to automatically replace selected file with mtags one, so we don't have to delete them from playlist and manually adding mtags file.


hope it will be realized smile.gif

This post has been edited by gabri.ns: Jun 28 2013, 09:40
Go to the top of the page
+Quote Post
luigimercurio
post Aug 13 2013, 13:58
Post #74





Group: Developer
Posts: 53
Joined: 23-January 11
Member No.: 87562



QUOTE (gabri.ns @ Jun 28 2013, 09:28) *
my experience using this:
  1. it work great with local file. but,
  2. it can't be used to tag opened remote file, using windows share. mtags file created, can be opened, but can't be played.
  3. when trying to create mtag using file>mtag menu, remote shared folder only show administrative share, like C$, D$, dll. other share doesn't show up.


hope it can be fixed soon

my request is:
  1. updating exist file instead of replacing it when creating mtags file, giving possibility to create single db.
  2. when creating mtags file from opened file, add possibility to automatically replace selected file with mtags one, so we don't have to delete them from playlist and manually adding mtags file.


hope it will be realized smile.gif



Can you please send me logs of your attempted operations?
Go to the top of the page
+Quote Post
EpicForever
post Aug 13 2013, 20:20
Post #75





Group: Members
Posts: 712
Joined: 14-September 11
From: Szczecin, PL
Member No.: 93712



I needed some technical detail, but as m-tags.org website is down I have to ask the question here rather than get it there. Can I use this component as a temporary container for preserving metadata? My scenario: I got FLAC file, well tagged (using custom fields). I noticed it has a glitch somewhere so I opened wave editor, removed the glitch and saved it. In most cases wave editor discards most of metadata, and preserves only few standard fields. In worst case tagging is not supported in wave editor at all. Other situation: I got old mp3 file - well tagged, with custom fields - that's obvious. Finally it gets released digitally, so I buy the new mp3 at Beatport. I put the same name for new file as for old one and overwrite old one with new one. In both cases I need a way to preserve tags in an external container to restore them back in edited FLAC or newer mp3 file. It is possible with foobar with Media Library disabled or at least with disabled real time monitoring of ML folders. But since I started using ML i don't want to disable it. Does m-TAGS have option/command to first save metadata to .tags file, and then to write them into mp3/flac files from .tags file?

This post has been edited by EpicForever: Aug 13 2013, 20:21
Go to the top of the page
+Quote Post

7 Pages V  < 1 2 3 4 5 > » 
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: 21st October 2014 - 04:18