audio conversion 3gpp to mp3


/ Published in: Bash
Save to your folder(s)

example for 3gpp file aaptured on phone coverting to more generic format/codec by using 'ffmpeg'


Copy this code and paste it in your HTML
  1. $FFMPEG_HOME/bin/ffmpeg -i rec_1452.3gpp -acodec libmp3lame -ar 22050 audio_only_test.mp3
  2.  
  3. --stdout
  4.  
  5. ffmpeg version N-30956-g81ef892, Copyright (c) 2000-2011 the FFmpeg developers
  6. built on Jun 22 2011 17:37:00 with gcc 4.5.3
  7. ...
  8. libpostproc 51. 2. 0 / 51. 2. 0
  9. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rec_1452.3gpp':
  10. Metadata:
  11. major_brand : 3gp4
  12. minor_version : 0
  13. compatible_brands: isom3gp4
  14. Duration: 00:01:27.44, start: 0.000000, bitrate: 5 kb/s
  15. Stream #0.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 5 kb/s
  16. Incompatible sample format 'flt' for codec 'libmp3lame', auto-selecting format 's16'
  17. [mp3 @ 000000000025FF80] Unsupported sample rate.
  18. Output #0, mp3, to 'audio_only_test.mp3':
  19. Metadata:
  20. major_brand : 3gp4
  21. minor_version : 0
  22. compatible_brands: isom3gp4
  23. TSSE : Lavf53.4.0
  24. Stream #0.0(eng): Audio: libmp3lame, 22050 Hz, 1 channels, s16, 64 kb/s
  25. Stream mapping:
  26. Stream #0.0 -> #0.0
  27. Press [q] to stop, [?] for help
  28. Warning, using s16 intermediate sample format for resampling
  29. size= 684kB time=00:01:27.51 bitrate= 64.0kbits/s
  30. video:0kB audio:684kB global headers:0kB muxing overhead 0.017855%

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.