We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FFmpegKit only runs ffmpeg/ffprobe commands — it can't start another process and redirect its output directly into a command. This fails:
FFmpegKit
ffmpeg
ffprobe
cat <image path> | -i pipe: video.mp4
Unable to find a suitable output format for 'cat'
The pipe: protocol itself still works, though — you can feed a named pipe with another process's output and reference that pipe as input.
pipe:
String pipe1 = FFmpegKitConfig.registerNewFFmpegPipe(mainActivity);
String ffmpegCommand = "-i " + pipe1 + " -r 25 <output video path>";
FFmpegKit.execute(ffmpegCommand);
Runtime.getRuntime().exec(new String[]{"sh", "-c", "cat <image path> > " + pipe1});
FFmpegKitConfig.closeFFmpegPipe(pipe1);
ffmpeg blocks at step 3 until something is written to the pipe — if you skip step 4, the thread running step 3 waits indefinitely.