ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
Propagate FFmpegError through FFmpegException on FFprobe failures
trafficstars
Similar idea to https://github.com/bramp/ffmpeg-cli-wrapper/pull/214 but for ffprobe. Ffprobe actually already deserialises the errors into FFmpegError (Error codes too!) in the FFmpegProbeResult. The result is never returned though as we discard everything and throw IOException.
This change throws FFmpegException which contains the FFmpegError and will allow consumers to easily handle things like 401/404 scenarios on remote files.