Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 16 Sep 2014, 07:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
How to tag all your audio files in the fastest possible way
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [25 Posts]   Goto page: Previous 1, 2
Author Message
trapster


Joined: 28 Nov 2005
Posts: 2003
Location: Maine, USA

PostPosted: Wed 07 Mar 2012, 19:46    Post subject:  

My post Here is how I tagged my 6000+ .ogg files. I just needed Artist-Title.ogg.

I haven't tried to tag my mp3s.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11062
Location: Arizona USA

PostPosted: Wed 07 Mar 2012, 23:09    Post subject:  

Thanks. I convert to mp3 files because every mp3 player will play them but most won't play ogg files.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11062
Location: Arizona USA

PostPosted: Sat 17 Mar 2012, 10:55    Post subject:  

Okay, the latest version of Pmusic (2.5.0) displays the filenames correctly. I tried tagging the files but I'm not sure it worked.

First, I installed Pmusic 2.5. Then I opened Pmusic from Menu -> Multimedia (may I suggest that the version - 2.5.0 in this case - be added to Pmusic's name in the title bar of the GUI?) Pmusic took several seconds to open. That's surprising, since it is such a small program and my multisession Puppy runs entirely in RAM. The first time I tried to open Pmusic, the delay made me think it wasn't going to open.

In the left pane of Pmusic, I navigated to the directory where the files were (in this case, /tmp/Carlson, Ron/The Signal, where there were 79 mp3 files), by clicking the double-dot thing at the top of the list, then clicking the appropriate directories. Everything looked good to Tag all tracks in list, so I clicked on that option in the drop-down Music sources menu. You can see in the screenshot how I filled out the blanks.

Pmusic took a while to tag all 79 files. When that was finished, I clicked the + Add all option in Pmusic's Music-sources drop-down menu, to add the tracks to the playlist. As you can see from the second screenshot, the first file is actually named 2 - 79. There is no 1 - 79. Is this because of the double-dot thing at the top of the left list? I confirmed that the track that was tagged 2 - 79 is actually the file named 01 - 79 by playing it.

Gxine used to show the id3 info for the track, but neither Mplayer nor ogle do, so I looked at the second file (02 - 79) with id3info:
Code:
# id3info 02\ -\ 79.mp3

*** Tag information for 02 - 79.mp3
*** mp3 info
MPEG2/layer III
Bitrate: 8KBps
Frequency: 22KHz
#

It doesn't look like Pmusic tagged the file. Confused
Pmusic Tag all tracks entries.png
 Description   
 Filesize   28.14 KB
 Viewed   436 Time(s)

Pmusic Tag all tracks entries.png

Pmusic playlist after tagging all files.png
 Description   
 Filesize   53.96 KB
 Viewed   393 Time(s)

Pmusic playlist after tagging all files.png

Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5719
Location: Valåmoen, Norway

PostPosted: Sat 17 Mar 2012, 12:00    Post subject:  

Flash
Great report - we are very close now Very Happy

I see the problem with starting count by 2.
That should be fixed in the func_id3tagger attached. Replace it with the one in /usr/local/pmusic/.

Quote:
It doesn't look like Pmusic tagged the file.
It sure did. That is what we see in the playlist in your screenshot. To verify, you can see that tags by the command
Code:
ffmpeg -i "file"
Look for the section - metadata.

I don't know what version ffmpeg prefers of the id3-standard (which isn't any standard at all). It could be the extended version 1, which is probably not supported by id3info. Please post the ffmpeg output, and it could maybe give some answers....


Sigmund
func_id3tagger.gz
Description 
gz

 Download 
Filename  func_id3tagger.gz 
Filesize  1.75 KB 
Downloaded  182 Time(s) 

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5719
Location: Valåmoen, Norway

PostPosted: Sat 17 Mar 2012, 12:03    Post subject:  

Code:
# id3info 02\ -\ 79.mp3

*** Tag information for 02 - 79.mp3
*** mp3 info
MPEG2/layer III
Bitrate: 8KBps
Frequency: 22KHz
#
It seems that id3info detects wrong bitrate for your file. I don't think you are listening to 8kb/sec. 'ffmpeg -i' will show bitrate as well.


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11062
Location: Arizona USA

PostPosted: Sat 17 Mar 2012, 21:50    Post subject:  

Yes, the 8 kbps is wrong. The file was encoded with 64 kbps Variable Bit Rate. I guess ffmpeg doesn't know Variable Bit Rate.

As you can see in the first screenshot, you are right, it appears that Pmusic did tag the files. The numbering is still wrong because I haven't yet redone the tags with the new func_id3tagger.

In the second screenshot I've retagged the files after replacing func_id3tagger with the new one. As you can see, the numbers are now correct. Good work, and fast! Very Happy

One thing that may cause problems in some cases is that there are no leading zeros. Some mp3 players or other apps may place 1 after 10. If you do add leading zeros, either go with three of them (0001, 0002, etc.) or perhaps a more sophisticated way would be to see how many files are to be tagged in the directory and adjust the number of leading zeroes to fit. But it looks like it will work the way it is.

I loaded the newly retagged book into one of my mp3 players and fired it up. As far as I could see, the stupid thing didn't use the tags. Mad Where the heck is it getting the info it displays? I have several other, different, mp3 players I'll be trying out to see if they're the same way.

Edit: the second mp3 player I tried shows the first track as 01 - 79, Unknown artist, Unknown album, even though ffmpeg shows the metadata is different. What gives? Confused
ffmpeg reads mp3 file tags.jpg
 Description   
 Filesize   115.04 KB
 Viewed   383 Time(s)

ffmpeg reads mp3 file tags.jpg

Retag with new mp3tagger file.png
 Description   
 Filesize   48.92 KB
 Viewed   368 Time(s)

Retag with new mp3tagger file.png

Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5719
Location: Valåmoen, Norway

PostPosted: Sun 18 Mar 2012, 04:26    Post subject:  

Flash
The attached tagger now supports id3 version 2.3, which is the most common id3 'standard'. I have checked here, and it works with id3info.

When it comes to leading zeros, I won't do anything before you encounter any trouble.... Smile


Sigmund
func_id3tagger.gz
Description 
gz

 Download 
Filename  func_id3tagger.gz 
Filesize  1.77 KB 
Downloaded  184 Time(s) 

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11062
Location: Arizona USA

PostPosted: Sun 18 Mar 2012, 11:08    Post subject:  

That did it! I replaced the old func_id3tagger in usr/local/Pmusic with the new one, tagged the mp3 files in an audio book directory the same way I did it a few posts above, and tried the newly tagged audio book in two different mp3 players from different manufacturers. The players both now show the artist and name of the book (as the album) while the file is playing. One of the mp3 players shows the track as 1 - 79 while the other shows it as 01 - 79. It might be that the second one is showing the file number rather than the metadata, who knows?

I won't know for sure until I've tagged several audio books and listened to them in different mp3 players, but it appears that for my purposes Pmusic's tagger works perfectly. Very Happy.

I noticed that while it is tagging a bunch of mp3 files in a directory, Pmusic seems to open and close a console window for each file it tags. I seem to remember another Puppy app which did that at first, and a fix speeded it up noticeably. I can't remember what the app was. I think it had to do with ripping CDs and converting them to mp3.
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5719
Location: Valåmoen, Norway

PostPosted: Sun 18 Mar 2012, 15:05    Post subject:  

The reason for Pmusic masstagger is slow, is because ffmpeg (afaik) doesn't support tagging of existing file. - Only for the new output file. Earlier, when I tested this, it took ages waiting for ffmpeg to finish building new files with given meta-tags. Now, I let ffmpeg use the '-acodec copy' parameter which simply gives a straight copy (like cp) which is much faster compared to build a new stream.

Compared to tagging the existing file it will sure be slower. But I don't see the big deal. The only feature I find troublesome (with slower tag-reading) is the auto-loading of metatags when browsing/searching. This is now turned off by default.

On the other hand, Pmusic now supports tagging of more file-formats.


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11062
Location: Arizona USA

PostPosted: Tue 22 Jan 2013, 00:41    Post subject:  

zigbert wrote:
Flash
The attached tagger now supports id3 version 2.3, which is the most common id3 'standard'. I have checked here, and it works with id3info.

When it comes to leading zeros, I won't do anything before you encounter any trouble.... Smile

http://murga-linux.com/puppy/viewtopic.php?p=612920#612920
Sigmund

Trouble is here. Sad
I bought a 4 GB SanDisk Sansa clip zip mp3 player. It is the first mp3 player (of at least 5 different kinds) I've tried that doesn't seem to play mp3 files in an audio book in the order they loaded. That's the good news. For the bad news, it apparently reads the id3 tags to determine the play order. It starts with number 10, then 20, then 100, then 200, etc. Oddly, it does play books with fewer than 100 files in the right order. I'm still investigating. Next I plan to load a book which has no id3 tags and see what the player does with that. Laughing
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [25 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0775s ][ Queries: 12 (0.0042s) ][ GZIP on ]