Closed net-cscience-raphael closed 1 month ago
Working with File
is not feasible. We have use-cases, where there simply is no file since the data comes from some remote source.
However, as a fix, the VideoDecoder
now makes a distinction between FileSource
and any other type of Source
.
/* Decode video and audio; make distinction between FileSource and other types of sources. */
if (source is FileSource) {
FFmpegFrameGrabber(source.path.toFile()).use { grabber ->
decodeFromGrabber(source, sourceRetrievable, grabber, channel)
}
} else {
source.newInputStream().use { input ->
FFmpegFrameGrabber(input).use { grabber ->
decodeFromGrabber(source, sourceRetrievable, grabber, channel)
}
}
}
This should address your issue. However, could you please provide me with the vide that caused the issue (e.g., Switch file sender). I might have a look.
@net-cscience-raphael Could you please provide me with an example video that triggers this error?
The error occurs when loading huge video files (>2GB) with
InputStream
in classVideoDecoder
.As a stopgap solution,
InputStream
is replaced withFile