FFmpeg is ran with the following command:įfmpeg -loop 1 -i. Using FFmpeg, it creates a video stream out of the copied images. PNG file) every 0.1 seconds, using the windows copy command, to a destination path. The program is required to be able to run on Windows. I wrote a program that simulates a camera and converts the output into a video stream. To solve this, try using the -re flag in your FFmpeg command line to force FFmpeg to read the input at the native framerate.įfmpeg -re -loop 1 -i. Because your program is fixed writing frames at 10 fps, this is the reason you probably can't read your file sometimes, since the file is writed at these particular times. It is also not transmitting the transport stream at 10 fps. This means FFmpeg is reading the frames not at 10 fps, but as fast as possible. Using your current command line, FFmpeg is running at the highest possible speed. It was compiled and tested with Visual Studio 2012 on Windows 7. It might not be fully optimized, but it does the job. This feature allows streamlining the image data into FFmpeg, instead of two processes accessing the same file simultaneously.īelow is the C++ code I wrote. Following Nick van Tilborg's comment, I ended up using FFmpeg's image2pipe.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |