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
3
votes
1 answer

How can I apply custom font on watermark that created by FFmpeg

I am creating a video with FFmpeg library. I want access fonts from Android assets folder and overlay on my video as watermark. What is the path for Android assets folder to access and apply custom font on FFmpeg? I can overlay watermark on video…
Dens
  • 125
  • 11
3
votes
2 answers

Compiling FFMPEG with x265 has ERROR: x265 not found using pkg-config

At first, I have a project with ffmpeg build support x264 for android in Mac OS. Now, I want to add x265 support. I have compiled the x265 with make & make install like this: [ 81%] Built target x265-static [100%] Built target cli Install the…
timweiliu
  • 31
  • 1
  • 3
3
votes
0 answers

Video speed slow down in FMPEG

I am trying do bit slow video speed slow down which H264 format in fmpeg at android,When I run below code, it makes slowly and makes error. String[] cmd3 = {"-i",h264_path,"-filter:v","setpts=1.25*PTS",h264_new_path}; try { …
Diego
  • 937
  • 8
  • 24
3
votes
1 answer

how to multi thread with ffmpeg?

I am trying to split, convert and merge an audio. I used writingMinds FFmpeg build for Android. But it is taking to much time for long duration audios. To speed it up I tried using the "thread -4" command on a phone having 8 cores but it didn't…
priojeet priyom
  • 899
  • 9
  • 17
3
votes
2 answers

ExoPlayer not playing sound on some devices

I am trying to create a streaming app using ExoPlayer on Android. Most of the streams works fine, only some of them does not play sound on some devices only. Here is the stream info extracted using this command: ffprobe -v error -show_format…
hiddeneyes02
  • 2,562
  • 1
  • 31
  • 58
3
votes
1 answer

FFMPEG Android Library Increase Size

I'm using ffmpeg library in my Project. Problem is App apk size is too big. Anyone know how to reduce apk size ? Any help, suggestion or links would be highly appreciated. Thank you.
tech_android
  • 719
  • 1
  • 7
  • 18
3
votes
0 answers

Android ffmpeg audio not complete merge with video file

I am trying to merge audio and video file. The length of audio and video file are same but after complete merging process in output video file audio playing only for 3-4 second while audio and video file length was 14 seconds. Please help me why…
Hitesh Gehlot
  • 1,307
  • 1
  • 15
  • 30
3
votes
2 answers

FFMPEG Output file #0 does not contain any stream

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…
mr nooby noob
  • 1,860
  • 5
  • 33
  • 56
3
votes
1 answer

avcodec_encode_video2 return -542398533 Generic error in an external library only with h264 encoder

pAvframe = GetVideoFrame(); av_init_packet(&pkt); /* encode the image */ ret = avcodec_encode_video2(pAvCodecCtx, &pkt, pAvframe, &got_packet); //return Generic error in external library if (ret < 0) { char errbuf[128]; const char…
Parwez Akhtar
  • 243
  • 1
  • 3
  • 13
3
votes
4 answers

FFMPEG command execution taking too much time in android

When i run any command of FFMPEG, It taking too much time in execution. I am using FFMPEG command for reverse video, audio video merge, create GIF images and changing speed of video. Please tell me how to run FFMPEG command fast. Please Help me
3
votes
0 answers

Add sound effects at particular time in a Video file

I have a video file and I need to add multiple audio effects to it at particular time. How can this be achieved ? Using FFMPEG only audio can be merged with video file but how to add a small audio effect at particular time. I tried the following…
user7412998
3
votes
1 answer

Android, split gif to frames with ffmpeg

I need to split my gif file to separate frames of any format (gif, png, doesnt matter). ffmpeg -i path/to/gif -c:v gif -f image2 path/to/output$03d.gif this command really splits gif to frames, but only first frame have a normal quality. All other…
P. Ilyin
  • 761
  • 10
  • 28
3
votes
1 answer

get path of video file selected from gallery getting NULL. How to get path of video file?

get path of video file selected from gallery getting NULL. How to get path of video file ? Get URi in Activity Result also give null. converting Uri to String also getting Null. Intent intent; String selectedVideo1Path,…
3
votes
1 answer

Ffmpeg android build

I'm trying to build ffmpeg library for android, using roman10 tutorial I am able to run build_android.sh script.. but its not creating that ‘android’ folder in my source/ffmpeg folder !! In my case i try ffmpeg 3.0.1 in Ubuntu 14.04; 64bit. In the…
msj
  • 199
  • 1
  • 2
  • 13
2
votes
2 answers

FFmpeg command to capture Audio from Android mobile

I'm trying to capture Audio from my Android mobile using FFmpeg. Tried the below commands and the recorded clip has no Audio in it, it's just a dark black screen with no audio/video. Basically, I want to stream the live microphone audio to the RTSP…
Uday
  • 1,619
  • 3
  • 23
  • 48