Android attaching .cpm to mp4 - java

in my android karaoke app I have a raw pcm data which is the voice of the singer and the mp4 file (music + the audio). Is there a way of attaching the .pcm to the mp4 as well ? so there will be video music and singer's voice ? even mp3 will be fine (just music and singer's voice)
thanks a lot

I believe what you need to do is open a second audio stream for the PCM data, and play it simultaneously with the mp4 file. This will likely require some thread programming. I've done this myself and am happy to offer help.

Related

Record a audio file from a midi keyboard and store it with android studio

for an exam project i'm programming a 1 octave playable midi keayboard on phone.
I managed, thank to things found here on SO, to make the keyboard work but i have no clue on what i can do to record what I'm playing.
I should be able to play a melody ( record it by pressing a button, i guess) and save it on a folder as a .mp3 file. Is that possible by not using the device microphone or is it indispensable?
at the end, i made it by recording a plain file with byte data where every byte is an object of tipe "record" that is called by the midi controller that plays the note, with it it's saved the duration of all the notes, so when you open the file 'recorded' by the midicontroller it pays the note you recorded with the same timing you played them first.
i can share code if anyone is interested.

Android Record Audio in screen

I use this library for the piano, but I need to record the sounds from the piano into an audio file, how do I do this? I read about MediaRecorder, but is there only a microphone recording, or have I not found something?

Play YouTube Audio to a Specific Audio Device with Java

I've been looking around for quite some time to find a simple solution to the problem I am having.
Using Java, I'm trying to find a simple way to play the audio from a given YouTube URL to a selected audio mixer.
Looking around I see a few approaches, but they all appear to be missing an important aspect of what I'm looking for in one way or another
For example, using JavaFX or the JWebBrowser (in the DJ Native Swing library) both do not allow changing the audio output mixer, and the JavaFX browser no longer plays Youtube videos anyway.
I'd love to use the Java Sound API, as that allows audio mixer selection, but I don't really want to have to download the video, convert to wav, then play it. Using Java Sound is ideal if there is someway to steam the YouTube video audio to this API.
If you have any relatively straightforward way to play audio from a streamed YouTube video to a selectable audio device, please let me know.

How to play video of mp4 Format in Java Swing using RTSP

I am using JAVA SWING to implement a video application which can handle MP4 and MJPEG video formats.
I can play MJPEG video format but can't play MP4 videos.
Do you have some advice that what changes i need to make in this code, so that MP4 videos can also be handled.video player in JAVA using RTSP
VLCJ and OpenCV both offer out of the box connection to RTSP streams. They can be displayed in JPanels live. OpenCV is easier but way overkill for image processing and VLCJ simply just creates a VLC player instance in a panel.
This question is old but I recently ran into the same problem and hope people find this helpful.

Is it possible in Android to record something played by MediaPlayer?

In my application I am doing live audio streaming using Android media player. I want to capture the sound stream played by MediaPlayer. Is there is way to record using Android MediaPlayer instead of MediaRecorder? Any suggestions?
While it is a non-trivial undertaking, you can write your own "MediaPlayer" that implements whatever streaming protocol you are using and writes the stream to a file instead of the speaker.

Categories

Resources