I've quite a collection audio files, mostly flac. In Rythmbox there are a files with no tags filled or filled with describing names as Track 01. I can look for properties to see which file it is and tag it with Easytag. But that quite time consuming.
Is there a command line or a simple set of commands to find all flacs with an empty tag(artist,title,tracknumber,album) and tags which contains one of the words 'track' or 'unknown' (case insensitive).
The following commmands show the tags of flac and mp3 for example:
The output is comparable but not the same. Could they two be combined in one line? Some like find ... | sed ... ?
Here are example outputs:
Maybe there is already a tool for this, but I like to know how to do this on the command line or in a script. It would be very helpful for other scripts I want to write. I just started to discover the possibilities of bash. And I have a long way to go.
Last edited by radoulov; 12-20-2010 at 07:11 AM..
Reason: Added example outputs; radoulov: added code tags
Hi All,
Looking for an assistance on how to access the speakers of my machine and play audio files using C.
Any tutorials will be of great help.
Regards,
Sayantan. (1 Reply)
Hi, I would like to write a shell script that will:
-search the files of a specific user to find any audio files with a bandwidth iqual or greater than 192 kps
- on the results i should see the file name along with all the whole file route and each file's size
So I guess i should be using... (1 Reply)
I am having following folder structure.
/root/audios/pop
/root/audios/jazz
/root/audios/rock
Inside those pop, jazz, rock folders there are following files,
p1.ul, p2.ul, p3.ul, j1.ul, j2.ul, j3.ul, r1.ul, r2.ul, r3.ul
And I have a file named as "audio.txt" in the path /root/audios,... (11 Replies)
Hi All,
I have next to zero knowledge on what I am about to ask so I will just ask it in plain English :)
I am wondering how best to go about manipulating audio files server side. The manipulations required are join files one after the other, eg, audio1 + audio2 + audio3 + audio4 = audio5
... (0 Replies)
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)
Hi All , I have seen a lot of code samples which suggest how to remove the junk data from and XML , I need a code in unix which removes the junk characters as well as the valid characters those are not in XML tags , for example my XML is as follows :
<?xml version="1.0"... (6 Replies)
I have a lot number audio files in the MP3 proprietary format, I want to convert them to 'opus' the free and higher quality format, with keep metadata also.
My selection command-line programs are SoX (Sound eXchange) for convert MP3 files to 'AIFF' format in order to keep quality and metadata*... (1 Reply)
Discussion started by: temp-usr
1 Replies
LEARN ABOUT DEBIAN
audio::flac::header
Header(3pm) User Contributed Perl Documentation Header(3pm)NAME
Audio::FLAC::Header - interface to FLAC header metadata.
SYNOPSIS
use Audio::FLAC::Header;
my $flac = Audio::FLAC::Header->new("song.flac");
my $info = $flac->info();
foreach (keys %$info) {
print "$_: $info->{$_}
";
}
my $tags = $flac->tags();
foreach (keys %$tags) {
print "$_: $tags->{$_}
";
}
DESCRIPTION
This module returns a hash containing basic information about a FLAC file, a representation of the embedded cue sheet if one exists, as
well as tag information contained in the FLAC file's Vorbis tags. There is no complete list of tag keys for Vorbis tags, as they can be
defined by the user; the basic set of tags used for FLAC files include:
ALBUM
ARTIST
TITLE
DATE
GENRE
TRACKNUMBER
COMMENT
The information returned by Audio::FLAC::info is keyed by:
MINIMUMBLOCKSIZE
MAXIMUMBLOCKSIZE
MINIMUMFRAMESIZE
MAXIMUMFRAMESIZE
TOTALSAMPLES
SAMPLERATE
NUMCHANNELS
BITSPERSAMPLE
MD5CHECKSUM
Information stored in the main hash that relates to the file itself or is calculated from some of the information fields is keyed by:
trackLengthMinutes : minutes field of track length
trackLengthSeconds : seconds field of track length
trackLengthFrames : frames field of track length (base 75)
trackTotalLengthSeconds : total length of track in fractional seconds
bitRate : average bits per second of file
fileSize : file size, in bytes
CONSTRUCTORS
"new ($filename)"
Opens a FLAC file, ensuring that it exists and is actually an FLAC stream, then loads the information and comment fields.
INSTANCE METHODS
o info( [$key] )
Returns a hashref containing information about the FLAC file from the file's information header.
The optional parameter, key, allows you to retrieve a single value from the info hash. Returns "undef" if the key is not found.
o tags( [$key] )
Returns a hashref containing tag keys and values of the FLAC file from the file's Vorbis Comment header.
The optional parameter, key, allows you to retrieve a single value from the tag hash. Returns "undef" if the key is not found.
o cuesheet( )
Returns an arrayref which contains a textual representation of the cuesheet metada block. Each element in the array corresponds to one
line in a .cue file. If there is no cuesheet block in this FLAC file the array will be empty. The resulting cuesheet should match the
output of metaflac's --export-cuesheet-to option, with the exception of the FILE line, which includes the actual file name instead of
"dummy.wav".
o seektable( )
Returns the seektable. Currently disabled for performance.
o application( $appId )
Returns the application block for the passed id.
o picture( [$type ] )
Returns a hash containing data from a PICTURE block if found.
Defaults to type 3 - "Front Cover"
When the passed variable is 'all', an array of hashes containing picture data from all PICTURE blocks is returned. Allows for multiple
instances of the same picture type.
o set_separator( )
For multi-value ID3 tags, set the separator string. Defaults to '/'
o vendor_string( )
Returns the vendor string.
o set_vendor_string( $string )
Set the vendor string. Will be written on write()
o write( )
Writes the current contents of the tag hash to the FLAC file, given that there's enough space in the header to do so. If there's
insufficient space available (using pre-existing padding), the file will remain unchanged, and the function will return a zero value.
SEE ALSO
<http://flac.sourceforge.net/format.html>
AUTHORS
Dan Sully, <daniel@cpan.org>
COPYRIGHT
Pure perl code Copyright (c) 2003-2004, Erik Reckase.
Pure perl code Copyright (c) 2003-2007, Dan Sully & Slim Devices. Pure perl code Copyright (c) 2008-2009, Dan Sully
XS code Copyright (c) 2004-2007, Dan Sully & Slim Devices. XS code Copyright (c) 2008-2009, Dan Sully
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2009-08-20 Header(3pm)