I am trying to use external ffmpeg.exe to convert list of image files into mp4
a = Table[Plot[Sin[ω t], {t, 0, 10}, PlotRange -> {-1, 1}, ImageMargins -> .4],
{ω, .1, 2, .1}];
Export["movie01.png", a, "VideoFrames"];
Run["ffmpeg -f image2 -framerate 12 -i movie%02d.png -c:v libx264 movie.mp4"]
But the conversion is not done. If I run the exactly same ffmpeg code in windows CMD, it works. What is wrong with the above Run
command?
solution
It turns out that after adding new exe to the windows environment(in this case, ffmpeg.exe), we have to restart mathematica, or this new exe will not be recognized by mathematica.
Export
and as "movie%02d.png" inRun
? $\endgroup$