how to create player using ffmpeg on android? - android

I have complied ffmpeg library for android
could any guide me how to use it for showing the video on the screen.

as far as I know ffmpeg is used for video conversion...
for showing a video use videoview or mediaplayer.

Related

Load internal subtitle with Codec: DVD Subtitles (spu) in Android MediaPlayer

I'm trying to build a media player from scratch to improve my skills in android, the current problem I'm facing is that I am unable to read the internal subtitles as MediaPlayer does not support the codec I'm trying to load.
I tried using FFmpeg but the application does not even build when I use the library. Is there an alternate way to integrate a library into my application to get MediaPlayer to read the internal subtitle?
I read a bit about vlc but I cannot figure out how to integrate it to my application.
Any help would be appreciated
I used this library to compile VLC which allowed me to get the subtitle encoding.
implementation 'org.videolan.android:libvlc-all:3.3.13'
to get the subtitle track you need to pass the file to the media player and get the subtitle using this method
mediaPlayer.getSpuTracks();

How to convert the format of the media source for exoplayer?

Is it possible to convert the format of the media source when playing a video with exoplayer? I thought that I could use FFMPEG to convert the format, but I do not really know how exoplayer works and the problem is that the media source is not a file, but a stream. It is avi format, which unfortunately is not supported by exoplayer, and I could not find any working player for android that has avi support.
I see there is a ffmpeg extension for exoplayer, but I do not know if that will solve my problem and I have no idea about NDK and compiling c++ for android and the instructions are very unclear. If someone could explain how to do it or give me a guide that would be nice. This is the link to the exoplayer extension:
ffmpeg extension

Audio loading library android

Which library is useful to load audio or video file from API and play to the application? I tried glide for the image. But no idea about audio or video. (I want to fetch the image and file name to the recycle view after click operation file will play to the next activity.) A short guideline with library name is very helpful.
Android has MediaPlayer to load and play Audio and Video from URL. you can setDataSource as URL.
refer this answer...
You have Two approach one of them is using official Library (Media Player Library for music and VideoView for video) and other approach is using custom library I suggest you to using ExoPlayer Library for playing music and video
you can use following link:
https://github.com/google/ExoPlayer

how to cut audio file and merge with video file in android?

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

How to merge an Audio and Video files in Android

I have a small video clip and an audio file. The problem is how to write code to merge them into a single file. i have never written code for multimedia applications for android and don't know if the merging is possible with android media framework. Is there any third party library to do that?
Can we right a merging code in Java and call it in Android?
Please guide me through this. Thanks
You can try INDE Media for Mobile, tutorials are here: https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials
It has a sample demonstating how to substitute audio track in mp4 video file by another audio track from another mp4 file. It's here: https://github.com/INDExOS/media-for-mobile/blob/master/Android/samples/effects/src/com/intel/inde/mp/effects/SubstituteAudioEffect.java
In sample app it's under Audio Effect:

Categories

Resources