5 More Discussions You Might Find Interesting
1. Slackware
I'm trying to record audio using Audacity 2.0.5 installed from SlackBuilds. My system is 64-bit Slackware 14.1 and a sound card is Intel HD Audio. I didn't change my sound system to OSS. (Default sound system in Slackware 14.1 is ALSA, isn't it?) First, I set Internal Microphone slider in KMix... (2 Replies)
Discussion started by: qzxcvbnm
2 Replies
2. Shell Programming and Scripting
My company has a policy that employees can't keep music on our servers so im looking for a line or script that I can run as part of a cron job that will remove all mp3's in the users home directories.
Does anyone have any idea how I might accomplish this? (3 Replies)
Discussion started by: binary-ninja
3 Replies
3. UNIX for Dummies Questions & Answers
I would like to know how to open an mp3 with an application other than it's default app. For instance, instead of opening with iTunes, I would like it to open with quicktime.
Any help would be appreciated. Thanks!! (1 Reply)
Discussion started by: emperorfabulous
1 Replies
4. UNIX for Dummies Questions & Answers
I just need a mp3 codec that will decode mp3s so I can play them with my media player (probably going to be using XMMS) (0 Replies)
Discussion started by: Synbios
0 Replies
5. Shell Programming and Scripting
Hi all...
Here's my question:
-> considering i've got thousands of mp3s', named like "Artist name - Track Name", how could i write a shell (ksh, or bash my favorite, not knowinf enough any other language) that would create a directory (if not existing already) with the Artist's name, and move... (3 Replies)
Discussion started by: penguin-friend
3 Replies
LEARN ABOUT PHP
id3_get_tag
ID3_GET_TAG(3) 1 ID3_GET_TAG(3)
id3_get_tag - Get all information stored in an ID3 tag
SYNOPSIS
array id3_get_tag (string $filename, [int $version = ID3_BEST])
DESCRIPTION
id3_get_tag(3) is used to get all information stored in the id3 tag of the specified file.
PARAMETERS
o $filename
- The path to the MP3 file Instead of a filename you may also pass a valid stream resource
o $version
- Allows you to specify the version of the tag as MP3 files may contain both, version 1.x and version 2.x tags Since version 0.2
id3_get_tag(3) also supports ID3 tags of version 2.2, 2.3 and 2.4. To extract information from these tags, pass one of the con-
stants ID3_V2_2, ID3_V2_3 or ID3_V2_4 as the second parameter. ID3 v2.x tags can contain a lot more information about the MP3 file
than ID3 v1.x tags.
RETURN VALUES
Returns an associative array with various keys like: title, artist, ..
The key genre will contain an integer between 0 and 147. You may use id3_get_genre_name(3) to convert it to a human readable string.
EXAMPLES
Example #1
id3_get_tag(3) example
<?php
$tag = id3_get_tag( "path/to/example.mp3" );
print_r($tag);
?>
The above example will output something similar to:
Array
(
[title] => DN-38416
[artist] => Re:Legion
[album] => Reflections
[year] => 2004
[genre] => 19
)
Example #2
id3_get_tag(3) example
<?php
$tag = id3_get_tag( "path/to/example2.mp3", ID3_V2_3 );
print_r($tag);
?>
The above example will output something similar to:
Array
(
[copyright] => Dirty Mac
[originalArtist] => Dirty Mac
[composer] => Marcus Gotze
[artist] => Dirty Mac
[title] => Little Big Man
[album] => Demo-Tape
[track] => 5/12
[genre] => (17)Rock
[year] => 2001
)
SEE ALSO
id3_set_tag(3), id3_remove_tag(3), id3_get_version(3).
PHP Documentation Group ID3_GET_TAG(3)