07-13-2010
Check file is mp3
Hello,
I am trying to check if a file is an mp3.
file -b file_path g
ives me AUDIO for many MP3 but there are many working MP3 files that return something else. How can I get better result?
Thank you
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i know this is crazy. but i can do this from linux in intel platform.
just wonder can my Sun Solaris 8 sparc can do the same thing? (2 Replies)
Discussion started by: champion
2 Replies
2. 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
3. UNIX for Dummies Questions & Answers
I wish to seach a Dir for a specific file, once the file is found i will perform additional logic. If the file is not found within two hours, i would like to exit.
Logically, I'm looking for the best way to approach this
Thanks for any assistance in advance.
Note: I'm using a C shell and... (2 Replies)
Discussion started by: mmarsh
2 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. Programming
hi all,
In an mp3 file , data is arranged in sequence of header and data ,how to retrieve data between two headers. Is the data between two headers fixed? because as per theory it says 1152 samples will be there , but dont knw how many bits one sample correspond to?
it would help if any c... (2 Replies)
Discussion started by: shashi
2 Replies
6. Shell Programming and Scripting
Hi:
I have a collection of mp3s and I need to create 1 xml file per mp3.
I have:
recording1.mp3
recording2.mp3
etc
and I want to generate this kind of files.
recording1.xml
recording2.xml
and inside each xml file I need to add a url prefix and then the filename at the end.
... (4 Replies)
Discussion started by: jason7
4 Replies
7. UNIX for Advanced & Expert Users
Advance Thanks.
(1) I would like to know any unix/Linux command to check EOF char in a file.
(2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Discussion started by: alexalex1
5 Replies
8. Programming
Hai all,
Can anyone explain me about how to add an user defined tag in an mp3 file using MP3::Tag module in perl? (0 Replies)
Discussion started by: thillai_selvan
0 Replies
9. Shell Programming and Scripting
Hello, I have a lot of mp3 in a various directory. My goal is a command that find all mp3 file and move the files and directory where is the mp3 file to a destination folder.
Is it possible?
Thanks in advance (7 Replies)
Discussion started by: giangi007
7 Replies
LEARN ABOUT DEBIAN
vbrfix
VBRFIX(1) User Commands VBRFIX(1)
NAME
vbrfix - fix erroneous VBR MP3 files
SYNOPSIS
vbrfix -flag1 -flag2 -flagn in.mp3 out.mp3
DESCRIPTION
In an average song there are points that require high quality and points that require low quality (i.e., silence). Instead of having the
whole file at 160kbps (CBR - Constant Bit Rate), we can use VBR - Variable Bit rate. This allows us to have say 96Kbps at points not
requiring high quality and 192kbps when we need it: resulting in an overall smaller but higher quality MP3.
However, the problem is that many MP3 programs estimate the time of a MP3 based on the first bitrate they find and the filesize. With VBR
you can get fairly random times; as most songs start with silence you usually get the song length being shown as much longer than it should
be. Also when you jump through the file in VBR: 50% through the file is not 50% through the song.
A VBR null frame is placed at the beginning of the file to tell the MP3 player information about the song length and indexing through the
song. Some poor encoders don't produce this null frame or do so incorrectly - this is what vbrfix attempts to fix. Vbrfix can also fix
other problems with MP3s as it deletes all non-MP3 content (other than tags you state you want to keep).
It can also help when merging two VBR MP3s together with a merging tool and then needing a newly calculated VBR null frame.
-ri1 removeId3v1 Tag
-ri2 removeId3v2 Tag
-skiplame if a tag was made by LAME don't fix it
-always always write a new file even if not VBR
-makevbr make it VBR (you need -always also)
-log write a log file
-lameinfo keep the lame info
SEE ALSO
lame (1)
VBRFIX Command Line Version May 2010 VBRFIX(1)