Motion - Support Question 2004x 12x 22x 220225

Bug in webcam using two streams?

Question

I am using the webcam feature to stream live pictures. This works really well with one thread. However when I add a second thread the second camera works but the first camera stops working. I have tried with and without the webcam_port parameter set in both config files and have tried with and without nph-mjprox. The ports are set to different values in each config files (8081 and 8082). I have also tried using 81 and 82 but no change. When I comment out the webcam_port line in the second thread config file it still appears on 8082/82 so it's almost like the parameter is being ignored.

I can't work it out! Anyone offer any help?

Environment

Motion version: 3.1.17
Libraries: curl, xmlrpc, ffmpeg
Server OS: redhat9

-- GarethThomas - 22 Dec 2004

Answer

Have you noticed that you need one thread config file for each camera?

Only when you have ONE camera can you do with only motion.conf. When you have two or more camera you need motion.conf AND one thread config file for each camera.

See the RunningMotionConfigFiles section in the MotionGuide

If the two cameras are USB cameras then also note that you normally need one USB controller per camera since one USB camera uses all the bandwidth of a USB 1.1. controller.

-- KennethLavrsen - 23 Dec 2004
Topic revision: r2 - 23 Dec 2004, KennethLavrsen
Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.