rpi-mpeg-ts
rpi-mpeg-ts copied to clipboard
Using /dev/video0
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!
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 ;)
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.
https://www.raspberrypi.org/documentation/usage/webcams
True. When I get some time I'll try it out.