Decoding Video Frames with ffmpeg/libav
A complete C++ guide for extracting and decoding individual video frames using the ffmpeg/libav library, covering file opening, stream detection, codec initialization, and frame conversion.
Posts tagged with "c++"
A complete C++ guide for extracting and decoding individual video frames using the ffmpeg/libav library, covering file opening, stream detection, codec initialization, and frame conversion.
I have always wanted to write games - back in the day that was the whole idea why I wanted to be a programmer.
Reading a file in C++ is almost identical to how it's done C.
To create a plugin system in C++ you need three things: an interface for the plugin, a way for the plugin to inject itself into your program, and a way for the program to load the plugins.
In C++ there are no built-in ways to handle json, however there are many open source libraries to help you.
Reading from stdin in C++ is surprisingly concise - only 12 lines of code including includes and empty lines.
Sometimes when writing C++ programs I have textual data that I want to be part of the executable instead of in flat files next to it. But while developing it's far easier to have the textual data in separate files rather than as strings in source.
One of the biggest grievances I had when I started writing a lot of C++ code was that things we take for granted as built-in in other languages are harder to do right in C++. For simple string manipulation, there is boost.
I just wrote about how to trim strings with boost, and the code where I first needed to trim was actually a very simple naive parser where strings of key value pairs would be split and then each part trimmed.