Coder Social home page Coder Social logo

Comments (5)

dukechem avatar dukechem commented on September 13, 2024

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.

jacksonliam avatar jacksonliam commented on September 13, 2024

Thanks, patch would be good.

For my curiosity, why are you using WXP mode?

from mjpg-streamer.

dukechem avatar dukechem commented on September 13, 2024

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.

jonlareau avatar jonlareau commented on September 13, 2024

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.

jacksonliam avatar jacksonliam commented on September 13, 2024

Not sure anyone has worked on patching this yet, no

from mjpg-streamer.

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.