then the instructions finish with the address and file name that you want to save. b:v means that you want the output to be a videoĢ048k means you want 2 megabit per second quality, which is reasonably pleasant to look at on screen That is what the %d tells FFMPEG to look for, and it will combine all those files into one video until it doesn't find the next graph in the sequaence of numbers (so make sure there are no breaks in the numbering) i is followed by the input files (the images) here we have saved the graphs as graph0.png, graph1.png, graph2.png, and so on. report asks for a log file to be saved, which is handy in case things don't work out the way you expected This command called winexec first looks up the FFMPEG executable file, then there are series of options which are passed to FFMPEG that tell it what you want it to do: Let's take a closer look at an instruction sent from Stata to FFMPEG under Windows: winexec "C:\Program Files\ffmpeg\bin\ffmpeg.exe" /// We can specify the size of the video (although it is better to do that when you save the graphs as image files, to keep the sharpest images), we can set the bitrate to balance better quality against a smaller video file, and we can choose the video format. This is what we can do from Stata and R: once we have assembled all the individual frames we want for our animation, we will issue an order to FFMPEG to pull them all together into a video file. It usually sits in the background on your hard drive and gets "called" by other software to do the hard work behind the scenes. FFMPEG is an open-source, free piece of software that is very widely used in the audio-visual world to convert digital content from one format to another.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |