FFmpeg-Android icon indicating copy to clipboard operation
FFmpeg-Android copied to clipboard

Can synchronous invocation be supported?

Open protectedMan opened this issue 6 years ago • 2 comments

protectedMan avatar Jun 28 '19 04:06 protectedMan

The nature of using ffmpeg as a separate binary (by java.lang.ProcessBuilder) makes it impossible to invoke it synchronously. On the other hand, you can use a small wrapper that will make the invocation seem synchronous, that will wait until the process is complete.

Note that you cannot run this pseudo-synchronous method on the main thread.

alexcohn avatar Aug 06 '19 10:08 alexcohn

See this fork and particularly this commit that implements the wrapper I wrote about.

alexcohn avatar Aug 12 '19 22:08 alexcohn