I have an ffmpeg executable file compiled for ARM Android in my /data/data/APP/files folder, with execute permission.
I am trying to execute a command based on an example extracted from the FFmpeg site.
This is the command-line I'm typing:
./ffmpeg -loop 1 -i /mnt/sdcard/com.example.test/image.png -c:v libx264 -t 30 -pix_fmt yuv420p /mnt/sdcard/com.example.test/video.mp4
My objetive is to execute it from my app, but even in command-line, I'm getting this error:
./ffmpeg: 1: Syntax error: "(" unexpected
Does anyone know what is and how to solve it?
- UPDATE
I found a newer version and I think I passed through that error.
But now, for any call to ffmpeg executable, I'm getting an error like this:
# ./ffmpeg -loop 1 -i /mnt/sdcard/com.example.teste/imagem.png -c:v libx264 -t 30 -pix_fmt yuv420p /mnt/sdcard/com.example.teste/video.mp4
[1] + Stopped (signal) ./ffmpeg -loop 1 -i /mnt/sdcard/com.example.teste/imagem.png -c:v libx264 -t 30 -pix_fmt yuv420p /mnt/sdcard/com.example.teste/video.mp4
[1] Segmentation fault ./ffmpeg -loop 1 -i /mnt/sdcard/com.example.teste/imagem.png -c:v libx264 -t 30 -pix_fmt yuv420p /mnt/sdcard/com.example.teste/video.mp4
What does it mean?
logcatProc = Runtime.getRuntime().exec();and running the app on my real device (Galaxy S2 with ICS API 15).