I want to create a video player in android but I want to use the 6 audio channels of the video as separate tracks to be used in further processing(google resonance to be precise) how can I do it and that too in real time ?
Related
I'm building a Flutter mobile application for Android. The User Should be able to add filters to the locally saved recorded audio file(.m4a) & should be able to play it after filters are applied. User Can apply filters like changing pitch, changing Voice, Mixing the audio by adding some background music. I don't find any library that supports these features. Anybody can suggest how to approach this ?
This can be achieved by using the Just Audio Library for Flutter
https://pub.dev/packages/just_audio.
Effects:.
This package offers different options to play with voice - Change Pitch, Equalizer, Loudness to add effects to the given local audio file / URL.
Background Music:.
To add background music, you can create another instance of a player & start playing some music of your choice while you are playing the main audio file.
I am striving to create a simple Android media player that can play multiple videos simultaneously on a single screen. So basically a single media player screen is divided into multiple parts, and each part plays a given video. Is it feasible to do it within current Android API? Or is there any existing Android sample/library or anything that can do that? If we need to use multiple media players glued together, we should make sure there is no bordering or edges as if it is whole a single media player. Of course a limited number of videos are expected to play.
A neat and ideal call of such player can be similar to Android's default mediaplayer and extends it given multiple media inputs, such as
MultiMediaPlayer mmp = new MultiMediaPlayer ();
mmp.add(video1,0,0,50,50);
mmp.add(video2, 51, 51, 100, 100);
...
It's possible, I am afraid there is no support natively from Android. But you have to instantiate multi players and take care of display window management.
I want to develop video merge application in android. I am able to merge two videos but if the video size is more the device gets hanged .So I want to get frames of input video2(around 15 sec.) and merge it to video1. Any one have an idea how to get the frames from video. Is there direct native method available for that to get frames?.
I'm creating an app which allows playing multiple YouTube videos in a playlist. Id like to reduce the start time for each video and also to allow playback which there is drop in connection.
Is it possible to preload videos via the API?
I am developing a karaoke app and i have been dealing with audio from android.I want an opinion on how can i save a single song from a voice recorded and another song playing in the background.
Thanks
You can try FFMPEG Library for Android, consider using android wrapper. There are several SO answers of help
Audio song mixer in android programmatically
How to overlay two audio files using ffmpeg
FFmpeg on Android
You may want to check amerge and amix ffmpeg filters based on your needs
SoundPool is a good option if requirements can be met just by playing two audio streams together.
SoundPool can also manage the number of audio streams being rendered
at once. When the SoundPool object is constructed, the maxStreams
parameter sets the maximum number of streams that can be played at a
time from this single SoundPool.
Also note Android - Lollipop version now supports multi-channel audio stream mixing
Multi-channel audio stream mixing means professional audio
applications can now mix up to eight channels including 5.1 and 7.1
channels.
Multi-channel support
If your hardware and driver supports multichannel audio via HDMI, you
can output the audio stream directly to the audio hardware.
Unfortunately, I don't think there's an "On device" way to combine two audio files into one. The best you can do is play both at the same time from what I've read.
See Sound Pool Documentation