I am using JCodec for android for encoding an mp4 video starting from a set of images. It works and I obtain an mp4 file. Now, I would like to add an audio trace. Unfortunately, JCodec does not support audio encoding. So, somebody suggest to solve this problem as follows:
"Jcodec doesn't have the capability to encode audio (AAC) so you can encode your audio elsewhere and then add it to you mp4 file."
Any advice on how to "add" the mp3 file to the mp4 file?
Related
We're trying to upload playable audio files from PowerApps mic to SharePoint Online list.
I have used the following line:
Patch(sharepointlistname, ForAll(Gallery1.AllItems,{Title:Title, VoiceMessage:Audio});
The above returns the following results:
(from Android and iPhone, .aac and .caf links (respectively) to SharePoint List):
data/bb788abd-7848-449f-810b-2bd6368dcb19.aac
or
temp/recording_8BA1187E-158A-469E-9994-F644C6F619D8-1610-000001A0FBF5F1F0.caf
It seems impossible to convert these .aac and .caf to .wav or any playable file.
Can someone guide me on this, or maybe let me know where the actual audio files are being saved to from powerapps? The .aac or .caf links are most likely references to a specific location on a local database that is created by PowerApps. Unfortunately, I have not found any information.
aac files and caf files are audio files. They are not just your regular and familiar wav or mp3 files.
Both formats can be played by Quicktime.
You can find a list of all the programs that can play those formats here:
http://extension.nirsoft.net/caf
http://extension.nirsoft.net/aac
I am able to convert the .amr file to the .wav file by adding the required header info to the newly created file i.e. example.wav file, but unable to convert the .flac file to .wav file properly however I get the .wav file which plays for the same time for which it was recorded but plays the noise sound as bad Channel signal on Radio instead of recorded voice. Please help me to fix this issue. Thanks
Both the files have been written data in different format so only copying the headers is not the solution, you will have to do proper decoding from flac to pcm and then will have to add headers and store the bytes from pcm to wav file.
I am trying to use MediaCodec and MediaMux to generate mp4 file. The code I am using is here.
I get some mp4 file. However, I can't play it with my player, which is just a normal software.
Does anyone has any idea? What should I do next?
I had a similar issue - in my case I simply wasn't calling muxer.stop() and ended up with a large unplayable file.
I am trying to apply new audio pitch for my video file.
I want to replace audio of my existing video by android code. Is it possible in android. can any one help me to do this
Is there any Android library support this facility to change audio for video file?
Any Help is appreciated...!!!
Thanks in Advance
This is not the exact solution but you can try it:
When you play the video file set its volume to zero.
At the same time use the service in which you can play any audio you want.
As service runs at background it has no effect on your video streaming.
When your video end,end your service.
And remember to set volume of your audio file.
You can change video pitch easily by following these steps :-
Add this library in your android project : https://gitlab.com/soundtouch/soundtouch.
follow this link for integrate this library process : https://stackoverflow.com/a/52425255/7899427.
After successfully integrate this library first of all extract audio file in WAV audio format. You can use ffmpeg library for do this.
Than using the soundtouch library you can change the audio file pitch and tempo rate and export new audio file in WAV format.
After complete these steps merge that converted audio file with video file.
Now will get the converted audio file with same video file.
Happy coding.
I want to play the flv files in Android. So what I thought is to convert the flv file to mp4 or 3gp(for which there is a decoder in Android). OpenCore can be used to convert. I have looked into opencore code, there is a class in opencore "/android/external/opencore/fileformats/mp4/composer" to create the mp4 file. It has apis like
AddTrack
AddSampleToTrack
I should give the input as frames, but in Flv I will get the Sorenson Video and Mp3 audio frame(after doing some trivial string operations to remove the headers). Can I use these directly as input to above apis or is there any good way to convert flv to mp4? And also I have looked into "/android/external/opencore/nodes/pvmp4ffcomposernode" but it reads from ports not able to know how to send input to this class.
Let me know your thoughts.
I have solved using ffmpeg.
I have ported ffmpeg and libfaac to Android. It works great.