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

#61 Post by plinej »

1.5 is now up. I improved the code a bit to fix the problem that disciple mentioned about lines with ":". As far as mp3's with an itunes tag, what do you need to read/edit itunes tags on mp3s?

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

#62 Post by disciple »

It should work with id3info:

Code: Select all

# id3info Blackbir*

*** Tag information for Blackbird Live.mp3
=== TT2 (Title/songname/content description): Blackbird Live
=== TEN (Encoded by): iTunes v4.5
=== COM (Comments): (iTunNORM)[eng]:  00002817 000002A1 00017CAD 00002B90 0001E6F0 00008D6D 000084AD 000084AD 0004A2F0 0004A2F0
=== TP1 (Lead performer(s)/Soloist(s)): Third Day
=== TAL (Album/Movie/Show title): Live Tour
=== TYE (Year): 2004
*** mp3 info
MPEG1/layer III
Bitrate: 128KBps
Frequency: 44KHz

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

#63 Post by plinej »

If id3info reads the tag it should display it in the gui since mp3s will be checked for tags with id3info. Does it not display any of those fields?

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

#64 Post by disciple »

No, it doesn't...

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

#65 Post by disciple »

When easytag opens these files it automatically changes something in them (don't know what - it doesn't seem to be the text of the tags, but it highlights them as changed files), and if I save them without changing anything myself, pmetatagger can read them.

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

#66 Post by plinej »

Alright, I'll have to experiment with making mp3s using itunes on the wife's computer.

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

#67 Post by disciple »

I tried shortening an mp3 to upload it here, but mp3splt does not have an option to retain the original id3 information, and using id3tag to copy the information from the original file results in a tag with the same information, but which pmetatagger can read :(

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

#68 Post by disciple »

Oh - I see:

Code: Select all

*** Tag information for Blackbird Live_0.00_0.05.mp3
=== TIT2 (Title/songname/content description): Blackbird Live
=== TENC (Encoded by): iTunes v4.5
=== COMM (Comments): (iTunNORM)[eng]:  00002817 000002A1 00017CAD 00002B90 0001E6F0 00008D6D 000084AD 000084AD 0004A2F0 0004A2F0
=== TPE1 (Lead performer(s)/Soloist(s)): Third Day
=== TALB (Album/Movie/Show title): Live Tour
=== TYER (Year): 2004
=== COMM (Comments): (ID3v1 Comment)[XXX]:  00002817 000002A1 00017CAD 00
*** mp3 info
MPEG1/layer III
Bitrate: 128KBps
Frequency: 44KHz

*** Tag information for Blackbird Live.mp3
=== TT2 (Title/songname/content description): Blackbird Live
=== TEN (Encoded by): iTunes v4.5
=== COM (Comments): (iTunNORM)[eng]:  00002817 000002A1 00017CAD 00002B90 0001E6F0 00008D6D 000084AD 000084AD 0004A2F0 0004A2F0
=== TP1 (Lead performer(s)/Soloist(s)): Third Day
=== TAL (Album/Movie/Show title): Live Tour
=== TYE (Year): 2004
*** mp3 info
MPEG1/layer III
Bitrate: 128KBps
Frequency: 44KHz
The tags have slightly different names.

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

#69 Post by plinej »

Ahh, I should have noticed that. I should be able to incorporate some code to resolve that issue rather easily.

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

#70 Post by plinej »

1.6 is now up.

This should resolve the itunes tagged mp3 problem. The only problem is that itunes can tag various fields on mp3s that can't be re-tagged with "id3tag".

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

#71 Post by plinej »

1.7 is now up.

Fixed a bug with the genre portion and used the cross reference with lame portion of my pcdripper script to fix it.

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

#72 Post by plinej »

1.8 is up.

I fixed being able to tag a file from an existing .ptag (dumped tag) from within the gui.

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

#73 Post by disciple »

Is there any reason we couldn't have a checkbox to remember the previous file's metadata, instead of asking after the first file? That way the feature could remember data from files other than the first one opened, and could even be turned on and off as you go along. It would save all that time to build the gui asking the question too :)

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

#74 Post by plinej »

Very good idea. I'll try to implement it.

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

#75 Post by disciple »

The key thing is to remember the state of the checkbox between files :)

It might also pay to think carefully about whether there is a better way to do it first :)

e.g. the user may not know until they get to the next file that they should have saved the information, so a button to apply the tags from the previous file might be better than a checkbox to remember the tags for the next file. But that would be inefficient for doing a whole lot of files with the same tags, as you would have to click the button each time.

I've thought a bit, but most ways of improving it could get very complicated, and I think the best thing might be to have a checkbox like I suggested, and also add a button to go back to the previous file. My bash skills aren't good enough to know if that would be easy to do, but I imagine it should be.

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

#76 Post by plinej »

Yeah, it'll be possible. I'll just have to think about the best way to implement it.

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

#77 Post by plinej »

updated to 1.9

I modified a little code to make it play nicer with the etree scripts I posted. I also added a checkbox on the main gui for replay gain. If you want to add replay gain to your flac and ogg files just check the box. For ogg you'll need to install the vorbisgain package if you haven't already. I haven't managed to incorporate any of disciple's requests yet. I haven't been very motivated to do much coding lately.

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

#78 Post by plinej »

updated to 2.0

Just some minor changes so a file can be tagged completely from the command line without the gui. I wanted to do this so I can make a file converter that retains tags. Right now I've got a simple script that converts flac to mp3 retaining the tags. I also made a script that will parse a txt file for tagging info (basically my own version of the etree scripts without the need for a bunch of perl modules). I'll post the scripts below if anyone wants them.

To use the "txt2ptag" script just enter it at the cli when you're in a directory of audio files that contains a txt file with the necessary information. The script will look for whatever file type there is the most of in the current directory to tag. The txt file will need to meet the following requirements to work correctly:

line 1 needs to be the artist name.
line 2 needs to be the date of the recording.
line 3 needs to be the album name.

The source will be found if a line starts with the word "source".
The tracks need to have numbers at the beginning of the line and will need to have a line before the tracks starting with any of the following words: "source" "tracklist" "setlist" or "disc" (case doesn't matter since grep -i will be used).

The "flac2mp3" script will convert an entire directory of flac files to mp3 (retaining the tags). A new directory will be created inside the current directory that will be named "whatever the current directory name is".mp3 and all of your mp3s will be in that new directory. The script will NOT delete your flac files. You can of course change the following at the top of the script:

INPUT=flac
OUTPUT=mp3
BITRATE=192
CHANNELS=2
RATE=44100

You can change them to any other ffmpeg supported file formats and settings. Maybe you want to do shn to ogg, change "INPUT=shn" & "OUTPUT=ogg".
Attachments
scripts_to_use_with_pmetatagger-2.0.tar.gz
(1.29 KiB) Downloaded 789 times

brymway
Posts: 407
Joined: Sun 09 Dec 2007, 01:08

#79 Post by brymway »

plinej-

Thanks for a fantastic program. I downloaded easytag but it's too complicated and has too many unclear features. I am using pmetatagger instead. I read this thread and am not sure if I understand it all so I'll ask.

I have 17 gigs of (the evil) m4p itunes music across the room on our imac. My ipod was recently stolen and so I picked up a Sansa Fuze, now completely free of mac and windows. Of course there is a trade off. I'm now using a program on the mac that I downloaded that takes forever to change the m4p music into mp3, then loading it on a usb stick, walk across the room, mount it, make a folder and put all the songs per album in it, then going thru and manually entering all the tag info for each song. Then I move it onto my laptop harddrive for storage and mount my Sansa. Puppy reads it like a usb thumb drive. I open the music folder and drag-copy the new album folder on my music player and viola! I'm done....whew! Needless to same it's a very long tedious task and I'm only getting started. I am using the Pmetatagger version 1.8 that came stock on Dingo 4.0.

Here's my question. Is there any capabilities with anything you've been incorporating to work with Ptag that would shorten any steps I'm making or is this my lot in life?

By the way, I curse the day itunes came into existence. They are no better than microsoft.

spit...

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

#80 Post by plinej »

You could try to use the script I posted above, just change the input to m4p (INPUT=m4p). As long as ffmpeg supports the m4p files it should work just fine. You'll need to install Pmetatagger-2.0 as well.

Post Reply