android-ffmpeg

FFMPEG Output file #0 does not contain any stream

谁说我不能喝 提交于 2019-12-10 18:35:04
问题 I am trying to run the following command for my Android app: "ffmpeg -i /full/path.video.mp4 -ignore_loop 0 -i myGif.gif -filter_complex \"[0][1]overlay=0:H-100\" /full/path/videoWithGifOverlay.mp4" but I am getting am getting an error. Here is the ouput: 04-14 18:36:30.386 30508-30508/com.example.android.camera2video I/onProgress(): ***Output #0, mp4, to 'ffmpeg -i /full/path/video.mp4 -ignore_loop 0 -i myGif.gif -filter_complex "[0][1]overlay=0:H-100" /full/path/videoWithGifOverlay.mp4': 04

CANNOT LINK EXECUTABLE - ffmpeg - Android

廉价感情. 提交于 2019-12-10 18:28:57
问题 I am getting the following error when I try to use ffmpeg on Android. Error 09-02 18:06:33.805 2861-3659/com.gitlab.onreg01.ffmpegsample D/FFmpeg: Running publishing updates method 09-02 18:06:33.917 2861-2861/com.gitlab.onreg01.ffmpegsample D/LOG_FFMPEG_SAMPLE: CANNOT LINK EXECUTABLE "/data/user/0/com.gitlab.onreg01.ffmpegsample/files/ffmpeg": "/data/data/com.gitlab.onreg01.ffmpegsample/files/ffmpeg" has text relocations 09-02 18:06:33.943 2861-2861/com.gitlab.onreg01.ffmpegsample D/LOG

ffmpeg video compressed but not playing in browser

喜你入骨 提交于 2019-12-10 15:39:38
问题 I have integrated ffmpeg4android lib . Video compressing is working fine but video is not playing in browser except safari browser. after uploading to server. I have used following command. ffmpeg -y -i <input file.mp4> -strict experimental -r 30 -ab 48000 -ac 2 -ar 22050 -vcodec mpeg4 -b 2097k <output file.mp4> Please Help me. Thank you in advance. 回答1: Look at the table "Browser compatibility". https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats It seems like you're

FFmpeg error Output file #0 does not contain any stream

拈花ヽ惹草 提交于 2019-12-10 10:18:33
问题 I'm getting an error while cutting a portion of a video using FFmpeg Following is my code String[] cmd = {"ffmpeg -ss 0 -i "+mPath+" -t 30 -c copy "+ (Environment.getExternalStorageDirectory().getAbsolutePath()+"/sample.mp4")}; executeCommand(cmd); Function executeCommand void executeCommand(String[] cmd) { try { fFmpeg.execute(cmd, new FFmpegExecuteResponseHandler() { @Override public void onSuccess(String message) { Toast.makeText(VideoFullScreen.this, "finished :" + message, Toast.LENGTH

Error in building FFMPEG-3.4 with Android-NDK-16.1

烈酒焚心 提交于 2019-12-09 06:36:37
问题 Trying to compile the FFMPEG-3.4 with Android-NDK-16.1. Compiling the source on Mac. Getting below Warnings/Errors: WARNING: /Users/strehan/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-pkg-config not found, library detection may fail. Error: In file included from libavdevice/avdevice.c:19:0:./libavutil/avassert.h:30:20: fatal error: stdlib.h: No such file or directory Error: /Users/strehan/Library/Android/sdk/ndk-bundle

FFmpeg on Android

橙三吉。 提交于 2019-12-09 06:29:08
问题 I have got FFmpeg compiled (libffmpeg.so) on Android. Now I have to build either an application like RockPlayer or use existing Android multimedia framework to invoke FFmpeg. Do you have steps / procedures / code / example on integrating FFmpeg on Android / StageFright? Can you please guide me on how can I use this library for multimedia playback? I have a requirement where I have already audio and video transport streams, which I need to feed to FFmpeg and get it decoded / rendered. How can

JavaCV in Android

限于喜欢 提交于 2019-12-08 11:37:47
问题 I downloaded JavaCV-1-3-1. Now I have 2 questions: How can I import JavaCV to Android Studio for using? Can be used from FFMPEG commands with JavaCV? 回答1: To import java cv add this to gradle dependencies { compile 'org.bytedeco:javacv:+' compile 'org.bytedeco.javacpp-presets:opencv:3.0.0-1.1:android-x86' compile 'org.bytedeco.javacpp-presets:ffmpeg:2.8.1-1.1:android-x86' compile 'org.bytedeco.javacpp-presets:opencv:3.0.0-1.1:android-arm' compile 'org.bytedeco.javacpp-presets:ffmpeg:2.8.1-1.1

FFMPEG Video Recorder Issue

大憨熊 提交于 2019-12-08 11:17:30
问题 I'm using FFmpegVideoRecorder - Customizable Video Recording Library for Android in my app for video recording. I followed the instructions on GitHub and installed the library. When I run the app I'm getting the following error. Error opening camera java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:247) at com.amosyuen.videorecorder

Precompiled FFmpeg for android versus building FFmpeg using android NDK

人盡茶涼 提交于 2019-12-07 22:29:02
问题 I am building an android app which does some video processing. I am currently using precompiled FFmpeg from https://github.com/writingminds/ffmpeg-android. The other option is to download FFmpeg source code and compile it using Android NDK. The reason I am contemplating option 2 is to enhance performance. My questions are Is there a difference between the two options mentioned above? If yes, what would be the difference. Would it be enhanced performance (or) the result would simply be the

Xamarin Android merge audio files with FFMpeg

给你一囗甜甜゛ 提交于 2019-12-07 08:56:59
问题 I am using this binding library for FFMpeg: https://github.com/gperozzo/XamarinAndroidFFmpeg My goal is to mix two audio files. String s = "-i " + "test.wav" + " -i " + test2.mp3 + " -filter_complex amix=inputs=2:duration=first " + "result.mp3"; Device.BeginInvokeOnMainThread(async () => { await FFMpeg.Xamarin.FFmpegLibrary.Run(Forms.Context, s); }); So I have 2 input files: one is .mp3 and another one is .wav. I've tried also next commands: String s= "-i "+ "test.wav" +" -i "+ "test2.mp3" +