Questions tagged [android-ffmpeg]

Android ffmpeg wrapper are used to add the magic of free open source Ffmpeg inside android platform.

There are several Android ffmpeg wrapper. Most significant are:

499 questions
5
votes
1 answer

FFMPEG Error!!! moov atom not found Invalid data found when processing input

I am trying to combine chunks of reversed videos but this error hits me. I have seen many solutions but none of them worked. [mov,mp4,m4a,3gp,3g2,mj2 @ 0xe8db4600] moov atom not found /storage/emulated/0/Movies/VideoPartsReverse/reverse_video0.mp4:…
Uzair Mughal
  • 309
  • 4
  • 15
5
votes
3 answers

How to kill FFmpeg currently running process?

I'm working on an application that trims a video using FFmpeg. While the trimming process has started and I cancel it, the FFmpeg is terminated fully. How can I achieve by killing the current working process only? /* define PID */ try { …
AllwiN
  • 693
  • 2
  • 12
  • 26
5
votes
1 answer

Audio Video merge using ffmpeg- moov atom not found error

I am using below command for merging audio and video- "-i", videoFileAbsolutePath, "-i", audioFileAbsolutePath, "-c:v", "copy", "-c:a", "aac", "-map", "0:v:0", "-map", "1:a:0", "-shortest", destinationFileAbsolutePath For few videos I am getting…
varmashrivastava
  • 432
  • 2
  • 6
  • 21
5
votes
0 answers

Android FFmpeg - Mux encoded h264 frames from MediaCodec

I'm trying to capture h264 frames from Android camera (encoded by MediaCodec) and pass them to an FFmpeg process running on the same device. I currently do it by writing the encoded byte arrays I receive from the MediaCodec to a file called…
Bob Ross
  • 756
  • 6
  • 13
5
votes
2 answers

ffmpeg output separate channel from an input with multiple channels

i run this command to be able to stream a udp live stream to a http live stream that is playable using a mobile application that am building. its just a stream with audio streams only. ffmpeg -i udp://@localhost:1111 -map 0:a …
tiras muturi
  • 81
  • 1
  • 8
5
votes
0 answers

Add Filters to Video like Instagram

I am coding for an app and need to apply filters to videos like Instagram. I tried with FFMPEG library, but it doesn't work well and does not provide all filters. What I tried so far is, String commandStr1 = "ffmpeg -y -i /sdcard/vids.mp4 -strict…
user7412998
4
votes
2 answers

flutter_ffmpeg - how to access the path of the output?

I need to merge (concatenate) two audio files in a Flutter app. I am trying to use Flutter_ffmpeg package . https://pub.dev/packages/flutter_ffmpeg Ffmpeg is powerful tool for audio and video. flutter_cache_manager package to store the files that…
Richardd
  • 956
  • 14
  • 27
4
votes
2 answers

Ffmpeg split video into multiple chunk but in different duration length

I know how to split video into equal duration length, but here i want to split video into un-equal parts and number of parts and duration will be different for each time. For ex, video length is 50 sec, i want to split it in 4 parts. 1) 0 sec - 5…
4
votes
2 answers

Android ffmpeg : Use image for Watermark from drawable or assets folder

How to use image for watermark from drawable folder or assets folder in Android. I found many examples with command but all the examples are working with static image path of internal storage. I have done following code to make video with…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
4
votes
1 answer

Speed Up Video Processing time FFMPEG while adding multiple images to Video

I am trying to overlay multiple images to the video at certain time interval... but the processing time is too much for a video length of 1 minute. I used VideoKit Library for it. Here is my code for adding multiple images to Video. String[]…
Vivek Faldu
  • 336
  • 3
  • 19
4
votes
1 answer

Is there any way to trim video except using FFMPEG and MP4Parser?

I have used FFMPEG for video trimming but it's taking too much time for video processing. String[] complexCommand = {"-ss", "" + startMs / 1000, "-y", "-i", yourRealPath, "-t", "" + (endMs - startMs) / 1000,"-vcodec", "mpeg4", "-b:v", "2097152",…
Akash Patel
  • 3,091
  • 3
  • 15
  • 23
4
votes
0 answers

ffmpeg sometimes not working for splitted videos-moov atom not found

I am using below command to reverse video- {"-i", files[i].getAbsolutePath(), "-vf", "reverse", "-af", "areverse", dest.getAbsolutePath()}; I occasionally gets below error- ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n …
varmashrivastava
  • 432
  • 2
  • 6
  • 21
4
votes
1 answer

Why do I get "error: invalid instruction mnemonic" when compiling FFmpeg for Android?

I'm trying to compile FFmpeg 4.0 for Android using clang from the NDK (r18.1.5063045). My host architecture is Mac OS. Here's my configure command: ./configure \ --target-os=android \ --arch=armv7-a \ --enable-cross-compile…
donturner
  • 17,867
  • 8
  • 59
  • 81
4
votes
1 answer

Xamarin Android merge audio files with FFMpeg

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 " +…
Bogdan
  • 107
  • 9
4
votes
1 answer

FFMPEG progress CANNOT LINK EXECUTABLE ... ffmpeg: has text relocations

I want to cut and merge the videos.I used FFMPEG. I have implemented this library https://github.com/WritingMinds/ffmpeg-android-java. When i tested in android 8.0(Oreao) version. I got this issue " CANNOT LINK EXECUTABLE ... ffmpeg: has text…
lavanya velu
  • 331
  • 1
  • 3
  • 11
1
2
3
33 34