Pmetatagger-2.1 - a gtkdialog audio meta tagger

Stuff that has yet to be sorted into a category.
Message
Author
plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#31 Post by plinej »

apetag seems to work fine with shorten (.shn) format as well. I'll experiment with some other file types to see what else works.

It appears that id3 version 1 tags work with shorten and ape as well. id3 version 2 tags corrupt the files though.

It's too bad these programs can't read the other's tag. This will make it harder because I could be using apetag to read a tag when id3tag was used to create it (or vice versa). I may have to try to read a tag with id3info first and if no results try the other program.

I'm assuming maybe id3v1 tags via id3tag may be writable to many more file formats. I'll try it on other formats like wma. Looks like some more restructuring to my code needs to be done.

It appears that flac files accept apetag & id3tags w/o overwriting metaflac's tags. The track is still playable in mplayer but now it can't be decoded. Looks like I'll need to check that with the other formats too.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#32 Post by plinej »

It seems that version 1 tags can be written to every file format I tried. Version 2 tags seem to corrupt everything except mp3. Flac files were corrupted with apetag, id3tag, & mp3info. I think I'll make the program so the user can choose which program to tag their files with.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#33 Post by plinej »

1.0 is now up

I added a help file, and restructured the code quite a bit this time.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#34 Post by plinej »

updated to 1.1

A small bugfix. I noticed when a mp4/m4a (itunes type audio) file was selected and AtomicParsley was not installed it still showed up in the taggers to be selected. Now it won't.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#35 Post by disciple »

When I select a file it just says all the operations are finished or something like that, instead of showing me the tagging window. It doesn't say anything helpful in the terminal.
The problem could be that I have a very old puppy, and I have easytag anyway, so I don't actually need it to work, but is there any way to debug?

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#36 Post by plinej »

Do you have either id3info, mp3info, or apetag in your $PATH? Otherwise I'm not quite sure why it would do that. What happens if you do this from the command line:

# pmetatagger /path/to/audio/file -dumptag

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#37 Post by plinej »

Disregard that. Thanks for the feedback, I see I did somehow break the individual file loading. It seems to work okay when loading a directory or choosing to open a file with pmetatagger in a file manager but loading a single file from the gui is broken. I'll post a new version soon.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#38 Post by plinej »

1.2 is now posted.

This fixes 2 bugs. The bug reported by disciple should be resolved and also a bug that caused the gui not to start sometimes due to a temp file not being written properly.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#39 Post by disciple »

Do you think it would be possible for it to edit exif data in photos with jhead?

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#40 Post by plinej »

It should be fairly simple to create a gui to do that. I don't know if I'd add it to the code of pmetatagger though. I've never used jhead before but I'll take a look at it and see if I can throw a little gui together for it.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#41 Post by plinej »

Alright, I've got the code into pmetatagger to support jpg/jpeg files if jhead is in your $PATH. Do you want it there just so you can view the Exif data? The only thing you can really edit is the Exif Date/Time right? I'll also add the ability to use the Exif data on another jpeg file on your file. I could also add checkboxes to strip Comments field, Exif section, IPTC section, & non-image sections. Since I really wouldn't use pmetatagger for this function, is there anything I'm missing?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#42 Post by disciple »

It can also edit JPEG (not exif) comments.
Sorry - I didn't look at it carefully. When I was looking at it I was basically just interested in the JPEG thumbnails, then I had this bright idea the other day, wrongly assuming that if it could replace exif thumbnails it must be able to replace other exif information...

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#43 Post by plinej »

No problem at all. I'll try to get a new version up sometime tonight.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#44 Post by plinej »

Alright, I've got it all the code in there except for the thumbnail stuff. I created 3 tabs worth of display output of jhead, the first 2 are unchangeable display only. The third tab has the ability to add/edit the exif Date/Time & Comments. It also has the option to select another jpeg and use that jpeg's exif data to tag your selected jpeg. There are also 4 checkboxes to strip unwanted data (comments, exif, IPTC, & non-image).

I see jhead has the ability to remove thumbnails, save thumbnails, and replace thumbnails. Where do I find a jpeg file that already has a builtin thumbnail so I can experiment with the commands to add them to the gui? If you have one, could you post it in this thread so I can download it?

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#45 Post by disciple »

OK, I'll upload one in a second. Here's what I was already posting:

Great :)
For a while there I thought I'd found another bug. When I chose a directory it would do what I was complaining about before when choosing a file - just say all processes are complete straight away. But it's working now, even though I didn't do anything...

I've got a couple of suggestions that are somewhat more useful:
- allow typing the folder or file path in the gui, instead of using the browse button.
- allow it to take a relative path from the command line.

BTW does the command for opening all files of a given type from the console actually work for you? Because it just brings up the standard gui for me...

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#46 Post by disciple »

My brother just sold it for a dollar (with two chairs). Nice bargain for someone...
Attachments
test.jpg
(45.09 KiB) Downloaded 823 times

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#47 Post by disciple »

If anyone's interested I just posted exifcom in the jhead thread, which can edit the exif UserComment if it already exists. I don't have any photos with that field though, and the length of the field apparently varies between different manufacturers as well.

Hmmm. exiftags shows a lot more information than jhead. Are you dealing with jhead information the same way as information from the other taggers (searching for fields in the output)? Because it would be much easier with read-only information like that just to show the whole output...
You are right, at the moment these jpeg tools don't fit that well with pmetatagger:)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#48 Post by disciple »

I'm just compiling exiv2 - it has exif write support as a library, although I'm unsure about it's binary.

I have what appears to be another bug. Using id3lib, if I open an mp3 with pmetatagger, it just shows empty tags, even though there are tags and they show up in xmms. If I put in tags, pmetatagger writes them ok (I see the new tags in xmms, and any that I didn't fill in are now missing). Does pmetatagger read mp3 tags correctly at the moment for you?

---EDIT---
BTW m4a works fine, so I only have a problem with id3lib

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#49 Post by disciple »

I had a make error compiling exiv2, so I tried a slackware package, which works, although I can't quite figure out how to use it. I think it can add a new exif usercomment, but I'm not certain. I think that's really the only part of the exif tag we should be changing anyway :) Changing anything else would essentially have to be for deceitful purposes...

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#50 Post by plinej »

I'll look into the bugs you're posting.

I already fixed the relative path issue while I was working on putting in jhead support.

I will change it to allow typing in the directory/file selector.

The command file for opening all of a specified file type does work for me. It will open the gui with the first file found of that type and when you click ok/next the next file of that type will load into the gui.

The mp3 tagging issue you mentioned, I can't really say for sure since it seems to work okay for me. What was used as the tagger for the original files?

Post Reply