audio.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 04 Dec 2010 17:10:45 +0200
changeset 735 5c437e2d5fe1
parent 594 918cb17d91fb
child 899 7b4265c8d324
permissions -rw-r--r--
Fix Emacs settings.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
735
5c437e2d5fe1 Fix Emacs settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 594
diff changeset
     1
-*- mode: outline; coding: utf-8; fill-column: 80 -*-
246
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
* Suitable convertors?
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
  $ sudo apt-get install ffmpeg
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
or
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
  $ sudo apt-get install sox
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
* List of sox supported format.
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
See sox(1).
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
* List of ffmpeg supported format.
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
  $ ffmpeg -formats
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
* How convert amr to ogg/mp3?
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
  $
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
* How easy convert between mp3/wav/ogg?
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
  $ sox in.mp3 out.ogg
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
  $ sox in.ogg out.wav
56362e0a859d About audio.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
  ... etc
397
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    26
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    27
* How convert flac to mp3?
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    28
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    29
  $ flac -c -d $file.flac | lame -m j -q 0 -V 0 -s 44.1 - $file.mp3
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    30
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    31
* How convert wma to mp3?
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    32
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    33
  $ mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $file.wma
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    34
  $ lame -m s audiodump.wav -o "$file.mp3
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    35
  $ rm audiodump.wav
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    36
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    37
* How convert m4a to mp3?
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    38
469dbeffe9ec A lot how convert to mp3.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 246
diff changeset
    39
  $ faad -o - $file.m4a | lame -V 0 - $file.mp3
594
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    40
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    41
* How split mp3/ogg files?
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    42
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    43
Split mp3 and ogg files:
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    44
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    45
  $ mp3splt
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    46
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    47
  http://mp3splt.sourceforge.net/mp3splt_page/home.php
918cb17d91fb How split mp3/ogg files?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 397
diff changeset
    48
                home page