Comments (5)
I think I have a fix... hacked the code a bit to provide correct boundary sequence, using this as guide:
https://nakkaya.com/2011/03/23/streaming-opencv-video-over-the-network-using-mjpeg/
Also looked at working code in old mjpeg, and headers in developers toolbar.
Anyways, with my hacked httpd.c code, now http://localhost:8080/cam1.mjpg streams ok in firefox and chromium. I'll clean it up and submit a patch in next few days.
from mjpg-streamer.
Thanks, patch would be good.
For my curiosity, why are you using WXP mode?
from mjpg-streamer.
Because, our 3d-printer web-interface requires URL for snapshots to end in .jpg as explained below.
We have several reprap 3d printers operating through a web-interface. A job can take hours/days. Recently (Jan 2016) the reprap firmware running the printer added ability to embed webcam snapshots updated every few seconds, as shown at http://reprap.org/wiki/Duet_Web_Control. At present, we can see a regularly updated static snapshot embedded in the 3d-printer web-interface, but only when we provide it a URL ending in .jpg And only WXP mode can make static snapshot abailable with URL of form: http://camera.ip:8080/cam1.jpg
So WXP mode seems to be needed for us because the reprap firmware at this point cannot process a camera URL that does not end in .jpg ... that is /static_simple.html won't embed.
For those that arrive here by a web-search, there is a Jan 2017 thread on webcams for duet at https://www.duet3d.com/forum/thread.php?pid=6542#p6542
from mjpg-streamer.
Has there been a bugfix for this yet? I also would like to be able to use the "/cam_X.mjpg" format for compatibility reasons.
from mjpg-streamer.
Not sure anyone has worked on patching this yet, no
from mjpg-streamer.
Related Issues (20)
- Does not work with octoprint HOT 4
- using this software to setup rtsp server HOT 1
- Webcam not running on Orange pi pc plus
- Stream-Resolution: 640x480 works, but snapshot has: 4056x3040 (hq-cam/picam3 via libcamera in OctoPrint) HOT 2
- Q: Pinecube compatibility?
- Bullseye can't install `libjpeg8-dev` - substituting `libjpeg62-turbo-dev` succeeds HOT 1
- !00% CPU when run 640x480
- problem with camera ALi Corp. M5602 Video Camera Controller (old acer notebook)
- Race Condition during system startup
- Impossible to delete dir
- not realy issue but would apreciate help. HOT 1
- "input_raspicam" plugin is not compiled HOT 7
- use soft link as device path
- Raspberry Pi arm64 potential fix HOT 2
- I run mjpg-streamer through docker but prompt the content
- Restart automatically when resolution changed
- i try input http but unsuccessful
- Protocol error: libv4l2: error turning on stream: Protocol error
- Control Interface dont work.
- streaming multiple usb cameras possible on pi 4B? HOT 2
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 mjpg-streamer.