Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    @Sureshkumars Copy your font file in phone and give the path of device.
    Suresh Kumar Sivasankaran
    So at run time I need to copy the files to device right?
    Can you share me some example code ?
    Do google you will easily get the answer "how to copy assest file in device".
    Suresh Kumar Sivasankaran
    Got it done! Thanks addy :smile:

    How can I add multiple audio files dynamically to replace them with the existing audio in the desired time positions of video?

    I used this command with atrim filter but I can't do that. Please help me asap. Thanks in advance.

    ffmpeg -i video.mov -i audio1.mp3 -i audio2.mp3 -filter_complex \
    "[1:a]atrim=end=10,asetpts=PTS-STARTPTS[a1]; \
    [2:a]atrim=end=10,asetpts=PTS-STARTPTS[a2]; \
    [a1][a2]concat=n=2:v=0:a=1[a] \"
    -map 0:v -map "[a]" -codec:v copy -codec:a libmp3lame -shortest output.mov

    Suresh Kumar Sivasankaran
    @pjjaddy_twitter @hiteshsondhi88
    @Sureshkumars Sorry Bro,i havn't tried anything like that....
    Suresh Kumar Sivasankaran
    Bro I got it done! 😊
    @Sureshkumars Cool...😃
    Ishita Verma
    Hi, will you be participating in outreachy round 14, from May-Aug 2017?
    hi, help me please
    i get this error when i call exec("ffmpeg command") from servlet, and sorry for my bad english
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)           error
    [qtp1134517053-10] DEBUG PutFileServlet -   libavutil      55. 34.100 / 55. 34.100           error
    [qtp1134517053-10] DEBUG PutFileServlet -   libavformat    57. 56.100 / 57. 56.100           error
    [qtp1134517053-10] DEBUG PutFileServlet -   libavfilter     6. 65.100 /  6. 65.100           error
    [qtp1134517053-10] DEBUG PutFileServlet -   libswscale      4.  2.100 /  4.  2.100           error
    [qtp1134517053-10] DEBUG PutFileServlet -   libpostproc    54.  1.100 / 54.  1.100           error
    [qtp1134517053-10] DEBUG PutFileServlet - [flv @ 0x3ee7ca0] audio stream discovered after head already parsed           error
    [qtp1134517053-10] DEBUG PutFileServlet -   Duration: 00:00:00.-99, start: 0.000000, bitrate: N/A           error
    [qtp1134517053-10] DEBUG PutFileServlet -     Stream #0:1: Audio: pcm_s16le, 11025 Hz, mono, s16, 176 kb/s           error
    [qtp1134517053-10] DEBUG PutFileServlet -   Metadata:           error
    [qtp1134517053-10] DEBUG PutFileServlet -     Stream #0:0: Video: h264 (Main) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1280x720, q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc           error
    [qtp1134517053-10] DEBUG PutFileServlet - Stream mapping:           error
    [qtp1134517053-10] DEBUG PutFileServlet -   Stream #0:1 -> #0:1 (copy)           error
    [qtp1134517053-10] DEBUG PutFileServlet - frame=   13 fps=0.0 q=-1.0 size=      69kB time=00:00:00.51 bitrate=1096.4kbits/s speed=1.02x               error
    [qtp1134517053-10] DEBUG PutFileServlet - video:61kB audio:12kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.150408%
    valdio veliu

    Hello, I am trying to use the ffmpeg Android library to convert mp4 videos to webm format

                    cmd = "-y -i " + mediaPath + " /storage/emulated/0/DCIM/Camera/output.webm";

    It keeps showing similar errors

    A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    A/DEBUG: Build fingerprint: 'Android/sdk_google_phone_x86/generic_x86:7.0/NYC/3513876:userdebug/dev-keys'
    A/DEBUG: Revision: '0'
    A/DEBUG: ABI: 'x86'
    A/DEBUG: pid: 4153, tid: 4153, name: ffmpeg  >>> /data/user/0/org.wikimedia.commons.wikimedia/files/ffmpeg <<<
    A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    A/DEBUG:     eax 00000000  ebx 00001039  ecx 00001039  edx 00000006
    A/DEBUG:     esi aa9ef58c  edi aa9ef534
    A/DEBUG:     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
    A/DEBUG:     eip aa91d424  ebp bfe4aea8  esp bfe4ae4c  flags 00000282
    E/EGL_emulation: tid 3504: eglSurfaceAttrib(1146): error 0x3009 (EGL_BAD_MATCH)
    W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x950ff440, error=EGL_BAD_MATCH
    A/DEBUG: backtrace:
    A/DEBUG:     #00 pc 00000424  [vdso:aa91d000] (__kernel_vsyscall+16)
    A/DEBUG:     #01 pc 0009188c  /system/bin/linker (__dl_tgkill+28)
    A/DEBUG:     #02 pc 00090845  /system/bin/linker (__dl_pthread_kill+85)
    A/DEBUG:     #03 pc 000817ca  /system/bin/linker (__dl_raise+42)
    A/DEBUG:     #04 pc 0007eb86  /system/bin/linker (__dl_abort+86)
    A/DEBUG:     #05 pc 00081168  /system/bin/linker (__dl___libc_fatal+40)
    A/DEBUG:     #06 pc 0000f8a4  /system/bin/linker (__dl__ZL29__linker_init_post_relocationR19KernelArgumentBlockj+4580)
    A/DEBUG:     #07 pc 0000e5f6  /system/bin/linker (__dl___linker_init+630)
    A/DEBUG:     #08 pc 00019dd3  /system/bin/linker (__dl__start+35)
    A/DEBUG:     #09 pc 00000004  <unknown>

    Can anyone help? ..Is the convertion mp4 to webm posible with this library???

    Hello, how to get stream over tcp and retranslate to rtsp? Maybe via ffserver?
    Please help me.
    Ante Braovic
    Hi guys. I was wondering if there is a was to use "hwaccel" with this lib. Video encoding takes to long to complete, even if I change preset flag. And if I try to list all available hardware acceleration methods using "hwaccels" it results in an empty list.
    deepak sood
    Hello guys
    i am trying to merge image and audio to make a video, but the command that perfectly runs of windows ffmpeg executable doesn't work in android, it gives error "Error while opening encoder for output stream", I am using writing minds application to test the command. Also the command that runs does create a video but with no audio.
    Please help
    Command that doesn't run - -y -loop 1 -i /storage/emulated/0/VideoEditor/download.jpg -i /storage/emulated/0/VideoEditor/audio.mp3 -shortest /storage/emulated/0/VideoEditor/cut1.mp4
    Command that does run with no audio - -y -loop 1 -i /storage/emulated/0/VideoEditor/download.jpg -i /storage/emulated/0/VideoEditor/audio_20170426_224342.mp3 -shortest /storage/emulated/0/VideoEditor/intermediate_0.ts
    I have tried different formats with this configuration too like copying the audio using -c copy with different codecs.
    But nothing worked.
    Is there something i am missing or doing wrong?
    Daniyal Yasin


    I am using this lib in my project.

    On running:
    ffmpeg -i "/storage/emulated/legacy/DCIM/Camera/VID_20170426_234723.mp4"

    I am getting: "/storage/emulated/legacy/DCIM/Camera/VID_20170426_234723.mp4": No such file or directory

    While if i use adb shell to verify existence of file:

    shell@mako:/storage/emulated/legacy/DCIM/Camera $ ls | grep 723.mp4
    Output: VID_20170426_234723.mp4

    Can someone please help regarding this?
    Hi all!
    I have a problem with ffmpeg in android
    My app use ffmpeg to convert webm to mp3, it work fine when only 1 instance of ffmpeg running. But when i use many ffmpeg task it's issue an error that only 1 ffmpeg can run at a time, how can i solve that
    Junqiu Zheng
    Junqiu Zheng
    hi hello
    Junqiu Zheng
    Junqiu Zheng
    Junqiu Zheng
    Hello Dev community


    I used the video compression process with the below comments, it works for up to Nougat 7.0 (API level 24), After the Android version doesn't work. Kindly help me on this.
    string[] cmds = new string[] {
    "-strict", "experimental",
    "-vcodec", "libx264",
    "-preset", "ultrafast",
    "-crf","30", "-acodec","aac", "-ar", "44100" ,
    "-q:v", "20",
    Has anyone had this same problem and has a solution?

    Sagar Atalatti
    Never got this project compiled 😫
    Sagar Atalatti
    Has anyone compiled ffmpeg-androind-java on windows ?
    Hi guys
    anyone here?
    Hi guys!
    I got a problem here, when i use ffmpegframeRecorder, i input a mp3 audio and output as outputstream, but i will block at recorder.stop()
    the error is could not encode audio packet
    சதீஷ் ஜெகநாதன்
    Hi Guys
    Any one completed android 64 bit support?