1192
|
1 |
.. -*- coding: utf-8; -*-
|
|
2 |
|
|
3 |
========
|
|
4 |
Audio.
|
|
5 |
========
|
|
6 |
.. contents::
|
|
7 |
|
|
8 |
Sound in Debian.
|
|
9 |
================
|
|
10 |
|
|
11 |
* http://wiki.debian.org/ALSA
|
|
12 |
* http://wiki.debian.org/SoundFAQ
|
|
13 |
|
|
14 |
Suitable convertors?
|
|
15 |
====================
|
|
16 |
::
|
|
17 |
|
|
18 |
$ sudo apt-get install ffmpeg
|
|
19 |
|
|
20 |
or::
|
|
21 |
|
|
22 |
$ sudo apt-get install sox
|
|
23 |
|
|
24 |
List of sox supported format.
|
|
25 |
=============================
|
|
26 |
|
|
27 |
See sox(1).
|
|
28 |
|
|
29 |
List of ffmpeg supported format.
|
|
30 |
================================
|
|
31 |
::
|
|
32 |
|
|
33 |
$ ffmpeg -formats
|
|
34 |
|
|
35 |
How convert amr to ogg/mp3?
|
|
36 |
===========================
|
|
37 |
|
|
38 |
TODO
|
|
39 |
|
|
40 |
How easy convert between mp3/wav/ogg?
|
|
41 |
=====================================
|
|
42 |
::
|
|
43 |
|
|
44 |
$ sox in.mp3 out.ogg
|
|
45 |
$ sox in.ogg out.wav
|
|
46 |
... etc
|
|
47 |
|
|
48 |
How convert flac to mp3?
|
|
49 |
========================
|
|
50 |
::
|
|
51 |
|
|
52 |
$ flac -c -d $file.flac | lame -m j -q 0 -V 0 -s 44.1 - $file.mp3
|
|
53 |
|
|
54 |
How convert wma to mp3?
|
|
55 |
=======================
|
|
56 |
::
|
|
57 |
|
|
58 |
$ mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $file.wma
|
|
59 |
$ lame -m s audiodump.wav -o "$file.mp3
|
|
60 |
$ rm audiodump.wav
|
|
61 |
|
|
62 |
How convert m4a to mp3?
|
|
63 |
=======================
|
|
64 |
::
|
|
65 |
|
|
66 |
$ faad -o - $file.m4a | lame -V 0 - $file.mp3
|
|
67 |
|
|
68 |
How split mp3/ogg files?
|
|
69 |
========================
|
|
70 |
|
|
71 |
Split mp3 and ogg files::
|
|
72 |
|
|
73 |
$ mp3splt
|
|
74 |
|
|
75 |
See::
|
|
76 |
|
|
77 |
http://mp3splt.sourceforge.net/mp3splt_page/home.php
|
|
78 |
home page
|