Years have passed since the question and ffmpeg isn't really easy to add to a commercial software in terms of license. Testing on emulator, seems to work fine on android 8+ while on older generates a black video file.However, when testing on real device seems to work. filter(new void onProgress(double void onCompleted(double value) Search for jobs related to Add watermark ffmpeg or hire on the worlds largest freelancing marketplace with 21m+ jobs. New mp4Composer(sourcePath, destinationPath) Search for jobs related to Add watermark to video using ffmpeg or hire on the worlds largest freelancing marketplace with 20m+ jobs. This library generate an Mp4 movie using Android MediaCodec API and apply filter, scale, and rotate Mp4. Here is a great library which, from my testing does apply watermark to video and does it with progress callback making it a lot easier to show progress to the user and also uses the default android sdks. I got some negative votes for posting info as an answer so I'll edit the original question. How did this evolved? Newer versions of android are more capable on this with the default sdk? Should I switch to ffmpeg ? How stable and compatible is ffmpeg ? Am I risking compatibility issues with android 4.0+ devices ? Is there a way to use ffmpeg to acomplish this ? I am new to this domain and still doing research. On iOS I saw that there a way to take the original audio + original video + an image and add them in a container and then just encode the whole thing. Each decoded frame will be altered with the bitmap overlay in memory.I wonder if there is a way to do things like this: However this would take an enormous time to accomplish. From what I am thinking one way would be to save each frame as PNG, open it, add the bitmap overlay on it and then save it. So having almost 1 sec/frame is not acceptable. It to disk as a PNG are expensive (about half a second)" Keep pace with 30fps input, but the additional steps required to save GlReadPixels() takes about 8ms on the Nexus 5, easily fast enough to "Decoding the frame and copying it into a ByteBuffer with I've been looking to (Thanks and it says there: Is this possible to achieve using MediaMuxer ? Any info on the matter is gladly received Overlay this bitmap at the bottom of the movie on all frames in the background.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |