GithubHelp home page GithubHelp logo

Comments (3)

jontsai avatar jontsai commented on September 20, 2024

Okay, in reading the code, I see that it's hard-coded to work with the raspberry pi camera raspivid

I was able to muck around with server.js and make some progress, but not quite working yet.

  const fswebcamOptions = ['--resolution', '1280x720', '--fps',\
 framerate, '-F', '50', '-'];
  const cameraStream = spawn('fswebcam', fswebcamOptions);

from raspilive.

jaredpetersen avatar jaredpetersen commented on September 20, 2024

Yup, the goal of this project is only to support the raspberry pi camera module. From what I understand, every USB webcam is different and supporting all of the different webcam types is a lot of work. You can definitely fork the repository and make the necessary modifications though and it looks like you're already on the right track.

Basically, you need a way to feed a video stream into Ffmpeg so that it can do the heavy lifting when it comes to video processing. Once the streaming video files are created, Express serves them up.

The raspberry pi camera module outputs h.264 video. The Ffmpeg options are currently set up to support that. I'm not sure what format fswebcam outputs, but as long as it's h.264 it should be fine. Otherwise, you might have to play around with the Ffmpeg options.

You mentioned that your changes are not quite working yet. I would confirm that cameraStream is outputting a video stream and confirm the type of video it's outputting. I'd also look at what ffmpeg is outputting -- that will help determine what is going on as well. If you can provide some more information on what's happening and share your changes through a public fork, I'd be happy to help you debug this further.

If you end up working on this to the point of being able to support all USB webcams, I would LOVE to add that as a feature. I just don't think there's an easy way to do that at this time and I don't want to confuse the project's goal with supporting only a few USB webcams.

from raspilive.

jaredpetersen avatar jaredpetersen commented on September 20, 2024

Going to close this issue as this functionality is not supported by raspi-live.

from raspilive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.