JuliaIO / VideoIO.jl

Reading and writing of video files in Julia via ffmpeg
https://juliaio.github.io/VideoIO.jl/stable
Other
125 stars 53 forks source link

UndefVarError: '_unsuported_append_encode_type' not defined #406

Open leguidomanfredi opened 9 months ago

leguidomanfredi commented 9 months ago

Hi there,

When trying to create a video and filling it with images I get an error "UndefVarError: '_unsuported_append_encode_type' not defined", not sure what to do with it. I managed to reproduce the error with the following code:

writer = VideoIO.open_video_out("video.mp4", Gray{N0f8}, (480, 640), framerate=30)

for i in 1:200
    noise = rand(Gray, 640, 480)
    write(writer, noise)
end

close_video_out!(writer)

I am using VideoIO v1.0.7

IanButterworth commented 9 months ago

Obviously a bug, but you should be able to avoid it by setting the same image element type as in the constructor.

leguidomanfredi commented 9 months ago

Thank you Ian, I was quite puzzled by this error. Your solution indeed avoids the issue.