Instantiates grabber device implemented by yarp::dev::ServerFrameGrabber. More...
Instantiates grabber device implemented by yarp::dev::ServerFrameGrabber.
# wrap an audiovisual source for the network device grabber subdevice ffmpeg_grabber source $YARP_ROOT/example/dev/movie/tiny.avi # the movie has images and sound; let's send them on different ports # (or could use shared-ports flag to put them on same port) name /visual name2 /audio
If this text is saved in a file called grabber_audiovisual.ini then the device can be created by doing:
yarpdev --file grabber_audiovisual.ini
Of course, the configuration could be passed just as command line options, or as a yarp::os::Property object in a program:
Property p; p.fromConfigFile("grabber_audiovisual.ini"); // of course you could construct the Property object on-the-fly PolyDriver dev; dev.open(p); if (dev.isValid()) { /* use the device via view method */ }
Here is a list of properties checked when starting up a device based on this configuration file. Note that which properties are checked can depend on whether other properties are present. In some cases properties can also vary between operating systems. So this is just an example
| PROPERTY | DESCRIPTION | DEFAULT |
| device | ||
| subdevice | name (or nested configuration) of device to wrap | |
| ffmpeg_grabber.device | ||
| ffmpeg_grabber.wrapped | ||
| ffmpeg_grabber.source | media file to read from | default.avi |
| ffmpeg_grabber.loop | media should loop (default) | |
| ffmpeg_grabber.noloop | media should not loop | |
| ffmpeg_grabber.sync | sync on image or audio (if have to choose)? | image |
| ffmpeg_grabber.nodelay | media will play in simulated realtime unless this is present | |
| ffmpeg_grabber.pace | simulated realtime multiplier factor (must be <1 right now) | 1.0 |
| ffmpeg_grabber.v4l | if present, read from video4linux | |
| ffmpeg_grabber.v4l2 | if present, read from video4linux2 | |
| ffmpeg_grabber.ieee1394 | if present, read from firewire | |
| no_drop | if present, use strict policy for sending data | |
| stamp | if present, add timestamps to data | |
| name | name of port to send data on | /grabber |
| framerate | maximum rate in Hz to read from subdevice | 0 |
| shared-ports | If present, send audio and images on same port | |
| name2 | Name of second port to send data on, when audio and images sent seperately | /grabber2 |
| single_threaded | if present, operate in single threaded mode |
1.7.1