AIMP Forum

AIMP for Windows => Предложения / Suggestions => Topic started by: pimos on May 18, 2020, 19:48:31

Title: ID3v2 info transfer into .DAT file
Post by: pimos on May 18, 2020, 19:48:31
Hi there
Thanks for great tool to work with  :)

I have the question for possible option in additional tag editor or external plugin to make it happend :P

First of all, radio DJs in Poland works with DYNAMIX software, it is made in Poland many years ago for special needs and law reportings. All track on air must be reported to the authors law boreau and to licence provider. Dynamix by playing online creates reports itself, but to make it working - each file must be discribed by DJ before it can be played. Most of the info to reports is in ID3v2 tag, for the time being we have to do it manually  ???. There is some ID3v1 converter but it transfers only few datas.

Here is the content of the .DAT file ) the .DAT name is the same as file.mp3 - except flac files, this format is not supported in DYNAMIX.

Code: [Select]
General Information, not reported

Lit=    ; - code in text: 0-ASCII, 1-Windows, 2-unicode
Crd=    ; - date of file rip [10]
Eng=    ; - ripping person [20]
Sft=    ; - software used to rip (AIMP :P )[20]
Klu=    ; - key words [62]
Zaa=    ; - disctiption akceptance [1]


Authors report

Tyt=    ; - song title [64]
Pta=    ; - CD title [50]
Wyk=    ; - performer [64]
Sol=    ; - soloist (discretionary)  [40]
Kom=    ; - composer or composers with ";" mark between  [60]
Aut=    ; - lirycs author [60]
Pro=    ; - producer (discretionary) [40]
Wyd=    ; - publisher  [40]
Rok=    ; - year of publishing [4]

Additional informations for reports and software needs

Inf=    ; - additional info [40]
Fil=    ; - filter(discretionary)   [18]
Kod=    ; - ISRC (if known) [11]
Ktg=    ; - Muzyka (music - default) [9]
BPM=    ; - BPM [3]
Zak=    ; - fade out type.: cut "C" or fade "F" [1]
Tmc=    ; - tempo all track (discretionary from list)[20]
Tmi=    ; - beginning tempo (list) [20]
Tmo=    ; - end tempo (list) [20]
Gen=    ; - sex of performer [20]
Era=    ; - era (list) [20]
Typ=    ; - type (list) [20]
Nas=    ; - mood (list) [20]
Nar=    ; - nationality of performer (Very imported for raports - list) [3]
Jak=    ; - quality (to draw the playlist) [4]
Op1=    ; - additional info 1. [20]
Op2=    ; - additional info 2. [20]
Op3=    ; - additional info 3. [20]


Part of these data is in most of ID3v2 tags and could be easy placed it, the rest of data must be fill in manually or taken from the list ( depending on ripper and radio station). Here is some sample of DAT file filled in manually :

 
Code: [Select]
Lit=
ENG=
CRD=
Tyt=HEAVEN IS HERE
Pta=The Very Best of 2 Brothers on 4th Floor
Wyk=2 BROTHERS ON THE 4TH FLOOR
Sol=
Kom=GEE TOM
Aut=FRIEDMANN ARNIE
Pro=
Wyd=CNR Music
Rok=2016
Inf=
Kod=NLA249900013
Ktg=Muzyka
BPM=133
Zak=F
Tmc=szybkie
Tmi=szybkie
Tmo=szybkie
Gen=M - Male (wokalista)
Era=lata 90
Typ=Dance
Nas=Ż – żywy
Nar=ANG
Jak=1;4
Klu=
Fil=1;4
PTY=0
PS1=
PS2=
PS3=
PS4=
PS5=
PS6=
RTT=
PLK=2 BROTHERS ON THE 4TH FLOOR - HEAVEN IS HERE (RADIO VERSION)
OP1=
OP2=
OP3=
Tot=03:33.106
Int=00:00.000
Out=03:33.106
Mix=00:04.000
Mik=03:29.106
NwP=00:00.000
NwK=03:33.106
FIn=00:00.000
FOu=03:33.106
LpP=-00:00.001
LpK=-00:00.001
FrP=-00:00.001
FrK=-00:00.001
Zaa=

As your can see almost all elements are fill with uppercase letters (For raports requirements and RDS purposes). Tag "Tot" is total time of the track, PLK is file name. There are some additional parameters for RDS etc...

90% of polish radio stations use DYNAMIX (http://dynasoft.com.pl/oferta-2/dynamix/) for one reason, less job to report and public agencies accept this reports as it is.

I know, this sugestion is strange, but using AIMP every day to copy ID3v2 tags into DAT files manually makes me crazy  :-X For professional programmers it could take blink of an eye to make it and help a lot for radio DJs in my country to spend more time not copy-paste but to fill in quality in our auditions.

Hope I can count on You, in the name of all polish DJs working with Dynamix every day.

With my best regards
Peter
Title: Re: ID3v2 info transfer into .DAT file
Post by: pimos on June 18, 2020, 17:41:57
Is there any hope to implement this issue into tag editor ?  :-\
Title: Re: ID3v2 info transfer into .DAT file
Post by: CkopoxoD on June 21, 2020, 00:21:15
I suggest you utilize Mp3tag's export scripting.

Unpack the attached file to the export folder, load some audio to Mp3tag and try to export (from context menu, select dat_dynamix).
The script is very simple, modify it as you wish. Second extension .txt added for testing purposes.
Refer https://help.mp3tag.de/options_export.html and https://help.mp3tag.de/main_scripting.html
There are some limitations:
- you cannot export multiple files at once without third-party tools or bat-files
- length is accurate to the second, but if your mp3s have the TLEN tag, you can format it
Title: Re: ID3v2 info transfer into .DAT file
Post by: pimos on June 23, 2020, 00:19:41
Thanks CkopoxoD it works  :)
I am really appreciate your quick reply with script.

It will help a lot in my job, it is a pitty cannot run with multiple files. Additionally every export mp3tag ask (pop-up) to open destination file.

I am not a programmer but in DAT file in case of few composers the export line is divided by "/"
Code: [Select]
ALEXANDER BARD/ANDERS HANSSON/ANDERS WOLLBECK/BERNARD EDWARDIn the script is the right meta separator ";" I hope
Code: [Select]
$upper($meta_sep(composer,;))
Anyway, I hope this tag-editor export functionality will be implemented into AIMP some day...

With my best regards

Title: Re: ID3v2 info transfer into .DAT file
Post by: CkopoxoD on June 23, 2020, 02:42:49
Composers' names usually do not contain "/", so it is safe to consider it as a separator and replace
Code: [Select]
$upper($replace($meta_sep(composer,;),/,;))$meta_sep() works when a file contains multiple fields with the same tag name.

it is a pitty cannot run with multiple files
Try https://community.mp3tag.de/t/mp3tagsplitlist/14121
Script should be something like this:
Code: [Select]
$filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.Dynamix.SL.txt',ansi)$loop(%_path%)'$$$FILE='%_folderpath%%_filename%'.dat'
Lit=1
...
FrK=-00:00.001

'$$$END'$char(13)$char(10)$loopend()
Title: Re: ID3v2 info transfer into .DAT file
Post by: pimos on June 23, 2020, 23:50:20
Thanks a lot for your involvement, seems to be a little bit complicated using several tools to achieve the goal.
Anyway, each DAT file must be manually completed by other report conditions like "mood" etc. Your script helps a lot, and for the time being is my great time saver  ;)

Thanks again for your time to help me

regards
Peter