Unable to convert .mp3 to .m4a using ffmpeg -
i aware legal constraints in using libfaac
testing purpose.
i have compiled ffmpeg
faac
enabled. when tried convert .mp3 .m4a here error getting. please provide resolution problem. tried on 2 different sources of .mp3, still getting same error.
[user@ip-10-161-13-26 ~]$ ffmpeg -i kalimba.mp3 -c:a libfaac kalimba.m4a ffmpeg version 0.11.1 copyright (c) 2000-2012 ffmpeg developers built on may 4 2013 09:33:27 gcc 4.4.6 20120305 (red hat 4.4.6-4) configuration: --enable-libfaac --enable-nonfree --disable-yasm libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 [mp3 @ 0x2464680] header missing [mp3 @ 0x2463100] max_analyze_duration 5000000 reached @ 5015510 [mp3 @ 0x2463100] estimating duration bitrate, may inaccurate input #0, mp3, 'kalimba.mp3': metadata: publisher : ninja tune track : 1 album : ninja tuna artist : mr. scruff album_artist : mr. scruff title : kalimba genre : electronic composer : a. carthy , a. kingslow date : 2008 duration: 00:05:50.60, start: 0.000000, bitrate: 191 kb/s stream #0:0: audio: mp3, 44100 hz, stereo, s16, 192 kb/s stream #0:1: video: mjpeg, yuvj420p, 512x512, 90k tbr, 90k tbn, 90k tbc metadata: title : thumbnail comment : cover (front) output #0, ipod, 'kalimba.m4a': metadata: publisher : ninja tune track : 1 album : ninja tuna artist : mr. scruff album_artist : mr. scruff title : kalimba genre : electronic composer : a. carthy , a. kingslow date : 2008 stream #0:0: video: none, q=2-31, 128 kb/s, 90k tbn metadata: title : thumbnail comment : cover (front) stream #0:1: audio: none, 0 channels, 128 kb/s stream mapping: stream #0:1 -> #0:0 (mjpeg -> ?) stream #0:0 -> #0:1 (mp3 -> libfaac) encoder (codec none) not found output stream #0:0
mp3 file @ http://db.tt/htpebpfu
also while using faac independently weird error file.
freeware advanced audio coder faac 1.28 couldn't open input file sample.mp3
the problem input contains album artwork, ffmpeg
parses video.
stream #0:0: audio: mp3, 44100 hz, stereo, s16, 192 kb/s stream #0:1: video: mjpeg, yuvj420p, 512x512, 90k tbr, 90k tbn, 90k tbc
it tries convert video, doesn't find valid output codec mpeg-4 format (m4a name). because compiled ffmpeg
without libx264
, ffmpeg
needs in case, doesn't have native h.264 encoder.
anyway, need prevent trying convert artwork/video. add -vn
options:
ffmpeg -i kalimba.mp3 -c:a libfaac -vn kalimba.m4a
some tips:
- with faac should use
-q:a
option control vbr quality – values range 10 500, 100 default. - in ffmpeg, best quality aac encoder
libfdk_aac
, followedlibfaac
. don't know licensing here, it's worth try well. see aac encoding guide more info. - encoding
.aac
works because output format cannot contain video,ffmpeg
won't try convert video/artwork stream in first place.
Comments
Post a Comment