Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UndefVarError: '_unsuported_append_encode_type' not defined #406

Open
leguidomanfredi opened this issue Sep 26, 2023 · 2 comments
Open

UndefVarError: '_unsuported_append_encode_type' not defined #406

leguidomanfredi opened this issue Sep 26, 2023 · 2 comments

Comments

@leguidomanfredi
Copy link

leguidomanfredi commented Sep 26, 2023

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

@leguidomanfredi leguidomanfredi changed the title UndefVarError: _unsuported_append_encode_type not defined UndefVarError: '_unsuported_append_encode_type' not defined Sep 26, 2023
@IanButterworth
Copy link
Member

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

@leguidomanfredi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants