VideoIO.jl
VideoIO.jl copied to clipboard
RGB4 with codec libx264 not currently supported
This is the result of saving pngs from Plots.jl with the default savefig("filename.png")
and then loading that file with `load("filename.png"). This results in a file with
julia> typeof(load("filename.png))
Array{RGB4{Normed{UInt8,8}},2}
However, trying the defaults in #182 fails with Error:
julia> encoder = prepareencoder(load(imgs[1]))
ERROR: VideoIO: Encoding image element type RGB4{Normed{UInt8,8}} with
codec libx264 not currently supported
Thanks! It's not specific to #182 (which is now merged)
It would be good to figure out a generic strategy for mapping eltypes to ffmpeg pixel formats, or just add a few more cases to cover the common ones
I have some similar issues, but with encodevideo, following the example
VideoIO: Encoding image element type ColorTypes.RGBA{FixedPointNumbers.Normed{UInt8,8}} with codec libx264 not currently supported
Evidently we need to generalize conversion between a variety of RGB formats (and more) but for now could you convert from RGBA to RGB, @henry2004y?
I'm having the same issue as @jessebett , is there any solution yet?
Sorry this hasn't been fixed yet, but as above you can just RGB(img)
whenever you pass the image to VideoIO