Help - Search - Members - Calendar
Full Version: [F] Unknown MP4 atoms are deleted on save
Mp3tag Forums > Mp3tag - International > Bug Reports > Fixed Bugs
edrikk
Hi Florian,

I hope you enjoyed your vacation, and am sorry to be PMing you... But I'm facing somewhat of a big issue... sad.gif

It appears that the following Apple MP4 tags are not seen in MP3Tag (even in extended dialog), and if any changes are made to the MP4 file (even if just clicking "save"), the tags are destroyed! sad.gif sad.gif sad.gif

I have attached an MP4 sample that contains the tags.

rate -->> Rating between 0 and 100 as a text
hdvd -->> HD Video 8-bit integer (boolean)
cnID -->> iTunes Catalog ID, used for combing SD and HD encodes in iTunes 32-bit integer
keyw -->> Keywords Used for Podcasts UTF-8 string

DLNA servers such as Twonky for example, use the "rate" atom to group content.


If you could PLEASE allow us to WRITE the above tags in mp3tag as well it would be great/a life saver... I have half of these files backed-up so I'm not completely up the creek, but I still do need to run the files through mp3tag to modify their value. sad.gif
And this will allow me manually re-enter the lost ones...





Source of information behind the atoms:
code.google.com/p/mp4v2/wiki/iTunesMetadata



Does this problem exist with all tags that MP3Tag doesn't recognize? Would the standard tags found in the attached PDF (Apple's spec for tags) also be deleted?

You can find the entire spec here: http://www.twonkyforum.com/download/file.php?id=554




Thanks for your help in this Florian... It's truly appreciated!


EDIT: This is using the latest 2.46a version.
edrikk
Hi,

The problem is still there with version 2.46b. sad.gif
mrgou
QUOTE (edrikk @ Aug 23 2010, 19:28) *
The problem is still there with version 2.46b. sad.gif


Yes. Same issue occurs with the CDEC tag added by Nero, see here.

It was classified as fixed, but it's not.
edrikk
QUOTE (mrgou @ Aug 30 2010, 15:42) *
Yes. Same issue occurs with the CDEC tag added by Nero, see here.

It was classified as fixed, but it's not.



Can a moderator please add the [C] (confirmed) or [AF] (awaiting feedback) tag to this thread?

Thanks!
edrikk
Is Florian okay?
It's been a month for most items in the bugs forum, and no responses...

I'm waiting with baited breath to fix my files. sad.gif
Florian
I'm alive smile.gif

However, I have a lot to do in my real life, so free time for Mp3tag is currently limited. Stay tuned walkman.gif
edrikk
Hi Florian,

Thanks for adding:

# NEW: MP4 fields ITUNESCATALOGID and ITUNESHDVIDEO.

in Version 2.46c.



However, This version still doesn't show the "rate" atom (even in the Extended Dialog), and STILL deletes the atom if you "Save" within mp3tag.


Can you please fix this issue, and allow the ability to write it as well so that I can fix my files?


UPDATE:
If you set the ITUNESHDVIDEO to 0 (zero) and save, the value is saved to the file. Refresh mp3tag (or close mp3tag and add the file again), and open the extended tag dialog, and the tag is not there (even though it WAS written to the file).

If you save the file, the hdvd atom is deleted.


There is something very wrong with mp3tag's behavior of mp4 tags.
edrikk
QUOTE (edrikk @ Sep 25 2010, 17:33) *
Hi Florian,

Thanks for adding:

# NEW: MP4 fields ITUNESCATALOGID and ITUNESHDVIDEO.

in Version 2.46c.



However, This version still doesn't show the "rate" atom (even in the Extended Dialog), and STILL deletes the atom if you "Save" within mp3tag.


Can you please fix this issue, and allow the ability to write it as well so that I can fix my files?


UPDATE:
If you set the ITUNESHDVIDEO to 0 (zero) and save, the value is saved to the file. Refresh mp3tag (or close mp3tag and add the file again), and open the extended tag dialog, and the tag is not there (even though it WAS written to the file).

If you save the file, the hdvd atom is deleted.


There is something very wrong with mp3tag's behavior of mp4 tags.



One more month passes... One more version passes: Version 2.46d

Behavior is EXACTLY the same as what I described in the above post. Both in terms of "rate" atom, as well as the ITUNESHDVIDEO issue when set to 0.

sigh.

dano
What do you need ITUNESHDVIDEO=0 for?
Isn't it the same as a missing ITUNESHDVIDEO tag?
edrikk
QUOTE (dano @ Oct 29 2010, 15:17) *
What do you need ITUNESHDVIDEO=0 for?
Isn't it the same as a missing ITUNESHDVIDEO tag?



Hi Dano,

It's a bigger issue than just that I'm afraid... For example see the post higher up, noting that CDEC is deleted...

Another example is the "rate" box... There appears to be an issue where MP3Tag does not read "unknown" first level atoms (read: not itunes styles). This means that if you open the file containing such as tag, and save it, the unread tags are destroyed.

This ITUNESHDVIDEO issue appears to be a play on the above, as MP3Tag *does* write the "0" value to the file (as shown by mediainfo), however, if you close and re-open MP3Tag, the tag is NOT visible within mp3tag, and saving the file does not write the tag back (as again, checked by mediainfo).


(Note, when I say visible, I mean even within the "Extended Tags" dialog).


I lost hundreds of my "rate" tag due to this bug, and I've been begging Florian to allow that tag to be written so that I can automate it... I'm afraid nothing yet. :/
dano
I know all the issues, my question was only what's the use of ITUNESHDVIDEO=0
edrikk
QUOTE (dano @ Oct 29 2010, 15:41) *
I know all the issues, my question was only what's the use of ITUNESHDVIDEO=0



smile.gif For that specific case, no difference. Just stating the issue. smile.gif
edrikk
Bump.
Still an issue with "e" version.
edrikk
Bump, as the issue is still present in 2.48.

Tags that are not recognized by MP3Tag are destroyed upon a save (also see this reported here: http://forums.mp3tag.de/index.php?showtopic=11338)


Also, Florian, can you please add first level atom "rate" mp4 (similar to cprt atom) to allow me to reverse the damage cause by the destruction of the tag? I've been waiting 6 months to fix my files. sad.gif
MrSinatra
QUOTE (edrikk @ Jan 26 2011, 04:01) *
Also, Florian, can you please add first level atom "rate" mp4 (similar to cprt atom) to allow me to reverse the damage cause by the destruction of the tag?


what is cprt?

what app is allowing you to write ratings to mp4? itunes unwisely doesn't seem to support writing ratings to tags. i am trying to get winamp to do this for mp4, so as much info about "rate" and cprt and apps that support them like twonky would be appreciated.
edrikk
QUOTE (MrSinatra @ Jan 27 2011, 16:14) *
what is cprt?

what app is allowing you to write ratings to mp4? itunes unwisely doesn't seem to support writing ratings to tags. i am trying to get winamp to do this for mp4, so as much info about "rate" and cprt and apps that support them like twonky would be appreciated.


"cprt" is the copyright atom for mp4. mp3tag can write this using the attribute "COPYRIGHT"

"rate" is the ratings tag. The program that I use which uses it is Twonky Media Server. I'm waiting for florian to fix a bug that causes this atom to be deleted if it exists in mp4 files, and hopefully for florian to be kind enough to allow this tag to be written by mp3tag so that I can fix the files that lost the tag.

Note that itunes doesn't write (or read) ratings tag from the file. It always stores it in its database.


Recent versions of atomic parsely support writing this tag, but you have to compile from source, and do one file at a time. :/

https://bitbucket.org/wez/atomicparsley
MrSinatra
thx for the info, i shared it with the winamp devs, so maybe they will implement it as well. i def hope mp3tag does too, and as with winamp, i always suggest any app ignore a frame it doesn't understand, rather than delete it. i am still confused as to why mp3tag "reorders" mp4/atom data.

i wonder how or why twonky got into supporting such a non-standard frame? i doubt too many folks out there are compiling parsley code. can twonky write ratings to the file?
edrikk
Updated to 2.48b... still same issue...

Florian, can you please add first level atom "rate" for mp4 (similar to cprt atom) to allow me to reverse the damage cause by the destruction of the tag? I'm approaching a wait of 9 months to fix my files that had the first level 'rate' atom deleted incorrectly by mp3tag. sad.gif
edrikk
Still an issue with 2.48d
Florian
Hi edrikk,

thanks for your patience (and all the others who are reading here too). I really want to get this fixed (preferable by keeping unknown atoms) but unfortunately fixing this is far from trivial. I've started working on this and hope to have a working solution over the next weeks.

Kind regards
Florian
edrikk
Woohoo!

Thank you Florian!

Version 2.48e fixes all of the issues that have been stated in this thread! biggrin.gif
MrSinatra
what is the appropriate data range of values for the rate atom?

is it unrated, and then 0-5 or 0-100 or what? what does twonky do?
HardRock
Guys, can some one help me with this ratings ?

I am using winamp for storing my music in library and use ratings, and now I decide to start using twonky server for sharing music and video between devices at home, can I save somehow ratings so that server can using this ratings data ?
MrSinatra
QUOTE (HardRock @ Aug 2 2012, 21:18) *
Guys, can some one help me with this ratings ?

I am using winamp for storing my music in library and use ratings, and now I decide to start using twonky server for sharing music and video between devices at home, can I save somehow ratings so that server can using this ratings data ?


winamp only saves ratings to tags/files if you check / opt-in to the pref, and even if you do that, it does not work on mp4/atom based files afaik. ratings for those are only in its ML DB.

i think twonky created its "own" standard for such files, and uses its own custom atom for such files, but i have yet to find out what atom it is, and what data range is acceptable. (i don't use twonky)

i would like to know, b/c then i can lobby for winamp to support it, and i am basically singlehandedly responsible for winamp now supporting ratings in files/tags, and the data ranges they use.
HardRock
QUOTE (MrSinatra @ Aug 2 2012, 20:27) *
winamp only saves ratings to tags/files if you check / opt-in to the pref, and even if you do that, it does not work on mp4/atom based files afaik. ratings for those are only in its ML DB.

i think twonky created its "own" standard for such files, and uses its own custom atom for such files, but i have yet to find out what atom it is, and what data range is acceptable. (i don't use twonky)

i would like to know, b/c then i can lobby for winamp to support it, and i am basically singlehandedly responsible for winamp now supporting ratings in files/tags, and the data ranges they use.


Somehow twonky finds a rating in the files that I never set ratings manually.
I found this link http://www.twonkyforum.com/mediawiki/index...Twonky_Database
here we see that m4a format have rating tag, so can i use mp3tag for changing all my tag data to this new tag format, and then manually reset ratings to them ?
HardRock
QUOTE (MrSinatra @ Aug 2 2012, 20:27) *
winamp only saves ratings to tags/files if you check / opt-in to the pref, and even if you do that, it does not work on mp4/atom based files afaik. ratings for those are only in its ML DB.

i think twonky created its "own" standard for such files, and uses its own custom atom for such files, but i have yet to find out what atom it is, and what data range is acceptable. (i don't use twonky)

i would like to know, b/c then i can lobby for winamp to support it, and i am basically singlehandedly responsible for winamp now supporting ratings in files/tags, and the data ranges they use.


I remember one more sing.
Some time ago, when I had to move my audio to another HDD, I made this steps:
First I create db dump in winamp. It creates xml file, so then I use php for replacing paths for all files.
And I don't need to re rate all my music. In xml dump file you can see some thing like this:
<key>Rating</key><integer>80</integer>
So winamp use range 0-100 for rate files.
HardRock
–ěh yeah, i add tag rating = 5 and twonky found all my files )

************************************
I was wrong, it was enough to add the comment "rating=5" to all files
MrSinatra
i'm not sure how to respond to all that above...

i don't really know twonky or mp4s/atoms very well. i know there is an "official" atom called rating, aka "rtng" but that is for age groups, meaning explicit or not, like G, PG, R, that kind of thing.

http://atomicparsley.sourceforge.net/mpeg-4files.html

afaik, there is no official tag for ratings in the 0-5 stars sense. twonky, afaik, does its own thing, aka "rate"

the xml data dump in winamp is an itunes import/export thing. but the ratings are from the winamp DB, they aren't in the files (meaning, mp4/atom type files).

so have you solved this by putting ratings in comment tags? does twonky support that? that sounds like a separate solution from using a 'rate' atom. and i am pretty sure winamp doesn't support ratings in comment tags.
MrSinatra
i should also add that winamp uses a 0-255 range for POPM frames, aka id3 files, and 0-100 for vorbis/flac.

i'm not sure how it does wma, but i am pretty sure it does write ratings to those files.
HardRock
QUOTE (MrSinatra @ Aug 2 2012, 22:34) *
i'm not sure how to respond to all that above...

i don't really know twonky or mp4s/atoms very well. i know there is an "official" atom called rating, aka "rtng" but that is for age groups, meaning explicit or not, like G, PG, R, that kind of thing.

http://atomicparsley.sourceforge.net/mpeg-4files.html

afaik, there is no official tag for ratings in the 0-5 stars sense. twonky, afaik, does its own thing, aka "rate"

the xml data dump in winamp is an itunes import/export thing. but the ratings are from the winamp DB, they aren't in the files (meaning, mp4/atom type files).

so have you solved this by putting ratings in comment tags? does twonky support that? that sounds like a separate solution from using a 'rate' atom. and i am pretty sure winamp doesn't support ratings in comment tags.


I just search in winamp:
?rating=5
and add for all those files comment:
rating=5
and twonky find all ratings data in comments smile.gif
MrSinatra
ok, that makes sense to me, but lets be clear at what you are doing:

you are getting all your winamp rated stuff grouped, (which does not require the rating in the file btw, nor does it require an actual search query, you can just sort by the ratings column in the ML and highlight all the same valued ones using the shift key+left click).

but either way works, and you then do a mass edit where you enter the rating string value into the files COMMENT field, and twonky then recognizes it. right?

that makes sense to me, but it is a kludge. i actually use the comment field for comments, so that would not work for me.

my guess is twonky recognizes POPM for id3 files, RATING for Vorbis files, and %rate% for mp4/m4a etc type files.

since mp3tag also does %rate% for those kind of files, it seems to me what you really wanted to do was get your winamp ML DB based ratings in the %rate% type atoms for those kind of files, right?

at that point, its just a question of either A. getting winamp to support %rate% atoms, as i am trying to do in their forums, or B. figure out how to get your results set from winamp into mp3tag so you can have mp3tag put the rating in the %rate% atom.
HardRock
QUOTE (MrSinatra @ Aug 3 2012, 06:44) *
ok, that makes sense to me, but lets be clear at what you are doing:

you are getting all your winamp rated stuff grouped, (which does not require the rating in the file btw, nor does it require an actual search query, you can just sort by the ratings column in the ML and highlight all the same valued ones using the shift key+left click).

but either way works, and you then do a mass edit where you enter the rating string value into the files COMMENT field, and twonky then recognizes it. right?

that makes sense to me, but it is a kludge. i actually use the comment field for comments, so that would not work for me.

my guess is twonky recognizes POPM for id3 files, RATING for Vorbis files, and %rate% for mp4/m4a etc type files.

since mp3tag also does %rate% for those kind of files, it seems to me what you really wanted to do was get your winamp ML DB based ratings in the %rate% type atoms for those kind of files, right?

at that point, its just a question of either A. getting winamp to support %rate% atoms, as i am trying to do in their forums, or B. figure out how to get your results set from winamp into mp3tag so you can have mp3tag put the rating in the %rate% atom.


yeap i use mass edit for files with rating "N"
MrSinatra
QUOTE (HardRock @ Aug 3 2012, 17:27) *
yeap i use mass edit for files with rating "N", but winamp do some smart staff for comments
if file already have comment, winamp add my message "rating=5" in this way: some comment\\rating=5


i have never seen winamp do that. i only see winamp overwrite existing comments in such a scenario. afaik, winamp has no support for multiple entries per frame.

mp3tag can do that, not winamp... unless i'm completely wrong, in which case i'd like it proven to me.
HardRock
QUOTE (MrSinatra @ Aug 3 2012, 16:41) *
i have never seen winamp do that. i only see winamp overwrite existing comments in such a scenario. afaik, winamp has no support for multiple entries per frame.

mp3tag can do that, not winamp... unless i'm completely wrong, in which case i'd like it proven to me.


maybe i miss somesing, i cant find such comments now (
MrSinatra
QUOTE (HardRock @ Aug 3 2012, 18:06) *
maybe i miss somesing, i cant find such comments now (


well, the point is that the best solution for both of us is to put the rating in a tag/frame/field/atom meant for ratings, and not misuse the comment field for that, even if it is a multi field.

winamp already supports writing ratings to id3, vorbis, and wma. we just need to get them to do it for mpa/mp4/atoms too.

go to the end of this thread and show your support for that idea!

http://forums.winamp.com/showthread.php?t=324512
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.