PARP Research Group | Universidad de Murcia |
examples/videoReader/videoReader.cpp File ReferenceSimple 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 DescriptionSimple 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 UsageOnce 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 ./videoPlayer --help Definition in file videoReader.cpp. |