Android: Demux MP4 into video and audio? - android

I need to demux an MP4 file into video and audio to do some editing on the audio. I don't want to use FFMPEG, I've already attempted to use it once and it went horribly. How would I go about demuxing? From google searches, it seems like there isn't even a way to do it. Nothing ever comes up. I was thinking of converting an MP4 into an MP3, editing that and then adding that audio onto the original MP4 using MP4Parser, how can I edit the MP3? Absolutely any help is appreciated, I have no idea where to go from here.

I think you will still find ffmpeg the easiest and best supported way to manipulate video.
There are good well supported wrappers that should address the issues you have seen - one example is:
https://github.com/WritingMinds/ffmpeg-android-java

Related

How to trim a video without using ffmpeg on Android?

I am building an application in which I need to trim videos. It is possible to do this using ffmpeg, but I can't use it because it uses the gpl license.
I tried using mediaCodec but can't use the codes I found.
How can i trim videos on android?
I had to develop trim functionality into my app a few months back and found that FFMPEG is very heavy and wasn't as accurate as MediaCodec.
None of the examples helped me but as I was developing in Kotlin I had to rewrite it anyway.
Here is the breakdown of how to use MediaCodec:
Pass the file to your mediacodec class
Extract the video from a file
Create your buffer size
Seek to where you want to file to be trimmed from or to
Mux your audio and video together
We tried to find a way to do the start and finish times together but we ended up just duplicating the clip first and passing both in with a start and and end time.
You'll need to post your code and show where you're having the issue with MediaCodec for people to help you.

How to convert recorded or existing video in audio file?

Application will open/record video from gallery/camera, after that application should automatically convert that video to audio file. I have searched a lot on google but i unable to get any solution for this. Can anyone help me on this?
There is one library that can do the trick which is called FFmpeg. you
can found it here http://ffmpeg.org/ .
The best way is you can use bambuster (http://bambuser.com/opensource) which is open source and provides you code for your FFmpeg android app. so, you can easily convert your video file.
FFMPEG is the best option for Audio capturing from Video.
Even i was stuck on this same year back. wanted to make app like Dubmash. but didn't find solution anywhere on stackoverflow. but luckily i found one project which did these type of functionality i extracted the part i wanted i.e getting audio from a video file.
here check my answer. i answered it to one question last year. please have a look.
well i dont know how good/bad it is in performance o anything. but main thing is it worked for me

Android: Read MP3/M4A Metadata Tags

I'm looking for a library that'll parse both mp3 and m4a metadata tags (basically I'd like to grab artist, song and duration information). I've scoured SO for answers and have only found solutions that work for mp3s or m4as, but not both (or solutions that're 2 or more years old that no longer work). I've read about reading the last 128 bytes of the file to parse the tags myself, but surely there has to be an easier way. I've tried several libraries including jaudiotagger, jid3lib, MyID3, Android's very own MediaMetadataRetriever, and the list goes on. MediaMetadataRetriever seems to have trouble reading mp3 files, however Play Music app doesn't seem to have any issues parsing the same mp3 files. Any ideas/suggestions would be greatly appreciated. Thanks in advance!
jaudiotagger does work for both, so what problem did yo actually have when you attempted to use jaudiotagger.
I ended up going with Android's MediaStore implementation, found here:
http://developer.android.com/reference/android/provider/MediaStore.html
It was the cleanest and easiest to work with. In addition, I was testing on a Samsung device which I later found out that Samsung devices are notorious for parsing issues with mp3 metadata.

videos editing in android, insert and remove frames from video

I've been working on this videos thing in android and I thought to make it more functional. I have a question that, is there any way we can insert or remove frames from some video, like edit videos the same way we edit images, give them effects and all. I think, I am clear. Any links, sample codes, hints or books would be useful to start with this.
thanks :)
Here are multiple things you can look for video editing.
The more efficient in FFMpeg android sample for processing video (so that effects on video applied and saved on device as new video with applied effects) FFmpeg android java
For run time effects, just to show the user effect on video while running in your app, can use Vitamio

Transforming images and mp3 files into a video file on android

I am thinking to start the development of a new project and I have some ideas in mind, but I am not sure how much is doable in android.
The steps of the app would be:
The user selects a set of images from Gallery
The user selects an audio file from external storage
I combine the images and the sound (each image is displayed for a timeframe) into a movie file that can be exported to YouTube
From my research I wasn't able to find any way to create the movie. All the answers contained links to android NDK and external codecs.
So my question is: which would be the easiest way of making this on android?
Okay, your idea is feasible. You need to have Ffmpeg compiled for android. First have a look for it at Stack link.Then decide yourselves as per need.
After you have Ffmpeg compiled for android, you can just search and extract/add audio as per your needs. To give a a start have a look at this and FFmpeg Docs Guide/Official Example.
To make video from images have a look at Ffmpeg official example. You can find plenty of these on google.
After having all these things on your hand, you are ready for your project. I would suggest to try and familiarize yourself for Ffmpeg on Windows/Linux as per your need first.
Hope this would help.
Cheers.:)

Categories

Resources