You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this code from node-onvif library. It will take a jpeg snapshot from the selected ip cam stream. I need to convert snapshots into a video and then stream it to the moblie app made using capacitor.js framework. Will be this possible using this library?
I'm looking to issues and examples but not sure what I need to use. I only need video and no audio.
device.init().then(() => {
// Get the data of the snapshot
console.log('fetching the data of the snapshot...');
return device.fetchSnapshot();
}).then((res) => {
// Save the data to a file
fs.writeFileSync('snapshot.jpg', res.body, {encoding: 'binary'});
console.log('Done!');
}).catch((error) => {
console.error(error);
});
At the moment I'm pasing the returned jpeg object from the ipcam directly to the front end but it's a bit inefficient.
The text was updated successfully, but these errors were encountered:
realrecordzLab
changed the title
create video from jpeg icam snapshot
create video from jpeg ipcam snapshot
Apr 29, 2022
I have this code from node-onvif library. It will take a jpeg snapshot from the selected ip cam stream. I need to convert snapshots into a video and then stream it to the moblie app made using capacitor.js framework. Will be this possible using this library?
I'm looking to issues and examples but not sure what I need to use. I only need video and no audio.
At the moment I'm pasing the returned jpeg object from the ipcam directly to the front end but it's a bit inefficient.
The text was updated successfully, but these errors were encountered: