![]() ![]() Just how fast was the second pilot? To find out that, we’ll need to take what we know about the plane and what we observe in each frame from the video.īefore going further, I should state my disclaimer. For this example I’ll be using a video from Youtube.Īs you can see, one of the pilots draws everyone’s attention while another does a quick and close pass. Now lets take a video and convert it to a series of images. Here is the resulting video that shows Ion intensity at noon Pacific time for the past year. ffmpeg -y -r 30 -f concat -safe 0 -i "IonGlobalMap_Noon.txt" -c:v libx264 -vf "fps=30,format=yuv420p" "IonGlobalMap_Noon.mp4" Here is the command I use to make the video. Sed "s/gif/gif\'/" IonGlobalMap_Noon_Input.txt > IonGlobalMap_Noon.txtįFMpeg is now ready to use the text file as a reference for what images to take and convert into a video. sed "s/IonGlobalMap_20/file \'IonGlobalMap_20/" IonGlobalMap_Noon.txt > IonGlobalMap_Noon_Input.txt Once my list is correct, I then do some text substitution to get my text file formatted so FFMpeg can process it. There are better automated ways to do this but my list was short and the time to create that automation was more effort than it was worth. ![]() For those, I visually modify the text file. My list also includes times that aren’t exactly at noon. Now I have a text file that lists all of the images with “12000” in the name. ls /WebScraped/Nasa/IonGlobalMap_*12000*.gif > /WebScraped/Nasa/IonGlobalMap_Noon.txt I use this command to export all of my images that were taken mid day. I don’t want to use all of the images because the resulting video would have an effect as day and night cycle. As it downloads them, the script renames the file with a timestamp in the name. I run a script that downloads a new image every 5 minutes. Lets start with image to video conversion.įor this example I’ll be using images that have been scrapped from the web for the past year. I’ll also demonstrate how to convert a video into a series of images, were we can do some interesting things. In this post, I’ll demonstrate how to take a series of images and convert them into a video. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |