rpi-mpeg-ts icon indicating copy to clipboard operation
rpi-mpeg-ts copied to clipboard

Using /dev/video0

Open alduxvm opened this issue 7 years ago • 3 comments

This is not an issue, just like a question or request... how can we change it to read a device like /dev/video0 instead of the rpi camera? thanks a lot!

alduxvm avatar Nov 24 '17 21:11 alduxvm

Hi ! Sorry for the late reply. I'm not quite sure... It uses the raspivid command (https://github.com/WebMaestroFr/rpi-mpeg-ts/blob/master/camera/index.js), but maybe this can be changed to work with more devices. I won't have time to work on this now, sorry. Please let me know if you figure something out ;)

WebMaestroFr avatar Dec 01 '17 07:12 WebMaestroFr

One could quite easily replace the raspivid command with fswebcam to use /dev/video0 instead of the RPi camera. I don't have a webcam here to test, but it shouldn't be that hard.

mbergen avatar Dec 01 '17 09:12 mbergen

https://www.raspberrypi.org/documentation/usage/webcams

True. When I get some time I'll try it out.

WebMaestroFr avatar Dec 01 '17 10:12 WebMaestroFr