node-gphoto2 icon indicating copy to clipboard operation
node-gphoto2 copied to clipboard

Capture Movie with additional parameters possible?

Open staxDB opened this issue 5 years ago • 1 comments

I would like to execute the command gphoto2 --capture-movie --stdout | avconv -f mjpeg -r 25 -s 352x288 -i pipe:0 -r 20 http://localhost:8090/test.ffm to create a stream for a live view with avconv (previously ffmpeg)

Unfortunately I can only take pictures with this node module. Is the integration of this command with the additional parameters

--stdout | avconv -f mjpeg -r 25 -s 352x288 -i pipe:0 -r 20 http://localhost:8090/test.ffm

complex or could it be added quickly?

staxDB avatar Mar 13 '19 23:03 staxDB

I'm not sure if this is the right project for this request. Are you asking for advice regarding gphoto2?

To answer your question in the context of this project: I've made experiments with mjpeg streams but couldn't get a decent performance.

While you can use node-gphoto2 to get a stream of preview pictures, any postprocessing would be outside of the scope of this wrapper library (in your example you're also piping your image stream to avconf which is another tool).

lwille avatar May 07 '19 13:05 lwille