Page 4 of 5

Posted: Sat 26 Jan 2008, 14:36
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?

Posted: Sat 26 Jan 2008, 20:47
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

Posted: Sat 26 Jan 2008, 21:55
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?

Posted: Sat 26 Jan 2008, 23:56
by disciple
No, it doesn't...

Posted: Sun 27 Jan 2008, 00:25
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.

Posted: Sun 27 Jan 2008, 12:43
by plinej
Alright, I'll have to experiment with making mp3s using itunes on the wife's computer.

Posted: Mon 28 Jan 2008, 03:01
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 :(

Posted: Mon 28 Jan 2008, 03:05
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.

Posted: Mon 28 Jan 2008, 03:08
by plinej
Ahh, I should have noticed that. I should be able to incorporate some code to resolve that issue rather easily.

Posted: Mon 28 Jan 2008, 05:05
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".

Posted: Mon 28 Jan 2008, 19:42
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.

Posted: Thu 31 Jan 2008, 22:07
by plinej
1.8 is up.

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

Posted: Fri 01 Feb 2008, 20:33
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 :)

Posted: Fri 01 Feb 2008, 20:37
by plinej
Very good idea. I'll try to implement it.

Posted: Fri 01 Feb 2008, 21:25
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.

Posted: Fri 01 Feb 2008, 21:49
by plinej
Yeah, it'll be possible. I'll just have to think about the best way to implement it.

Posted: Wed 30 Apr 2008, 23:13
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.

Posted: Thu 21 Aug 2008, 01:57
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".

Posted: Tue 09 Sep 2008, 04:37
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...

Posted: Tue 09 Sep 2008, 13:42
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.