These are chat archives for WritingMinds/ffmpeg-android-java

26th
Feb 2017
valdio veliu
@ValdioVeliu_twitter
Feb 26 2017 11:23

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???
Thanks