PARP Research Group Universidad de Murcia


examples/videoReader/videoReader.cpp File Reference

Simple example of reading video sources and saving selected frames, using the generalized input video reader class in QVision. More...

#include <QVApplication>
#include <QVPropertyContainer>
#include <QVImage>
#include <QVVideoReader>

Go to the source code of this file.


Detailed Description

Simple example of reading video sources and saving selected frames, using the generalized input video reader class in QVision.

This program will save a series of requested frames in individual image files, as captured from a generic video source, which can be anything from a webcam or a firewire cam, to a video file, a TDT channel, a DVD, remote sources (via http or rtsp protocols) or even directories containing sequences of images in individual frames. See documentation on class QVVideoReader for further information on this extremely versatile class.

Usage

Once the QVision has been installed, compile using the qmake and make tools:

 # qmake; make 

Execute the application with the following line:

 ./videoReader --URL=<source video identifier string> 

For example:

 ./videoReader --URL=file:///home/pedro/file.avi 

or

 ./videoReader --URL=http://perception.inf.um.es/public_data/videos/misc/minuto.avi 

or

 ./videoReader --URL=ocvc://#0 

(among many other possibilities; see section Video source identifiers for further info about the formats and types of source video identifier strings).

Execute with parameter --help to get help on additional available command line options:

 ./videoPlayer --help 
Author:
PARP Research Group. University of Murcia, Spain.

Definition in file videoReader.cpp.




QVision framework. PARP research group. Copyright © 2007, 2008, 2009, 2010, 2011.