Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Strip Audio From Video

In my program, it gets MP4 video in, and I want it to output a MP3 (without any server-side stuff.) Since Android (and my app) needs to run on many different hardware configurations, this means I probably cannot use FFMPEG. I know this may be very battery and processing power intensive, especially for a mobile phone, but I need this option for my users. I cannot find any native libraries for Java that don't use FFMPEG.

like image 345
Isaac Waller Avatar asked Feb 28 '09 22:02

Isaac Waller


People also ask

Can you strip audio from a video?

Essentially, there are two ways to remove sound from a video: by muting it and by deleting the original audio track completely from the file. The former is the easiest and the fastest option if you just need to silence the video.

How do I extract audio from a video in my gallery?

On Android, you can use the free Video to MP3 Converter app to extract the audio from your video files. You have several file formats to choose from for your resulting file. Here's how you use the app: Open the app and tap Video to Audio.

How do I save just the audio from a video on my phone?

Download the Extract Audio from Video app from Google Play Store and launch it. It will show you all the video files saved on your phone. Select the file you want to extract the audio from and you will be redirected to the next page. Tap on the extract audio button and wait until the audio extracts.


1 Answers

I see little problem with FFMPEG, since apparently it runs on 11 architectures supported by Debian. Only architecture not supported is apparently m68k, others are old versions in ports to FreeBSD kernel, or Hurd kernel. And from what I know of Android, fact that it's based on ARM isn't going to change any time soon.

Of course, there could be some issues with Java wrappers around native code. Is that the issue? I'm not an Android nor a Java programmer, but I'm sure you can detect the platform and dynamically load appropriate native wrapper.

like image 117
Ivan Vučica Avatar answered Sep 21 '22 07:09

Ivan Vučica