Animate:
using Plots
= 0:0.01:10
ts = @animate for idx ∈ 1:length(ts)
anim @info "Generating frame: $idx/$(length(ts))"
plot_topo(eeg, seg=(ts[idx], ts[idx]+0.1), channel=1:19)
end
gif(anim, "images/anim_fps10.gif", fps = 10)
Reduce output file size:
ffmpeg -y -i images/anim_fps10.gif -filter_complex "fps=5,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=32[p];[s1][p]paletteuse=dither=bayer" images/anim_fps10.gif