Coder Social home page Coder Social logo

Comments (10)

jacksonliam avatar jacksonliam commented on September 13, 2024

Hmmm which version of v4l do you have?

from mjpg-streamer.

MrDini123 avatar MrDini123 commented on September 13, 2024

I have old git 20110614 version, because this is the last release which supports uvcvideo with this old kernel.

from mjpg-streamer.

jacksonliam avatar jacksonliam commented on September 13, 2024

Hmmm, It might be possible to conditionally #define out the lines its complaining about based on v4l version, but Its not work I'm going to do, mainly because I don't have anything with a kernel like that to test on.

For your purposes, edit mjpg-streamer/mjpg-streamer-experimental/plugins/input_uvc/input_uvc.c
and delete lines
90:
{ "auto", V4L2_CID_POWER_LINE_FREQUENCY_AUTO }
569
V4L_INT_OPT(V4L2_CID_ROTATE, rot, "rotation")

Should work without those as long as you don't try to use those options.

from mjpg-streamer.

MrDini123 avatar MrDini123 commented on September 13, 2024

Yes, it worked.

Another error now...:

[ 73%] Building C object plugins/output_file/CMakeFiles/output_file.dir/output_file.c.o
/i-data/bf835951/build/mjpg-streamer/mjpg-streamer-experimental/plugins/output_file/output_file.c: In function 'output_init':
/i-data/bf835951/build/mjpg-streamer/mjpg-streamer-experimental/plugins/output_file/output_file.c:503:28: error: 'V4L2_CTRL_TYPE_STRING' undeclared (first use in this function)
  filename_ctrl.ctrl.type = V4L2_CTRL_TYPE_STRING;
                            ^
/i-data/bf835951/build/mjpg-streamer/mjpg-streamer-experimental/plugins/output_file/output_file.c:503:28: note: each undeclared identifier is reported only once for each function it appears inplugins/output_file/CMakeFiles/output_file.dir/build.make:54: recipe for target 'plugins/output_file/CMakeFiles/output_file.dir/output_file.c.o' failed
make[2]: *** [plugins/output_file/CMakeFiles/output_file.dir/output_file.c.o] Error 1
CMakeFiles/Makefile2:305: recipe for target 'plugins/output_file/CMakeFiles/output_file.dir/all' failed
make[1]: *** [plugins/output_file/CMakeFiles/output_file.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

from mjpg-streamer.

jacksonliam avatar jacksonliam commented on September 13, 2024

Do you plan to use the file output plugin?

You can probably delete that line too (mjpg-streamer/mjpg-streamer-experimental/plugins/output_file/output_file.c line 503)

But I'm not sure what in that plugin will break without looking tracing it properly (on phone atm)

from mjpg-streamer.

MrDini123 avatar MrDini123 commented on September 13, 2024

No, how Can I disable it?

And one more thing! After the cmake it said, the http managment is disabled... So how Can enable it manualy?

Thanks!

from mjpg-streamer.

jacksonliam avatar jacksonliam commented on September 13, 2024

Did removing the line not work?
I think you can just remove 'add_subdirectory(plugins/output_http)' from CMakeLists.txt

HTTP management is an experimental feature to allow you to change properties (e.g. framerate) on the fly. I'm not sure it's working now (no one has worked on it for a long time) so it's disabled now. It's seperate from the streaming feature (output_http)

Cheers, Liam.

from mjpg-streamer.

MrDini123 avatar MrDini123 commented on September 13, 2024

I don't tried the line removing. I thought remove the whole module, if it is unneded and not works on my nas...

But now, I am trying to compile a newer v4l and look what happens.

from mjpg-streamer.

MrDini123 avatar MrDini123 commented on September 13, 2024

Thanks for Your help!

With the media build headers and with my kernel headers specified at the cmake command, I Could built it without uncommenting lines from source. :)

Cool, will try it with a camera tomorrow!

from mjpg-streamer.

MrDini123 avatar MrDini123 commented on September 13, 2024

Now, I could try it with my cameras. Works nicely. And I surprised, because I Cannot see the mjpg at the top's output... With motion, I had ~25% CPU busy.... With one cam. Nice!

Is it works with gspca drivers too?

Thanks a lot!

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.