Save Video
Save captured camera frames into a video file.
By Laurent Ittiitti@usc.eduhttp://jevois.orgGPL v3
 
Video Mapping: YUYV 320 240 60.0 YUYV 320 240 60.0 JeVois SaveVideo
Video Mapping: YUYV 320 240 30.0 YUYV 320 240 30.0 JeVois SaveVideo
Video Mapping: NONE 0 0 0 YUYV 320 240 60.0 JeVois SaveVideo
Video Mapping: NONE 0 0 0 YUYV 320 240 30.0 JeVois SaveVideo
Video Mapping: NONE 0 0 0 YUYV 176 144 120.0 JeVois SaveVideo
 

Issue the command "start" to start saving video frames, and "stop" to stop saving. Successive start/stop commands will increment the file number (d argument in the 'filename' parameter. Before a file is written, we check whether it already exists, and skip over it by incrementing the file number if so.

This module works with any video resolution and pixel format supported by the camera sensor. Additional video mappings are possible beyond the ones listed here.

When using with no USB output (NONE output format), you should first issue a 'streamon' command to start video streaming, then 'start'. The 'streamon' is not necessary when using with a USB video output, the host computer over USB triggers video streaming when it starts grabbing frames from the JeVois camera.

 
 
ParameterTypeDescriptionDefaultValid Values
(SaveVideo) filenamestd::stringName of the video file to write. If path is not absolute, /jevois/data/savevideo/ will be prepended to it. Name should contain a printf-like directive for one int argument, which will start at 0 and be incremented on each streamoff command.video%06d.avi-
(SaveVideo) fourccstd::stringFourCC of the codec to use. The OpenCV VideoWriter doc is unclear as to which codecs are supported. Presumably, the ffmpeg library is used inside OpenCV. Hence any video encoder supported by ffmpeg should work. Tested codecs include: MJPG, MP4V, AVC1. Make sure you also pick the right filename extension (e.g., .avi for MJPG, .mp4 for MP4V, etc)MJPGboost::regex(^\\\\w{4}$)
(SaveVideo) fpsdoubleVideo frames/sec as stored in the file and to be used during playback30.0-
 
Detailed docs:SaveVideo
Copyright:Copyright (C) 2016 by Laurent Itti, iLab and the University of Southern California
License:GPL v3
Distribution:Unrestricted
Restrictions:None
Support URL:http://jevois.org/doc
Other URL:http://iLab.usc.edu
Address:University of Southern California, HNB-07A, 3641 Watt Way, Los Angeles, CA 90089-2520, USA