Open jw3126 opened 5 years ago
I think this may be the same problem I'm running into. I investigated the error and got:
[libx264 @ 0x1a1f980] width not divisible by 2 (799x800)", "Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height", "Conversion failed!"]
However, I'm manually setting the plot size to be 800x800.
I just ran into this as well. This is hard to see what's going on because the call to ffmpeg
throws a ProcessError
but doesn't say what the problem is (it seems that ffmpeg
is being run with -v 0
which disables error messages).
In my case I got it to work by setting dpi=101
which for my resolution (500x500) happened to give an even height and width. The return value seems to be of type AnimatedGif
but it created the mp4
video.
This bug is a result of the more fundamental bug discussed in https://github.com/JuliaPlots/Plots.jl/issues/2303
Is there a way to control the resolution of
mp4
output? Here is what I tried:OTOH it works with gif: