![]() The modified video is saved to a second file, output.mp4. The input video I’m using is teapot.mp4, which I recorded on my phone. Basically, I read frames one at time from the input pipe, invert the colour of every pixel, and then write the modified frames to the output pipe. In this example I use two pipes, each connected to its own instance of FFmpeg. The same idea can be used to perform video processing, as shown in the program below. In my previous post, I demonstrated how FFmpeg can be used to pipe raw audio samples in and out of a simple C program to or from media files such as WAV files (based on something similar for Python I found on Zulko’s blog).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |