On 5/12/19 21:07, Anwuli Okwuashi wrote:
Thank you,

Yes, the first command is the stata blog extrat, the second is mine.
Previous attempts had the value for the -b:v but still did not work.
I have 20 png files created using stata, I just need to convert them to
video/animation. With that, I'll appreciate any help.


On Thu, Dec 5, 2019, 5:49 PM gga <ggarr...@gmail.com> wrote:

On 5/12/19 18:11, Anwuli Okwuashi wrote:
Hello,
Newbie alert!
I am unable to recreate an animation I found on stata blog

https://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
   .

local GraphPath "C:\Users\jch\AnimatedGraphics\example\"
winexec "C:\Program Files\FFmpeg\bin\ffmpeg.exe" -i
`GraphPath'graph_%03d.png
      -b:v 512k `GraphPath'graph.mpg

   My code: ran without errors but no video was created
local GraphPath "C:\Users\analyst\Desktop\STATA\projects\animation\"
winexec "C:\FFmpeg\bin\ffmpeg.exe" -i `GraphPath'i_diff_%.png -b:v
`GraphPath'graph.mpg.

Any idea why mine isn't working? I use windows 10.
I have no idea about stata, but do you realize you posted two different
commands?  Also, the second command is missing the value for -b:v.

Also, the second command is missing the frame specifier.  You only have %.png instead of %03d.png (for 3 padded digits) or %d.png (for single digits).


_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to