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

#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.

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

#81 Post by brymway »

Trying it out I moved flac3mp3 to a directory that had some m4ps in it, opened flac as text, changed the input to m4p and saved. Then clicked the executable and it made a new file of my m4ps with the same files.mp3. I clicked on one of them, gzine opened up, my cd spun and the my computer crashed. Any ideas?

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

#82 Post by plinej »

I'm not sure what it could be. All of the mp3s were created in a new directory inside of the current directory right? Do the mp3s appear to be okay in size? Can you play any of the new mp3s from the command line like this:

# ffmpeg -i YOUR-MP3-FILE-HERE.mp3 -f au - | aplay

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

#83 Post by brymway »

no aplay doesn't even work on my computer. I type aplay and it just sits there with a blinking cursor

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

#84 Post by plinej »

@ brymway,

Check your private messages

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#85 Post by ravensrest »

Jason, in attempting to use Pmetatagger 2.0 to tag some ogg files with vorbiscomment, I noted that in the box titles for both 'Enter the composer' and 'Enter the lyricist' the words 'composer' and 'lyricist' were not appearing. Further, neither the words nor their values were being written to the ogg file nor to the temp file you create.

I removed the $ from before the words 'lyricist' and 'composer' in lines:

605
606
814
818
822
826
900
901
926
927

of your code, and everything works fine now. I believe this problem is present in 1.9 also.

Other than that, thanks for a very useful script.

BS

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#86 Post by ravensrest »

OK, I think I have found a second and larger problem. Still using ogg files and Vorbiscomment. All the required Vorbis files and libraries are present, and I am using gtk3.

The Skip and Next buttons seem to do what they are supposed to do. If you hit Skip and answer the ensuing dialog about whether to use old info or not NO, you can skip thru all your files and the correct tags will be shown with one anomaly. The first file that you skip to has a track number shown that is one too high. After that they resume their correct numbers.

But if you select YES, then as you skip thru the files, the previous data appear to be presented if the current file has already been tagged. When you come to an untagged file, the previous data are only presented for the first such file and the file number is correct. After entering the title, you click Next and although the next file is correctly opened, no previous data are present and the track number goes to 1. It looks like this may occur at line 730 where you grep the track number from File2, but set it to zero if there is none (untagged file)? Later you increment it back to 1. Changing line 732 to:

NUMGUI=`expr $NUMBER - 1`

Seems to resolve the problem.

Also, if I choose a tag-dump file, shouldn't the data from that file show up in the dialog boxes of the main gui? They don't for me, just the name of the file, although the info from the tag-dump file is correctly written to the current ogg file.

Tried looking at your code a bit, but this may be beyond my talents. Help?

BS
Last edited by ravensrest on Sun 30 Nov 2008, 18:23, edited 1 time in total.

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

#87 Post by plinej »

PM the updated script to me and I'll post your fixes as a new version. I really don't have alot of time anymore to work on this stuff.

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

#88 Post by plinej »

2.1 is posted and contains ravensrest' fix. When I get a chance I'll look at the other reported problem.

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

#89 Post by plinej »

Just incase anyone looks at this thread I wanted to post that this project is dead and I started over with Ptag.

http://www.murga-linux.com/puppy/viewtopic.php?t=69948

Post Reply