Converting mp4 to mp3 in Android.

550 views
Skip to first unread message

Christian Hofer

unread,
Sep 23, 2013, 2:27:34 AM9/23/13
to jav...@googlegroups.com
Hi,

I am trying to convert an mp4 video file to an mp3 file using opencv 0.6.
At first i tried using the ready build cpp jars but it said codec not found. (worked when using wav as output)

Now i tried rebuilding the ffmpeg and opencv jars using ubuntu 13.04 with the --enable-libmp3lame but get the error:

/../arm-linux-androideabi/bin/ld: warning: skipping incompatible /usr/local/lib/libmp3lame.so while searching for mp3lame
/../arm-linux-androideabi/bin/ld: error: cannot find -lmp3lame
/../arm-linux-androideabi/bin/ld: /tmp/ffconf.NcbWsGYs.o: in function main:ffconf.tDPk1dCK.c(.text.main+0x4): error: undefined reference to 'lame_set_VBR_quality'
collect2: ld returned 1 exit status
ERROR: libmp3lame >= 3.98.3 not found

I installed libmp3lame  version 3.99.5 from source.

I also tried copying in an libmp3lame.so i found on the internet and it did not throw the error. 
But when then trying to convert in android the error:

E/AndroidRuntime(18296): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libavcodec.so" needed by "libjniavcodec.so"; caused by could not load library "libavutil.so.52" needed by "libavcodec.so"; caused by library "libavutil.so.52" not found


Sorry i'm really new to this stuff. But i've been working on it for days and i'm really stuck now.

Thanks 

Chris

Samuel Audet

unread,
Sep 28, 2013, 10:11:04 PM9/28/13
to jav...@googlegroups.com
On 09/23/2013 03:27 PM, Christian Hofer wrote:
> ERROR: libmp3lame >= 3.98.3 not found
>
> I installed libmp3lame version 3.99.5 from source.

Well, you obviously didn't install it in a way that FFmpeg likes it.
Please read the `configure` file to understand how it wants it.

> I also tried copying in an libmp3lame.so i found on the internet and it did not throw the error.
> But when then trying to convert in android the error:

If you want to use binaries from someone else, you should ask that
person about it...

Samuel

Ivy Bruce

unread,
Oct 17, 2013, 2:14:29 AM10/17/13
to jav...@googlegroups.com
This software allows you to extract the sound from a MP4 multimedia file, and convert into an MP3 audio file, in order to store them on portable multimedia devices. Converting multiple MP4 video files to MP3 audio files at once, in batches.

Vyacheslav Petrukhin

unread,
Oct 19, 2014, 4:29:52 AM10/19/14
to jav...@googlegroups.com
Have you solved this problem?

понедельник, 23 сентября 2013 г., 10:27:34 UTC+4 пользователь Christian Hofer написал:

Samuel Audet

unread,
Oct 19, 2014, 4:45:28 AM10/19/14
to jav...@googlegroups.com
On 10/19/2014 05:29 PM, Vyacheslav Petrukhin wrote:
> Have you solved this problem?

Yes, the binaries of FFmpeg that come with JavaCV 0.9 are built with
libmp3lame so we can now encode in MP3.

Samuel

Reply all
Reply to author
Forward
0 new messages