Skip to content Skip to sidebar Skip to footer

Android Ffmpeg Unrecognized Option

I am trying to compresses a video in android using ffmepg. Here is my code: String[] cmd = {'-y -i' ,myVideo.getAbsolutePath().replaceAll(' ', '%20'),'-vf','-s 640x480','-threads

Solution 1:

Try splitting your arguments. This should work:

String[] command = {"-y", "-i", "/path/to/your/video.mp4", "-vf", "-s", "640x480", "-threads", "5", "-preset", "ultrafast", "-strict", "-2", "/path/to/your/video_out.mp4"};

Post a Comment for "Android Ffmpeg Unrecognized Option"