Metadata // Use of metadata as file

You have a question or need an advice about how to do something? Ask it here!
Post Reply
fred48fm
Posts: 73
Joined: 28 Aug 2019 09:52
Metadata // Use of metadata as file

Post by fred48fm »

Hi,

I've a question regarding the processing of metadatas..
What is the use of the "save metadata to file" (creating a pfmd file) in tagger ?

The point is that i search for a good way to keep basic metadata infos (title data for instance) for dynamic audio files.
So when the file is replaced (samed name/location), the metadata in the pfmd file is read in place of the file own metadata.

Here is the content of a sample metadata file, there is no informations about artists, titles, etc
And when I restart PF, the old data is read instead the data saved to file (in options i checked "Use metadata files" and "Metadata as priority" and unchecked "ignore older metadata files")
Normal ?

<?xml version="1.0" encoding="utf-8"?>
<MediaEntry version="1">
<entryType>Music</entryType>
<duration>59436</duration>
<identifier>380503fd-ca52-4c45-9675-3db1b9d6ffc7</identifier>
<bitrate>2116</bitrate>
<tagType>1</tagType>
<ci_freq>44100</ci_freq>
<ci_chans>2</ci_chans>
<ci_flags>-2145386496</ci_flags>
<ci_ctype>65542</ci_ctype>
<ci_origres>24</ci_origres>
<general />
<cuePoints>
<cueIn>0</cueIn>
<fullLevel>0.05</fullLevel>
<next>48.289251700680275</next>
<cueOut>49.288979591836743</cueOut>
</cuePoints>
</MediaEntry>




Is it possible to write full metadata to a pfmd file or have i missed something (most probable) ?

Thank a lot

Fred
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Metadata // Use of metadata as file

Post by radio42 »

By default the Title and Artist etc. info is directly written to the audio files TAG.
You define what to write to the pfmd file in the general settings, section Meta Data.

But I wouldn’t change the Meta Data has Priority option, as you only want to read the extra pfmd info for those dynamic files, but not for all.
Thus I would only save a pfmd file for those dynamic files. Also make sure to enable the Use .pfmd file option.
fred48fm
Posts: 73
Joined: 28 Aug 2019 09:52
Re: Metadata // Use of metadata as file

Post by fred48fm »

Hi,

Thank you for your answer.
I take some time to test this and i can't get it :-)

I noticed two problems :

- The "Artist" data is not read from the pfmd file
The "Title" is read correctly and get priority over the audio embeded tag but not for artist.

- There is a conflict with the use of a custom pfmd file and the option "Autosave metadata from .pfmd file"
Here the pfmd "Artist" field is overwriten by the audio file embeded tag and autosaved. The title field is not overwriten.

Thank you
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Metadata // Use of metadata as file

Post by radio42 »

I can not reproduce any issue!

Please describe the exact steps to reproduce, show your exact settings and also provide a sample audio file.
fred48fm
Posts: 73
Joined: 28 Aug 2019 09:52
Re: Metadata // Use of metadata as file

Post by fred48fm »

I've just tried with a mp3 file -> working correctly

And with an other wav test file -> same issue...
It's a wav 16bits /riff.
I made you a sample here :
- WAV : http://48fm.com/ext/temp/Test.wav
- pfmd : http://48fm.com/ext/temp/Test.wav.pfmd

And here the settings :-)
pf1.png
pf2.png
tager1.png
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Metadata // Use of metadata as file

Post by radio42 »

Not sure what should be wrong - it looks all correct to me!

The FROM AUDIO FILE values are shown - which is correct, as the 'MetaData has Priority' option only applies to the meta data, but not the basic TAG data values which are always taken from the audio files; except the audio files TAG data value are empty.
fred48fm
Posts: 73
Joined: 28 Aug 2019 09:52
Re: Metadata // Use of metadata as file

Post by fred48fm »

Hi,

Sorry for the misunderstanding.
My problem is the same with wav or mp3 file, my mistake.

The problem, for me, is :

1. I load a file (ex radio_show.wav) with PF Tagger

2. I change values from "Title" and "Artist" and save it as pfmd data.
Because that's a file we update on a regular basis (news, prerecorded shows, ...), we want to keep the same data regardless of the audio file tags.

3. I load the file in PF

I expect the data (title and artist) in the pfmd file to be read instead of the audio file tags (metadata has priority).
Result :
- If there is no metadata in the audio file, the pfmd tags (for artist and title) are used
- If there is only one of the Title or the Artist tag in audio file -> mixed data from pfmd and audio file
Sans titre-1.png
- If both fields are in audio file tags -> pfmd is ignored


I'm sorry but I can't understand this.
Why allowing saving data to an external file that can't be read completely after all ?

Can't you add a setting to choose wich data users want to read from the pfmd file ?
That could save us some time :-)

Thank you for your time, your patience and your incredible software !

Best regards
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Metadata // Use of metadata as file

Post by radio42 »

No. As explained above, the basic TAG data, like e.g. Title and Artist is ALWAYS taken out of the audio data - no matter how you set the 'MetaData has Priority'. MetaData is all the rest (except the basic TAG data, e.g. it is cue-points, events etc.).

The only exception is, IF the audio files TAG data is empty (i.e. no Artist is defined there, i.e it is empty) THAN the .pfmd values are used instead.
fred48fm
Posts: 73
Joined: 28 Aug 2019 09:52
Re: Metadata // Use of metadata as file

Post by fred48fm »

OK :D
That could be a really usefull stuff to add later.

As a quick workaround, I tried the EXEC_TAG_FILE fonction to remove the tags. That work.
-> EXEC_TAG_FILE file_path|title=${CR}|artist=${CR}

But now the title is generated by PF based on the finename and get priority over pfmd file.. :shock:
We just have to manage filenames consequently but that solve our problem for now.
User avatar
radio42
Site Admin
Posts: 8329
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Metadata // Use of metadata as file

Post by radio42 »

I’ll see to extend the MetaData has Priority option to theTAG data as well.

Post Reply