Page 1 of 5

Posted: Sat 15 Dec 2007, 06:18
by disciple
I saw the source code for a command line mp4 tag editor for Windows - it wouldn't compile in Puppy, but I could track it down again if someone with knowledge of C or something thought it would be useful.

Posted: Sat 15 Dec 2007, 10:50
by tempestuous
plinej wrote:Are there cli tools that you can use to view/edit tags in ape or m4a/mp4 formats?
The aac/m4a/mp4 formats apparently use conventional ID3 tags, so the id3lib utilities should (?) be compatible.

I have no experience with ape, but a Google search reveals that this format uses APEv2 tags -
http://en.wikipedia.org/wiki/APE_tag
A commandline tag utility for APEv2 is Apetag from
http://www.muth.org/Robert/Apetag/

Posted: Sat 15 Dec 2007, 12:34
by Dougal
tempestuous wrote:
plinej wrote:Are there cli tools that you can use to view/edit tags in ape or m4a/mp4 formats?
The aac/m4a/mp4 formats apparently use conventional ID3 tags, so the id3lib utilities should (?) be compatible.
It might be worth looking at the faad2 package, but I also know that Easytag uses a cutdown version of libmp4v2, so that might be worth looking at.

Posted: Sat 15 Dec 2007, 15:13
by plinej
I tried to tag some m4a files I have with id3tag and they seemed to take but when I tried to play them with mplayer they are now unplayable. They played just fine before I tried to tag them. I'll try and figure something out though.

Posted: Sat 15 Dec 2007, 17:15
by tempestuous
I did some more reading about MP4 tagging. ID3 metadata is definitely compatible, but there's some extra iTunes-related stuff in there as well. So any MP4 tagging applications problably need to be aware of this extra metadata, to avoid corrupting it.

As Dougal mentioned, Easytag can be compiled with AAC support using libmp4v2 as a dependency ... but Jason probably wants only the backend components.
The MPEG4IP project provides this libmp4v2 library, plus various utilities including the commandline tagger "mp4tags".
http://mpeg4ip.sourceforge.net/index.php

Alternatively, there is "AtomicParsley" which seems to take the tagging concept a step further by modifying the iTunes asset identification.
http://atomicparsley.sourceforge.net/

Posted: Sat 15 Dec 2007, 19:46
by plinej
Thanks, I'll take a look at those projects soon.

Posted: Sun 16 Dec 2007, 01:53
by plinej
Those m4a files that I tried to tag with id3tag and won't play in mplayer anymore, can't even be decoded by ffmpeg or faad2. Oh well, just test files. I did just compile AtomicParsley & Apetag so I'm going to see how well those programs work and then incorporate them into pmetatagger if they work.

Posted: Sun 16 Dec 2007, 17:20
by plinej
I just added ape support via apetag. It's supposed to work with mpc files too so I'm going to try them as well. I'll have to modify the gui a bit to support m4a/mp4 files via AtomicParsley since itunes uses a lot of tagging fields. It'll probably be tabbed when m4a/mp4 filetypes are selected. When I finish that up, I'll add the features to Pcdripper too.

Posted: Mon 17 Dec 2007, 04:08
by plinej
0.6 is now up.

This adds support for m4a, mp4, mpc, mpp, & ape file formats.

You'll need "apetag" in your $PATH for ape, mpc, & mpp.
You'll need "AtomicParsley" in your $PATH for m4a & mp4.

I'll attach the binaries I'm using, just unpack and put them in your $PATH.

Posted: Mon 17 Dec 2007, 20:33
by plinej
I just added an option to dump the existing tags via a button click. This will save all the tag information to the directory where your file is. The file will be "Your-audio-file".ptag. This file is a just a basic text file that can be opened read & edited if need be. You can then use that ptag file to tag a new file from within pmetatagger. I'll work out a command line option to use a ptag file on a specific audio file which will bypass the gui. This will be especially useful in an audio conversion program to dump the existing tag and re-use it for the newly encoded file.

Now to restructure the program so it dumps the tags before the gui starts. Should've done that to begin with but I didn't think of the importance until now. This way you can view & dump the tags in a standard and useable way from the command line.

Posted: Mon 17 Dec 2007, 23:28
by plinej
0.7 is now posted.

This has a bugfix, loading a single file from within the gui was broken, now fixed. I also added the dump tag information as noted above, and incorporated some new command line only techniques to dump the tag and use it on a different file. For more info enter at the cli:

# pmetatagger --help

One of these days I'll start work on a new pawdioconverter that will save tags by using the pmetatagger command line switches.

Posted: Tue 18 Dec 2007, 15:33
by plinej
0.8 is now up.

Nothing new, just cleaned up some code and fixed a bug.

Posted: Tue 18 Dec 2007, 16:50
by plinej
I read that wavpack (.wv) & optimfrog (.ofr) files accept APEv2 tags so I'll experiment with that and add the filetypes to the gui if successful. I need to find a .wma tag editor. Currently in pcdripper I'm using ffmpeg as the encoder for that format and even though ffmpeg supposedly accepts:

-year
-title
-author
-copyright
-comment
-album
-track

It seems that mplayer only notices title and author for ffmpeg encoded wma's. I don't see a way to use ffmpeg to view/edit tags though.

    Posted: Tue 18 Dec 2007, 18:14
    by plinej
    0.9 is now up.

    This adds optimfrog (.ofr) & wavpack (.wv) lossless audio formats. You'll need apetag installed for them to work.

    Posted: Tue 18 Dec 2007, 18:40
    by plinej
    0.9.1 is up

    I was reading the Atomic Parsley web page and noticed there was also support for m4b, m4p, & m4v files so I added them to the gui as well.

    Posted: Tue 18 Dec 2007, 18:45
    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.

    Posted: Tue 18 Dec 2007, 23:42
    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.

    Posted: Thu 20 Dec 2007, 22:02
    by plinej
    1.0 is now up

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

    Posted: Sat 29 Dec 2007, 01:56
    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.

    Posted: Sat 12 Jan 2008, 00:47
    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?