/* * This sample demonstrates how to read and display frames from a video file, a camera device or an image sequence. * The sample also demonstrates extracting audio buffers from a video file. * Capturing video and audio simultaneously from camera device is not supported by OpenCV. */ #include #include #include #include using namespace cv; using namespace std; string keys = "{input i | 0 | Path to input image or video file. Skip this argument to capture frames from a camera.}" "{help h | | print usage}"; int main(int argc, char** argv) { CommandLineParser parser(argc, argv, keys); parser.about("This sample demonstrates how to read and display frames from a video file, a camera device or an image sequence \n" "Usage:\n --input/-i=