android-ffmpeg

creating video from selected images using FFMPEG through command Line Android

*爱你&永不变心* 提交于 2021-02-08 04:52:12
问题 i am trying to make a video from selected images from command line using ffmpeg in android using this project as my source i m trying to make video this is the command i m trying to create video String[] ffmpegCommand = {ffmpegBin, "-y", "-qscale", "1", "-r", "" + frameRate, "-i", image1.getAbsolutePath(), "-t", "" + (((4) * 30) + 4), //"-s",heightwidth, "-i", image2.getAbsolutePath(), "-t", "" + (((4) * 30) + 4), //"-s",heightwidth, "-i", image3.getAbsolutePath(), "-t", "" + (((4) * 30) + 4)

FFmpegAndroid library rotates video after Compress

情到浓时终转凉″ 提交于 2021-02-05 08:11:07
问题 execFFmpegBinary(new String[]{"-y", "-i", path, "-s", "160x120", "-r", "25", "-vcodec", "mpeg4", "-b:v", "150k", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath}); video auto rotate after compress.. is there any solution? here is lib Link 回答1: it might be the autorotate issue in FFMPEG and you have to disable autorotate: ffmpeg -noautorotate -i input.mp4 output.mp4 if this solution doesn't solve your problem, you can get the input video rotation with Android APIs like this:

FFmpegAndroid library rotates video after Compress

梦想的初衷 提交于 2021-02-05 08:10:40
问题 execFFmpegBinary(new String[]{"-y", "-i", path, "-s", "160x120", "-r", "25", "-vcodec", "mpeg4", "-b:v", "150k", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath}); video auto rotate after compress.. is there any solution? here is lib Link 回答1: it might be the autorotate issue in FFMPEG and you have to disable autorotate: ffmpeg -noautorotate -i input.mp4 output.mp4 if this solution doesn't solve your problem, you can get the input video rotation with Android APIs like this:

FFmpeg amix-filter always does “volume normalization”. How to prevent it and what are the possible drawbacks of it?

孤人 提交于 2021-01-29 16:37:22
问题 There are many questions on this topic link1, link2, and link3. However, I am asking for suggestions on the probable solution and if it has some drawbacks. Problem Definition: amix-filter always does "volume normalization" and can't be turned off Reference: Please read comments over here by @Reino. He also had opened a ticket on the FFmpeg forum to explain the situation. Hacky Solution: amix=inputs=13:dropout_transition=1000,volume=13 Reference: Answered here, and also in the ticket.

Mac build ffmpeg for Android

我怕爱的太早我们不能终老 提交于 2021-01-29 05:58:11
问题 I want to compile ffmpeg on my Mac. The ndk version is r19c and the FFmpeg version is 4.1.3. The build script is copied from this article. But there are some problems when compiling, as follows: Thanks!!! 回答1: Starting with NDK r19 everything you need can be found in the <NDK>/toolchains/llvm/prebuilt/<host> directory. Stripped down example for arm64-v8a targeting API 28: export ANDROID_NDK_ROOT=/path/to/android-ndk-r19c export PATH=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/darwin-x86_64/bin

Cannot convert .ogg file to .mp3 or other file formats

岁酱吖の 提交于 2020-12-15 04:40:05
问题 I am trying to convert ogg audio file to mp3 or other audio file formats that can be played in ios devices But ogg files are not being converted into other formats like mp3 and caf. I am testing the conversion in android device. This is my ffmpeg command arguments: Command: "ffmpeg -y -i $inputFilePath -c:a copy $outputFilePath" Both input and output filenames were surrounded with quotations [-y, -i, /data/user/0/com.musicapp/files/composer_audios/testtt ogg file.ogg, -c:a, copy, /storage

Cannot convert .ogg file to .mp3 or other file formats

和自甴很熟 提交于 2020-12-15 04:40:05
问题 I am trying to convert ogg audio file to mp3 or other audio file formats that can be played in ios devices But ogg files are not being converted into other formats like mp3 and caf. I am testing the conversion in android device. This is my ffmpeg command arguments: Command: "ffmpeg -y -i $inputFilePath -c:a copy $outputFilePath" Both input and output filenames were surrounded with quotations [-y, -i, /data/user/0/com.musicapp/files/composer_audios/testtt ogg file.ogg, -c:a, copy, /storage

How can i add watermark to video in android studio with library

淺唱寂寞╮ 提交于 2020-06-29 06:45:36
问题 I want to add a watermark to a video. so that when user select a video from gallery in the android studio. then watermark will be added to the video automatically like this. Please check the image that how i want to add watermark logo to a video with auto adjust logo size according to the video. Or when user will download a video then a watermark will be added to the videos. i have searched a lot but not found any library for adding watermark to a video. I have found something with FFMPEG but