File: quelcom.html

package info (click to toggle)
quelcom 0.4.0-12
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 1,068 kB
  • ctags: 542
  • sloc: cpp: 3,899; makefile: 193; sh: 15
file content (1181 lines) | stat: -rw-r--r-- 55,189 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
<ul>
<li><a href="#license">license</a>: :			what you can do with quelcom

<p>
</p>
<li><a href="#introduction">introduction</a>: :                introductory information.

<li><a href="#installation">installation</a>: :		installation instructions

<li><a href="#wav%20tools">wav tools</a>: :			tools to manipulate wav files

<li><a href="#mp3%20tools">mp3 tools</a>: :			tools to manipulate mp3 files

<p>
</p>
<li><a href="#cut%20points">cut points</a>: :                  how to specify points in files

<li><a href="#specifying%20time">specifying time</a>: :             how to specify time in arguments
</ul>

<p><hr>[ Next:<a rel=next href="#introduction">introduction</a>
 | Previous:<a rel=previous href="#Top">Top</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="license">GNU GENERAL PUBLIC LICENSE</a></h1>

<p align=center>Version 2, June 1991</p>
<pre>Copyright &copy; 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA

Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
</pre>

<h2>Preamble</h2>


<p>The licenses for most software are designed to take away your
freedom to share and change it.  By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users.  This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it.  (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.)  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

  To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have.  You must make sure that they, too, receive or can get the
source code.  And you must show them these terms so they know their
rights.

  We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

  Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software.  If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

  Finally, any free program is threatened constantly by software
patents.  We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary.  To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

  The precise terms and conditions for copying, distribution and
modification follow.
<ol type=1 start=1>
</p><li>This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License.  The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language.  (Hereinafter, translation is included without limitation in
the term "modification".)  Each licensee is addressed as "you".

<p>Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope.  The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program). 
Whether that is true depends on what the Program does.

</p><li>You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

<p>You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

</p><li>You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

<ol type=a start=1>
<li>You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.

<li>You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.

<li>If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License.  (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
</ol>

<p>These requirements apply to the modified work as a whole.  If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works.  But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

<p>Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

<p>In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

</p><li>You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

<ol type=a start=1>
<li>Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,

<li>Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,

<li>Accompany it with the information you received as to the offer
to distribute corresponding source code.  (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
</ol>

<p>The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

<p>If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

</p><li>You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License.  Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License. 
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

<li>You are not required to accept this License, since you have not
signed it.  However, nothing else grants you permission to modify or
distribute the Program or its derivative works.  These actions are
prohibited by law if you do not accept this License.  Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

<li>Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions.  You may not impose any further
restrictions on the recipients' exercise of the rights granted herein. 
You are not responsible for enforcing compliance by third parties to
this License.

<li>If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all.  For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

<p>If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

<p>It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices.  Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

<p>This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

</p><li>If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded.  In such case, this License incorporates
the limitation as if written in the body of this License.

<li>The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

<p>Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

</p><li>If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission.  For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this.  Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

<li>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

<li>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
</ol>



<h2>How to Apply These Terms to Your New Programs</h2>


<p>If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<pre><var>one line to give the program's name and an idea of what it does.</var>
Copyright (C) 19<var>yy</var>  <var>name of author</var>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
</pre>

Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
<pre>Gnomovision version 69, Copyright (C) 19<var>yy</var> <var>name of author</var>
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'.  This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.
</pre>

The hypothetical commands <code>show w</code> and <code>show c</code> should show
the appropriate parts of the General Public License.  Of course, the
commands you use may be called something other than <code>show w</code> and
<code>show c</code>; they could even be mouse-clicks or menu items--whatever
suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary.  Here is a sample; alter the names:
<pre>Yoyodyne, Inc., hereby disclaims all copyright
interest in the program `Gnomovision'
(which makes passes at compilers) written
by James Hacker.

<var>signature of Ty Coon</var>, 1 April 1989
Ty Coon, President of Vice
</pre>

This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
Public License instead of this License.

<p><hr>[ Next:<a rel=next href="#installation">installation</a>
 | Previous:<a rel=previous href="#license">license</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="introduction"><a name="TOC_0">introduction</a></a></h1>

<p><code>quelcom tools</code> is a set of command line tools to manipulate <code>.wav</code> and <code>.mp3</code> files.

<p>with these tools you can do a set of operations (get info, join, cut, delete fragments, detect silence, check, fade, ...) on maybe the most popular sound file formats (wave and mpeg layer 3) without the need of a grafical interface (xwindow) nor these or those grafical libraries.

<p>since they are build as command line apps, they can be easily included in scripts to do automatically some job.

<p>the <code>quelcom tools</code> package is written by <a href="mailto:dmanye@etse.urv.es">david many&eacute;</a> and you may find the package sources in <a href="http://www.etse.urv.es/~dmanye/quelcom/quelcom.html">http://www.etse.urv.es/~dmanye/quelcom/quelcom.html</a>.

<p><hr>[ Next:<a rel=next href="#requirements">requirements</a>
 | Previous:<a rel=previous href="#introduction">introduction</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="installation"><a name="TOC_1">installation</a></a></h1>

<ul>
<li><a href="#requirements">requirements</a>: :

<li><a href="#configuring%20building%20and%20installing">configuring building and installing</a>: :

<li><a href="#problems">problems</a>: :
</ul>

<p><hr>[ Next:<a rel=next href="#configuring%20building%20and%20installing">configuring building and installing</a>
 | Previous:<a rel=previous href="#installation">installation</a>
 | Up:<a rel=up href="#installation">installation</a>
 ]<p>

<h2><a name="requirements"><a name="TOC_2">requirements</a></a></h2>

<p>the <code>quelcom tools</code> package is being developed on an old intel p133 with suse linux 6.3. other configurations may work also.

<p>a c++ compiler is needed. currently are used gcc-2.95.2 and egcs-2.91.66. you can get the compiler name and version issuing the command <code>gcc&nbsp;--version</code>.

<p>and of course, you also need que <code>quelcom tools</code> package. you may find it at http://www.etse.urv.es/~dmanye/quelcom/quelcom.html. using the latest available version is recommended.

<p><hr>[ Next:<a rel=next href="#problems">problems</a>
 | Previous:<a rel=previous href="#requirements">requirements</a>
 | Up:<a rel=up href="#installation">installation</a>
 ]<p>

<h2><a name="configuring%20building%20and%20installing"><a name="TOC_3">configuring and building</a></a></h2>

<ol type=1 start=1>

</p><li>unpack the package with the command <code>tar&nbsp;xzf&nbsp;quelcom-0.4.0.tar.gz</code>. this creates a directory named <code>quelcom-0.4.0</code> and expands there all the files.

<li>get into the directory with <code>cd&nbsp;quelcom-0.4.0</code>

<li>if you want, you can take a look at the makefiles. then type <code>make</code> to build the sources. some compiler messages may appear, but it should compile successfully.

<li>once the package is successfully build, you can proceed to install it with <code>make install</code>.

<p>by default, the executables are installed under <code>/usr/local/bin</code>, the libraries under <code>/usr/local/lib</code>, the translation <code>.mo</code> files under <code>/usr/local/share/locale</code> and the info manual file under <code>/usr/local/info</code>.

</ol>

<p>to activate the automatic translation to catalan or to spanish (the only languages supported at this moment), it should be enough (if there haven't been no problem until now), setting the environment variable <code>LANG</code> this way (with <code>bash</code> shell): <code>export LANG=ca</code> or <code>export LANG=es</code> respectively. otherwise, the messages will appear in english.

<p><hr>[ Next:<a rel=next href="#wav%20tools">wav tools</a>
 | Previous:<a rel=previous href="#configuring%20building%20and%20installing">configuring building and installing</a>
 | Up:<a rel=up href="#installation">installation</a>
 ]<p>

<h2><a name="problems"><a name="TOC_4">problems</a></a></h2>

<p>if you have problems configuring or building the package, or if you find a bug in any of the tools, please update to the latest release. if the problem remains, please send electronic mail to <code>dmanye@etse.urv.es</code> including the version number and a detailed description of the problem.

<p><hr>[ Next:<a rel=next href="#qwavcut">qwavcut</a>
 | Previous:<a rel=previous href="#problems">problems</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="wav%20tools"><a name="TOC_5">wav tools</a></a></h1>

<p>tests has been done only with 44100 Hz 16 bit stereo files, though it may work with mono/stereo 8/16 bits files.

<p>the tools to handle wav files are the following:

<ul>
<li><a href="#qwavcut">qwavcut</a>: :            extract and/or delete parts of a wav file.

<li><a href="#qwavfade">qwavfade</a>: :           fade in/out wav files.

<li><a href="#qwavheaderdump">qwavheaderdump</a>: :     dump (and fix) wav headers.

<li><a href="#qwavinfo">qwavinfo</a>: :           show info from wav files.

<li><a href="#qwavjoin">qwavjoin</a>: :           join multiple wav files in one.

<li><a href="#qwavsilence">qwavsilence</a>: :        detect and shrink silence sequences in wav files. 
</ul>

<p><hr>[ Next:<a rel=next href="#qwavfade">qwavfade</a>
 | Previous:<a rel=previous href="#wav%20tools">wav tools</a>
 | Up:<a rel=up href="#wav%20tools">wav tools</a>
 ]<p>

<h2><a name="qwavcut"><a name="TOC_6">qwavcut</a></a></h2>

<p><code>qwavcut</code> extracts and/or deletes parts of a wav file

<h3><a name="TOC_7">synopsis</a></h3>

<p><code>qwavcut <var>option</var><small>...</small> <var>file</var></code>

<h3><a name="TOC_8">description</a></h3>

<p><code>qwavcut</code> allows to extract and/or delete a fragment of a wav file. some parameters must be supplied in order to define the start/size/end cut points and what to do then: either the fragment must be copied to another file or erased from the file (or both)

<h3><a name="TOC_9">general options</a></h3>

<dl>
<dt><code>-d</code>
<dt><code>--delete</code>
<dd>deletes the fragment from the file. if option <code>--delete</code> is used, deletion is always done after fragment extraction. 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-o <var>outfile</var></code>
<dt><code>--output=<var>outfile</var></code>
<dd><var>outfile</var> is the name of the file where all the samples in the given fragment will be copied. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<h3><a name="TOC_10">cut options</a></h3>

<p>cut options are used to specify where the fragment begins and ends. there are two ways to do it: with time slices (easier) and with cut points (more complex but also more powerful). cut options are mandatory (which way is used is matter of your choice).

<p>if time slices are used, cut points options are automatically ignored.

<h4><a name="TOC_11">cut with time slices</a></h4>

<p>there is only one option:

<dl>
<dt><code>-S <var>timeslice</var></code>
<dt><code>--slice <var>timeslice</var></code>
<dd><var>timeslice</var> (see <a href="#specifying%20time">specifying time</a>) specifies, in terms of time, where the cut begins and ends. 
</dl>

<h4><a name="TOC_12">cut with cut points</a></h4>

<p>there are several options with cut points. cut points are used to specify at which sample the fragment begins (<code>--begin</code> and <code>--Begin</code>), ends (<code>--end</code> and <code>--End</code>), or which size it has (<code>--size</code>). at least, one cut option must be specified (non specified options take its default values). neither the options <code>--begin</code> and <code>--Begin</code>, and the options <code>--end</code> and <code>--End</code> can be used together; also, a begin, end and size option cannot be used at the same time.

<p>by default, the fragment begins at the first sample and ends at the last sample; there's no default value for size.

<dl>

<br><dt><code>-b <var>cutpoint</var></code>
<dt><code>--set-begin-from-eof=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the first sample of the file that belongs to the cut counting from the end of the file.

<br><dt><code>-B <var>cutpoint</var></code>
<dt><code>--set-begin=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the first sample of the file that belongs to the cut counting from the beginning of the file.

<br><dt><code>-e <var>cutpoint</var></code>
<dt><code>--set-end-from-eof=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the last sample of the file that belongs to the cut counting from the end of the file.

<br><dt><code>-E <var>cutpoint</var></code>
<dt><code>--set-end=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the last sample of the file that belongs to the cut counting from the beginning of the file.

<br><dt><code>-s <var>cutpoint</var></code>
<dt><code>--size=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the number of samples contained in the cut. 
</dl>

<h3><a name="TOC_13">examples</a></h3>

<ol type=1 start=1>

</p><li>to get the last ten seconds of a file
<pre>qwavcut -b 10s -o outfile.wav infile.wav
</pre>

<li>four different ways to get the first minute of a file:
<pre>qwavcut -S -1:0 -o outfile.wav infile.wav
qwavcut -S -60 -o outfile.wav infile.wav
qwavcut -E 1m -o outfile.wav infile.wav
qwavcut -s 1m -o outfile.wav infile.wav
</pre>

<li>four ways of getting the second quarter of a file:
<pre>qwavcut -S 15:0-30:0 -o outfile.wav infile.wav
qwavcut -B 15m -E 30m -o outfile.wav infile.wav
qwavcut -s 15m -E 30m -o outfile.wav infile.wav
qwavcut -B 15m -s 15m -o outfile.wav infile.wav
</pre>

</ol>

<p><hr>[ Next:<a rel=next href="#qwavheaderdump">qwavheaderdump</a>
 | Previous:<a rel=previous href="#qwavcut">qwavcut</a>
 | Up:<a rel=up href="#wav%20tools">wav tools</a>
 ]<p>

<h2><a name="qwavfade"><a name="TOC_14">qwavfade</a></a></h2>

<p><code>qwavfade</code> fade in/out wav files

<h3><a name="TOC_15">synopsis</a></h3>

<p><code>qwavfade <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_16">description</a></h3>

<p><code>qwavfade</code> modifies a wav file applying on it a fade in or a fade out or both.

<p>a fade consists in modifying progressively the level of the wav as if you were slowly increasing or decreasing the volume. a fade in consists in increasing the volume starting from a low level at the beginning of the wav. a fade out consists in decreasing the volume to a low level at the end of the wav.

<h3><a name="TOC_17">option list</a></h3>

<dl>
<dt><code>-d <var>cutpoint</var></code>
<dt><code>--duration=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the duration of the fade. the default value is five seconds. this option overrides the <code>--length</code> option explained below. 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-i</code>
<dt><code>--in</code>
<dd>just fade in. don't fade out. by default, fade in and fade out. 
<br><dt><code>-l <var>time</var></code>
<dt><code>--length=<var>time</var></code>
<dd><var>time</var> (see <a href="#specifying%20time">specifying time</a>) specifies the length(=duration) of the fade. this option is quite similar to the <code>--duration</code> option above. it's easier to use though not as powerful than the previous one. the default value is five seconds. this option overrides <code>--duration</code> option explained above. 
<br><dt><code>-o</code>
<dt><code>--out</code>
<dd>just fade out. don't fade in. by default, fade in and fade out. 
<br><dt><code>-t</code>
<dt><code>--test</code>
<dd>this option can be used to create and fade test files instead of modifying the original file. a test file will be created for each type of selected fade (in or out). the name of the test file will be <code>fadein.<var>file</var></code> or <code>fadeout.<var>file</var></code>. the duration of the test files is the fade duration plus five seconds. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show more detailed info. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<h3><a name="TOC_18">example</a></h3>

<p>suppose you want to fade in and out the fantastic song <code>live.in.concert.wav</code> using a fade duration of 3.5 seconds:

<p>first we are going to test:
<pre>qwavfade --test --length 3.5 live.in.concert.wav
</pre>

<p>hear the test fades:
<pre>my-wav-player fadein.live.in.concert.wav fadeout.live.in.concert.wav
</pre>

<p>if you want to try with another duration, jump to the first step and change the <code>length</code>(or <code>--duration</code>) argument.

<p>if you're happy with the tests (omit <code>--test</code>):
<pre>qwavfade --length 3.5 live.in.concert.wav
</pre>

<h3><a name="TOC_19">notes</a></h3>

<p><code>qwavfade</code> doesn't allow both types of fades (in and out) to overlap. if you want to fade in and out a wav file, and the two regions to fade overlap, then probably you made a mistake (maybe you selected a too large fade). in any case, you'll have to fade separately.

<p><hr>[ Next:<a rel=next href="#qwavinfo">qwavinfo</a>
 | Previous:<a rel=previous href="#qwavfade">qwavfade</a>
 | Up:<a rel=up href="#wav%20tools">wav tools</a>
 ]<p>

<h2><a name="qwavheaderdump"><a name="TOC_20">qwavheaderdump</a></a></h2>

<p><code>qwavheaderdump</code> dumps (and fixes) wav headers

<h3><a name="TOC_21">synopsis</a></h3>

<p><code>qwavheaderdump <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_22">description</a></h3>

<p><code>qwavheaderdump</code> reads a list of wav files and prints on standard output all its header values in text (no binary) form. also, it has ability to fix some of the headers in case they'd be incorrect.

<h3><a name="TOC_23">option list</a></h3>

<dl>
<dt><code>-F</code>
<dt><code>--fix</code>
<dd>correct the header if there's any incorrect value. not all the fields are recoverable. 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-q</code>
<dt><code>--quiet</code>
<dd>no output messages. don't show detected (and corrected) errors. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<p><hr>[ Next:<a rel=next href="#qwavjoin">qwavjoin</a>
 | Previous:<a rel=previous href="#qwavheaderdump">qwavheaderdump</a>
 | Up:<a rel=up href="#wav%20tools">wav tools</a>
 ]<p>

<h2><a name="qwavinfo"><a name="TOC_24">qwavinfo</a></a></h2>

<p><code>qwavinfo</code> show info from wav files.

<h3><a name="TOC_25">synopsis</a></h3>

<p><code>qwavinfo <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_26">description</a></h3>

<p><code>qwavinfo</code> reads a list of wav files and prints on standard output some of its parameters: sample rate, bits per sample, mono/stereo and duration. a duration summary is appended at the end of the list.

<h3><a name="TOC_27">option list</a></h3>

<dl>
<dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-s</code>
<dt><code>--summary-only</code>
<dd>show only the summary. do not show info from every file. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show also the number of bytes and samples. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<p><hr>[ Next:<a rel=next href="#qwavsilence">qwavsilence</a>
 | Previous:<a rel=previous href="#qwavinfo">qwavinfo</a>
 | Up:<a rel=up href="#wav%20tools">wav tools</a>
 ]<p>

<h2><a name="qwavjoin"><a name="TOC_28">qwavjoin</a></a></h2>

<p><code>qwavjoin</code> joins wav files

<h3><a name="TOC_29">synopsis</a></h3>

<p><code>qwavjoin <var>option</var><small>...</small> <var>file1</var> <var>file2</var><small>...</small></code>

<h3><a name="TOC_30">description</a></h3>

<p><code>qwavjoin</code> reads a list of wav files and joins them in the specified order in one wav file. the files must have the same parameters (i.e. sampling rate, bytes per sample, <small>...</small>) in order that the joining can be done.

<h3><a name="TOC_31">option list</a></h3>

<dl>
<dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-o <var>outfile</var></code>
<dt><code>--output=<var>outfile</var></code>
<dd><var>outfile</var> is the name of the file where all the samples will be copied. if this option is not used, the samples from the second to the last file of the list will be appended to <var>file1</var>. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show which operations are done. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<p><hr>[ Next:<a rel=next href="#mp3%20tools">mp3 tools</a>
 | Previous:<a rel=previous href="#qwavjoin">qwavjoin</a>
 | Up:<a rel=up href="#wav%20tools">wav tools</a>
 ]<p>

<h2><a name="qwavsilence"><a name="TOC_32">qwavsilence</a></a></h2>

<p><code>qwavsilence</code> detects and shrinks silence sequences in wav files

<h3><a name="TOC_33">synopsis</a></h3>

<p><code>qwavsilence <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_34">description</a></h3>

<p><code>qwavsilence</code> reads a list of wav files looking for silence sequences longer than a given value, possibly shrinking them.

<h3><a name="TOC_35">option list</a></h3>

<dl>
<dt><code>-d <var>cutpoint</var></code>
<dt><code>--duration=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the minimum duration of a silent sequence in a file to be reported. the default value is one second. this option overrides the option <code>--length</code> explained below. 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-l <var>time</var></code>
<dt><code>--length=<var>time</var></code>
<dd><var>time</var> (see <a href="#specifying%20time">specifying time</a>) specifies the minimum length(=duration) of a silent sequence in a file to be reported. this option is quite similar to the <code>--duration</code> option above. it's easier to use though not as powerful than the previous one. the default value is one second. this option overrides the <code>--duration</code> option explained above. 
<br><dt><code>-S</code>
<dt><code>--shrink</code>
<dd>when this option is set, all the silent sequences greater than the value of the <code>--duration</code> option will be shrinked down to <var>duration</var> and the file size truncated accordingly. 
<br><dt><code>-t <var>threshold</var></code>
<dt><code>--threshold=<var>threshold</var></code>
<dd><var>threshold</var> is a percentage value respect the maximum (absolute) sample value. samples whose value is under the given <var>threshold</var> are considered silent. for example, a value of 2 means that all samples with absolute value under the 2% will be treated as silent samples. the default value is 0. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show also sample information. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<p><hr>[ Next:<a rel=next href="#qmp3check">qmp3check</a>
 | Previous:<a rel=previous href="#qwavsilence">qwavsilence</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="mp3%20tools"><a name="TOC_36">mp3 tools</a></a></h1>

<p>tests have been done only with mpeg version 1 layer iii streams, though it may (or not) work with other versions or layers.

<p>the tools to handle mp3 files are the following:

<ul>
<li><a href="#qmp3check">qmp3check</a>: :             check and clean mp3 files.

<li><a href="#qmp3cut">qmp3cut</a>: : 		  extract and/or delete fragments from a mp3 file.

<li><a href="#qmp3info">qmp3info</a>: :              show info from mp3 files.

<li><a href="#qmp3join">qmp3join</a>: :              join multiple mp3 files in one.

<li><a href="#qmp3report">qmp3report</a>: :            generate simple reports for mp3 files and directories
</ul>

<p><hr>[ Next:<a rel=next href="#qmp3cut">qmp3cut</a>
 | Previous:<a rel=previous href="#mp3%20tools">mp3 tools</a>
 | Up:<a rel=up href="#mp3%20tools">mp3 tools</a>
 ]<p>

<h2><a name="qmp3check"><a name="TOC_37">qmp3check</a></a></h2>

<p><code>qmp3check</code> checks and cleans mp3 streams

<h3><a name="TOC_38">synopsis</a></h3>

<p><code>qmp3check <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_39">description</a></h3>

<p><code>qmp3check</code> reads mp3 streams looking for invalid frames or, simply, garbage. it can be used as a mp3 file checker but also as a mp3 file cleaner because it is able to strip garbage bits from the streams.

<h3><a name="TOC_40">option list</a></h3>

<dl>
<dt><code>-D</code>
<dt><code>--delete</code>
<dd>delete invalid frames and garbage. use with care
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-q</code>
<dt><code>--quiet</code>
<dd>no output messages
<br><dt><code>-T</code>
<dt><code>--delete-tag</code>
<dd>delete tag (if exists). option <code>--delete</code> must be set. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show more detailed info
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<p><hr>[ Next:<a rel=next href="#qmp3info">qmp3info</a>
 | Previous:<a rel=previous href="#qmp3check">qmp3check</a>
 | Up:<a rel=up href="#mp3%20tools">mp3 tools</a>
 ]<p>

<h2><a name="qmp3cut"><a name="TOC_41">qmp3cut</a></a></h2>

<p><code>qmp3cut</code> extracts and/or deletes parts of a mp3 file

<h3><a name="TOC_42">synopsis</a></h3>

<p><code>qmp3cut <var>option</var><small>...</small> <var>file</var></code>

<h3><a name="TOC_43">description</a></h3>

<p><code>qmp3cut</code> allows to extract and/or delete a fragment of a mp3 file. some parameters must be supplied in order to define the start/size/end cut points and what to do then: either the fragment must be copied to another file or erased from the file (or both)

<h3><a name="TOC_44">general options</a></h3>

<dl>
<dt><code>-d</code>
<dt><code>--delete</code>
<dd>deletes the fragment from the file. if option <code>--output</code> is used, deletion is always done after fragment extraction. 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-o <var>outfile</var></code>
<dt><code>--output=<var>outfile</var></code>
<dd><var>outfile</var> is the name of the file where all the frames in the given fragment will be copied. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>verbose
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<h3><a name="TOC_45">cut options</a></h3>

<p>cut options are used to specify where the fragment begins and ends. there are two ways to do it: with time slices (easier) and with cut points (more complex but also more powerful). cut options are mandatory (which way is used is matter of your choice).

<p>if time slices are used, cut points options are automatically ignored.

<h4><a name="TOC_46">cut with time slices</a></h4>

<p>there is only one option:

<dl>
<dt><code>-S <var>timeslice</var></code>
<dt><code>--slice <var>timeslice</var></code>
<dd><var>timeslice</var> (see <a href="#specifying%20time">specifying time</a>) specifies, in terms of time, where the cut begins and ends. 
</dl>

<h4><a name="TOC_47">cut with cut points</a></h4>

<p>there are several options with cut points. cut points are used to specify at which frame the fragment begins (<code>--begin</code> and <code>--Begin</code>), ends (<code>--end</code> and <code>--End</code>), or which size it has (<code>--size</code>). at least, one cut option must be specified (non specified options take its default values). neither the options <code>--begin</code> and <code>--Begin</code>, and the options <code>--end</code> and <code>--End</code> can be used together; also, a begin, end and size option cannot be used at the same time.

<p>by default, the fragment begins at the first frame and ends at the last frame; there's no default value for size.

<dl>

<br><dt><code>-b <var>cutpoint</var></code>
<dt><code>--set-begin-from-eof=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the first frame of the file that belongs to the cut counting from the end of the file.

<br><dt><code>-B <var>cutpoint</var></code>
<dt><code>--set-begin=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the first frame of the file that belongs to the cut counting from the beginning of the file.

<br><dt><code>-e <var>cutpoint</var></code>
<dt><code>--set-end-from-eof=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the last frame of the file that belongs to the cut counting from the end of the file.

<br><dt><code>-E <var>cutpoint</var></code>
<dt><code>--set-end=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the last frame of the file that belongs to the cut counting from the beginning of the file.

<br><dt><code>-s <var>cutpoint</var></code>
<dt><code>--size=<var>cutpoint</var></code>
<dd><var>cutpoint</var> (see <a href="#cut%20points">cut points</a>) specifies the number of frames contained in the cut. 
</dl>

<h3><a name="TOC_48">examples</a></h3>

<ol type=1 start=1>

</p><li>to get the last ten seconds of a file
<pre>qmp3cut -b 10s -o outfile.mp3 infile.mp3
</pre>

<li>four different ways to get the first minute of a file:
<pre>qmp3cut -S -1:0 -o outfile.mp3 infile.mp3
qmp3cut -S -60 -o outfile.mp3 infile.mp3
qmp3cut -E 1m -o outfile.mp3 infile.mp3
qmp3cut -s 1m -o outfile.mp3 infile.mp3
</pre>

<li>four ways of getting the second quarter of a file:
<pre>qmp3cut -S 15:0-30:0 -o outfile.mp3 infile.mp3
qmp3cut -B 15m -E 30m -o outfile.mp3 infile.mp3
qmp3cut -s 15m -E 30m -o outfile.mp3 infile.mp3
qmp3cut -B 15m -s 15m -o outfile.mp3 infile.mp3
</pre>

</ol>

<p><hr>[ Next:<a rel=next href="#qmp3join">qmp3join</a>
 | Previous:<a rel=previous href="#qmp3cut">qmp3cut</a>
 | Up:<a rel=up href="#mp3%20tools">mp3 tools</a>
 ]<p>

<h2><a name="qmp3info"><a name="TOC_49">qmp3info</a></a></h2>

<p><code>qmp3info</code> show info from mp3 files.

<h3><a name="TOC_50">synopsis</a></h3>

<p><code>qmp3info <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_51">description</a></h3>

<p><code>qmp3info</code> reads a list of mp3 files and prints on standard output some of its parameters: version, layer, sample rate, bit rate, duration and tag. a duration summary is appended at the end of the list.

<h3><a name="TOC_52">option list</a></h3>

<dl>
<dt><code>-c</code>
<dt><code>--check</code>
<dd>check the entire stream (slower but accurate). all the frames of the stream are read and the total duration is exactly computed. this option is automatically activated if the stream appears to be vbr (have different bit rate frames). 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-s</code>
<dt><code>--summary-only</code>
<dd>show only the summary. do not show info from every file. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show also the number of bytes and frames. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<h3><a name="TOC_53">bugs</a></h3>

<p>variable bit rate (vbr) streams are detected by reading the initial 5 frames in the stream. if their bit rate field differs, the <code>--check</code> option is activated automatically. 
if vbr is not detected, <code>qmp3info</code> reads only the first frame in the stream and calculates the duration supposing that (1) the entire stream is composed by valid frames and (2) all the frames have the same bit rate. this is a fast way to compute the duration of the stream, but it is not exact: there's an error of 0.3% aprox. if you want to be accurate, or <code>qmp3info</code> is unable to detect a vbr stream, use <code>--check</code>.

<p><hr>[ Next:<a rel=next href="#qmp3report">qmp3report</a>
 | Previous:<a rel=previous href="#qmp3info">qmp3info</a>
 | Up:<a rel=up href="#mp3%20tools">mp3 tools</a>
 ]<p>

<h2><a name="qmp3join"><a name="TOC_54">qmp3join</a></a></h2>

<p><code>qmp3join</code> joins mp3 files

<h3><a name="TOC_55">synopsis</a></h3>

<p><code>qmp3join <var>option</var><small>...</small> <var>file1</var> <var>file2</var><small>...</small></code>

<h3><a name="TOC_56">description</a></h3>

<p><code>qmp3join</code> reads a list of mp3 files and joins them in one mp3 file in the specified order. some conditions must be met for the parameters of each of the files (see the notes subsection below).

<h3><a name="TOC_57">option list</a></h3>

<dl>
<dt><code>-f</code>
<dt><code>--force</code>
<dd>force join bypassing bit rate checks. by default, to join two files they must be both vbr (have variable bit rate) or have the same bit rate. using this option you can skip this check. 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-o <var>outfile</var></code>
<dt><code>--output=<var>outfile</var></code>
<dd><var>outfile</var> is the name of the file where all the frames will be copied. if this option is not used, the frames from the second to the last file of the list will be appended to <var>file1</var>. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show which operations are done. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<h3><a name="TOC_58">notes</a></h3>

<p>both mp3 must have the same bit rate or (both) must have a variable bit rate. this restriction can be by-passed with the <code>--force</code> flag.

<p>before joining, all the streams are tested for validity. this is a time consuming operation. if the streams are not found clean, the join operation is aborted, so if you want to join <i>dirty</i> streams or simply qmp3join detects a clean stream as dirty, please report this as a bug and/or use <code>cat</code>.

<p>due to the mp3 file format characteristics, <code>qmp3join</code> can be viewed like a <i>better but restrictive</i> <code>cat</code> for mp3 files.

<p><hr>[ Next:<a rel=next href="#cut%20points">cut points</a>
 | Previous:<a rel=previous href="#qmp3join">qmp3join</a>
 | Up:<a rel=up href="#mp3%20tools">mp3 tools</a>
 ]<p>

<h2><a name="qmp3report"><a name="TOC_59">qmp3report</a></a></h2>

<p><code>qmp3report</code> reports mp3 files and directories

<h3><a name="TOC_60">synopsis</a></h3>

<p><code>qmp3report <var>option</var><small>...</small> <var>file</var><small>...</small></code>

<h3><a name="TOC_61">description</a></h3>

<p><code>qmp3report</code> reads mp3 files or directories containing mp3 files and gives information about them. <code>qmp3report</code> can output the reports with plain text or in html format. using the latter format, you can <i>navigate</i> your mp3 directories with a web browser.

<h3><a name="TOC_62">option list</a></h3>

<dl>
<dt><code>-a</code>
<dt><code>--all-files</code>
<dd>report all files, not just files with suffix <code>.mp3</code>. 
<br><dt><code>-A</code>
<dt><code>--show-all</code>
<dd>implies <code>--dirs</code>, <code>--files</code> and <code>--summary</code>. show report for files and directories and a summary report. 
<br><dt><code>-d</code>
<dt><code>--dirs</code>
<dd>show a report for every directory containing reported files/directories. note that if option <code>--all-files</code> is not set, only will be reported those directories containing mp3 files. 
<br><dt><code>-f</code>
<dt><code>--files</code>
<dd>show a report for every reportable file (see also <code>--all-files</code>). 
<br><dt><code>-h</code>
<dt><code>--help</code>
<dd>show a brief help and exit. 
<br><dt><code>-H</code>
<dt><code>--html</code>
<dd>output in html format (default is plain text). 
<br><dt><code>-r</code>
<dt><code>--recursive</code>
<dd>scan directories. 
<br><dt><code>-s</code>
<dt><code>--summary</code>
<dd>show a summary report. 
<br><dt><code>-S</code>
<dt><code>--split</code>
<dd>split report across visited directories. <code>qmp3report</code> leaves in each visited directory a file with the report for that directory, independently of the output format. the name of the report file is the name of the directory with extension <code>.txt</code> or <code>.html</code> depending on the selected output format. 
<br><dt><code>-v</code>
<dt><code>--verbose</code>
<dd>show more detailed info. 
<br><dt><code>-V</code>
<dt><code>--version</code>
<dd>show version and exit. 
</dl>

<h3><a name="TOC_63">bugs</a></h3>

<p>variable bit rate (vbr) streams are detected by reading the initial 5 frames in the stream. if their bit rate field differs, the entire stream is read to compute the duration time with accuracy (see <a href="#qmp3info">qmp3info</a>).

<p>if vbr is not detected, <code>qmp3report</code> reads only the first frame in the stream and calculates the duration supposing that (1) the entire stream is composed by valid frames and (2) all the frames have the same bit rate. this is a fast way to compute the duration of the stream, but it is not exact: there's an error of 0.3% aprox.

<p>the <i>htmlize</i> function, which converts file names in a suitable form for html format (ie. replacing blanks with '<i>%20</i>'), is not bulletproof.

<p><hr>[ Next:<a rel=next href="#specifying%20time">specifying time</a>
 | Previous:<a rel=previous href="#qmp3report">qmp3report</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="cut%20points"><a name="TOC_64">cut points</a></a></h1>

<p>cut points are used to specify point in a sound file. they can also be used to speciy a size or a time duration using the beginning of the file as start reference. a cut point has the following form:

<p><var>value</var>[<var>format</var>]

<p>in all cases, a positive integer <var>value</var> is required. the wav tools treat this number as a number of samples, whereas the mp3 tools treat this number as a number of frames. since most of the times is hard to specify a point (or size, or duration) in a file in terms of samples or frames, some modifiers are accepted. these modifiers consist in a single letter that must be written behind the number without leaving any blank.

<h2><a name="TOC_65">cut points modifiers</a></h2>

<p>these are the valid modifiers and how they modify the interpretation of <var>value</var>:

<dl>
<dt><code>j</code>
<dd>milliseconds
<br><dt><code>s</code>
<dd>seconds
<br><dt><code>m</code>
<dd>minutes
<br><dt><code>b</code>
<dd>bytes
<br><dt><code>k</code>
<dd>kbytes (1024 bytes)
<br><dt><code>M</code>
<dd>megabytes (1024 kbytes)
</dl>

<p>in either case, the given values will be rounded to an integer number of samples/frames.

<p><hr>[ Previous:<a rel=previous href="#cut%20points">cut points</a>
 | Up:<a rel=up href="#Top">Top</a>
 ]<p>

<h1><a name="specifying%20time"><a name="TOC_66">specifying time</a></a></h1>

<p>time specifiers are a easier (more <i>human</i>) way than cut options to specify points in a file.

<p>a time specifier has the following form:

<p>	[[<var>h</var>:]<var>m</var>:]<var>s</var>[.<var>ms</var>]

<p>where:

<dl>
<dt><code><var>h</var></code>
<dd>hours
<br><dt><code><var>m</var></code>
<dd>minutes
<br><dt><code><var>s</var></code>
<dd>seconds
<br><dt><code><var>ms</var></code>
<dd>milliseconds
</dl>

<p>as you can see, time specifiers are easier to use but less powerful than cut options (which can also specify a point in a file in terms of bytes or frames/samples).

<h2><a name="TOC_67">time slices</a></h2>

<p>time slices are composed by two time specifiers designing a range (slice) of time:

<p><var>begin</var>-<var>end</var>

<p>where <var>begin</var> and <var>end</var> are time specifiers. they can be not specified, meaning, respectively, the beginning and the end of the file.

</body></html>