Extract keyframes from a video file.
npm install node-red-contrib-extract-keyframesOwing to large dependencies (I suspect), to install node-red-contrib-extract-keyframes on your system, you will need at least 1GB of RAM to complete the installation process.
A filePath to a video file must be passed for processing.
```
{
payload : {
filePath : "/path/to/validFile.mp4"
}
}
Once the extraction process has begun, one of two object will be emitted by the node.
For every keyframe extracted from the chosen video file, the following object will output.
``
{
payload : {
image :
timeOffset :
},
parts : {
id :
type : "object",
index :
}
res :
If every keyframe has been identified and extracted from the passed video the original object passed to node will be passed as an output with the following additional properties added.
```
{
complete : true, // Only ever true. Only ever included on the final message output by the node
parts : {
id :
type : "object",
count :
}
}