gst.cpp
When running this program, you'll end up with test.avi which has resolution 0x0 and > 30 fps.