Closed buntupana closed 3 years ago
Yeah, FFprobe
FFprobe.getMediaInformation()
in mobile-ffmpeg
does not support running multiple (FFmpeg/FFprobe) commands in parallel. I suggest you try ffmpeg-kit to do that. FFprobe
FFprobeKit.getMediaInformation()
implemented there supports concurrent executions.
Let me rephrase that.
As the documentation in that link says, concurrent command execution in FFprobe
is implemented in v4.3.1
. And it works for FFprobe
commands. But:
You're using getMediaInformation
which is a custom implementation of FFprobe
commands and this method does not support that. The javadoc
of this method clearly states that concurrent execution is not supported. You can see it here.
Secondly, there is a bug discovered about FFprobe
regarding logs and it is fixed on ffmpeg-kit
. I don't know if it affects this issue but it is there.
Description When I try to retrieve info using
FFprobe.getMediaInformation
sometimes I'm getting an error, I think this just happen when I have a encoding process ongoing withFFmpeg
.Expected behavior Get result without errors
Current behavior Getting random errors when FFmpeg encoding is ongoing
Logs
Environment