Comments (3)
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.
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.
Going to close this issue as this functionality is not supported by raspi-live.
from raspilive.
Related Issues (20)
- Stream (m3u8 format) cannot be played on iOS devices HOT 3
- took over my desktop HOT 7
- Shows that it is running, but no m3u8 file is generated HOT 19
- Run at boot HOT 1
- Image Rotation HOT 2
- Support ability to choose between fmp4 or mpegts with HLS HOT 3
- Old segment files are not removed when service is stopped and started again HOT 1
- Configuration Refactor HOT 2
- question - how can I set brightness and saturation parameters? HOT 2
- ffmpeg fails to compile on newest version of raspbian HOT 3
- Instructions need a little update to force link atomic lib. HOT 2
- Returns 404 HOT 1
- support lhls option HOT 2
- GO Rewrite HOT 1
- Debian packaging HOT 1
- CORS configuration HOT 5
- How many parallel connections it can handle? HOT 2
- Installation Instructions HOT 1
- [Question] How do I see the stream on the browser HOT 3
- SSL streaming HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspilive.