I want to Create video using Image and mp3 or m4a file.
I try to use ffmpeg library but that library still not working for me.
I’m also try to use Media-codec and MediaMuxer.
if you have any new library or code then please suggest me.
Thanks in advance.
Related
Please can anyone tell me the usages of ffmpeg file in android. Though I tried to browse but none of them satisfied me.
FFMPEG is library,it will used to decode and encode audio,video file , if you are streaming a video from your android application it will be used.
I want to cut audio and merge an audio file with video programmatically in android.
I don't know how to work with FFMPEG , can anyone tell me how to start with or another solution?
Any Help?
Use mp4parser library
library
https://github.com/sannies/mp4parser
test
https://github.com/vicmns/mp4parser-android-test
i have list of video files in my sdcard.when i click the selected video in gridview,i want to compress the selected video file in android.How to compress a video file in android.is there any sample code availavble?
I think the best solution for video compression is using ffmpeg library.
Here you can find a sample android app that used that library:
https://github.com/umeshbsa/ffmpeg-video-compresion-with-progress-android
another lovely library is silicompressor you can find that here:
https://github.com/Tourenathan-G5organisation/SiliCompressor
Video Compression can be done by MediaCodec (From JB) and FFMPEG. Please refer documents of FFMPEG for more information on compression.
Refer:
ffmpeg: compress video?
https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
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.
HI all,
I am working on playing audio from URI using ffmpeg shared library in android.
I configured android-ndk and added ffmpeg shared library to project and able to compile the project using cygwin.
In ffmpeg library i see ffmpeg.c file, i donot know how i can use this file to implement audio player in my activity.
Please help me on this issue.
Thank you in advance
First, Use ffmpeg to open the URI and read frames and decode to raw PCM data, you can take a look at ffplay.c about the decoding part.
Next, using the Android AudioTrack class to play the raw PCM data, there is a tutorial: fun with audiotrack
Good luck!