Actions

Converting 3ga to mp3: Difference between revisions

From Rabbi Blog

mNo edit summary
mNo edit summary
 
Line 4: Line 4:


* [http://ffmpeg.org/ FFMPEG] (Add it to your Windows path for ease of calling the .exe from anywhere
* [http://ffmpeg.org/ FFMPEG] (Add it to your Windows path for ease of calling the .exe from anywhere
* [http://lame.sourceforge.net/ LAME]


In order to get the file into a usable format I do these steps:
In order to get the file into a usable format I do these steps:
Line 19: Line 20:


<pre>
<pre>
c:\Program Files\Audacity 1.3 Beta (Unicode)\Plug-Ins\FFMPEG>ffmpeg.exe -b 256k
c:\Program Files\Audacity 1.3 Beta (Unicode)\Plug-Ins\FFMPEG>ffmpeg.exe -b 128k
-i "C:\Users\me\Downloads\Voice 002.3ga" "C:\Users\me\Downloads\Voice 002.mp
-i "C:\Users\me\Downloads\Voice 002.3ga" "C:\Users\me\Downloads\Voice 002.mp
3"
3"
FFmpeg version git-6b51f23, Copyright (c) 2000-2009 Fabrice Bellard, et al.
FFmpeg version git-6b51f23, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --cc=mingw32-gcc-4.2.4.exe --enable-gpl --enable-pthreads --ena
configuration: --cc=mingw32-gcc-4.2.4.exe --enable-gpl --enable-pthreads --ena
ble-avisynth --enable-libfaac --enable-libspeex --enable-libgsm --enable-libmp3l
ble-avisynth --enable-libfaac --enable-libspeex --enable-libgsm --enable-libmp3l
ame --disable-ffserver --disable-ffplay --enable-memalign-hack --enable-shared -
ame --disable-ffserver --disable-ffplay --enable-memalign-hack --enable-shared -
-extra-ldflags=-L/local/lib --extra-cflags=-I/local/include -fno-common
-extra-ldflags=-L/local/lib --extra-cflags=-I/local/include -fno-common
   libavutil    49.12. 0 / 49.12. 0
   libavutil    49.12. 0 / 49.12. 0
   libavcodec    52.10. 0 / 52.10. 0
   libavcodec    52.10. 0 / 52.10. 0
Line 32: Line 35:
   libavdevice  52. 1. 0 / 52. 1. 0
   libavdevice  52. 1. 0 / 52. 1. 0
   built on Jan  8 2009 12:50:21, gcc: 4.2.4 (TDM-1 for MinGW)
   built on Jan  8 2009 12:50:21, gcc: 4.2.4 (TDM-1 for MinGW)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\me\Downloads\Voice 002.3ga':
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\me\Downloads\Voice 002.3ga':


  Duration: 00:02:22.03, start: 0.000000, bitrate: 128 kb/s
Duration: 00:02:22.03, start: 0.000000, bitrate: 128 kb/s
    Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16
Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16
Output #0, mp3, to 'C:\Users\me\Downloads\Voice 002.mp3':
Output #0, mp3, to 'C:\Users\me\Downloads\Voice 002.mp3':
    Stream #0.0(eng): Audio: libmp3lame, 44100 Hz, mono, s16, 64 kb/s
Stream #0.0(eng): Audio: libmp3lame, 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
 
  Stream #0.0 -> #0.0
Stream mapping: Stream #0.0 -> #0.0
 
Press [q] to stop encoding
Press [q] to stop encoding
[libmp3lame @ 0x3cc0f0]lame: output buffer too small (buffer index: 8359, free b
 
ytes: 281)
[libmp3lame @ 0x3cc0f0]lame: output buffer too small (buffer index: 8359, free bytes: 281)
size=    1116kB time=142.84 bitrate=  64.0kbits/s
size=    1116kB time=142.84 bitrate=  64.0kbits/s
video:0kB audio:1116kB global headers:0kB muxing overhead 0.002800%
video:0kB audio:1116kB global headers:0kB muxing overhead 0.002800%

Latest revision as of 14:39, 2 December 2012

I tend to use the Samsung's default Voice Recorder app when recording tunes, however it saves in the .3ga format and is somewhat useless for directly sharing it with others.

Requirements:

  • FFMPEG (Add it to your Windows path for ease of calling the .exe from anywhere
  • LAME

In order to get the file into a usable format I do these steps:

  • Record the sound
  • Share it to my Google Drive
  • Retrieve the file on computer
  • Open a command window, go to the FFMPEG install directory and type the following:
    • ffmpeg.exe -b 256k -i "c:\path\to\3ga\file.3ga" "c:\path\to\savemp3\file.mp3"
  • The mp3 will be in the destination directory.

You can do more with FFMPEG however this gets to me where I can edit the file in Audacity and go from there with it.

Example:

c:\Program Files\Audacity 1.3 Beta (Unicode)\Plug-Ins\FFMPEG>ffmpeg.exe -b 128k
-i "C:\Users\me\Downloads\Voice 002.3ga" "C:\Users\me\Downloads\Voice 002.mp
3"

FFmpeg version git-6b51f23, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --cc=mingw32-gcc-4.2.4.exe --enable-gpl --enable-pthreads --ena
ble-avisynth --enable-libfaac --enable-libspeex --enable-libgsm --enable-libmp3l
ame --disable-ffserver --disable-ffplay --enable-memalign-hack --enable-shared -
-extra-ldflags=-L/local/lib --extra-cflags=-I/local/include -fno-common

  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52.10. 0 / 52.10. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Jan  8 2009 12:50:21, gcc: 4.2.4 (TDM-1 for MinGW)

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\me\Downloads\Voice 002.3ga':

Duration: 00:02:22.03, start: 0.000000, bitrate: 128 kb/s
Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16
Output #0, mp3, to 'C:\Users\me\Downloads\Voice 002.mp3':
Stream #0.0(eng): Audio: libmp3lame, 44100 Hz, mono, s16, 64 kb/s

Stream mapping: Stream #0.0 -> #0.0

Press [q] to stop encoding

[libmp3lame @ 0x3cc0f0]lame: output buffer too small (buffer index: 8359, free bytes: 281)
size=    1116kB time=142.84 bitrate=  64.0kbits/s
video:0kB audio:1116kB global headers:0kB muxing overhead 0.002800%