I’m struggling to figure out how to read in a UInt8 grayscale video.
read(open(videofilename))isn’t working on this video format. I just get a 1D array of UInt8 that’s about 20k elements longer than the video should be based on
w x h x nframes
VideoIO.jldoesn’t support current FFMPEG versions, and I can’t make it use older versions https://github.com/kmsquire/VideoIO.jl/issues/131
FFmpegPipe.jlgets close but seems like forces reading the single channel video as RGB channels, resulting in a frame that’s 3x taller than it should be (using 3 successive frames, from what I can tell). https://github.com/perrutquist/FFmpegPipe.jl/issues/4
Any ideas appreciated. I’d like most to have a basic function where I can tweak ffmpeg to match the source format and control the codec precisely. I’m writing videos like that based on the example given here: Creating a video from a stack of Images