Motion - Support Question 2006x 05x 23x 092215

Alternative cams on the same cam server port

Question

I use motion with three simultaneous bttv cams with three threads. I'd like to stream one of them at any one time on the same port, say 8080. Initial webcam port values are 8080, 0, 0 respectively. While motion is running, I try through the HTML control interface to shutdown the first webcam server by setting the port to 0, and to start one of the other webcam server by setting the port to 8080 to stream a different cam. It doesn't work however, the first cam continues. It is not meant to be this way? If I choose different ports for all three threads (8090,8091,8092), I have no problems, I would have to use the same port however.


Environment

Motion version: 3.2.6
ffmpeg version: none
Libraries:  
Server OS: Debian 3.1, kernel 2.6.8

-- JensBoegenhold - 23 May 2006

Answer

This is probably one of the setting that requires a restart of Motion to initialize the sockets.

What I will propose you do is continue using 3 ports in Motion but do not open up the access to them from the outside.

Instead use Apache and the RelatesProjects program MjpegProxyGrab.

This way you can serve all streams on port 80 or any other port that Apache serves. That also makes life easier for firewalls and you can make advanced access control using Apaches access control to the CGI script.

-- KennethLavrsen - 23 May 2006
Topic revision: r2 - 23 May 2006, KennethLavrsen
Copyright © 1999-2024 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.