LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2017, 10:14 PM   #1
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 633

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
http webcam server - low cpu


I'd like to use a webcam and have it accessible over http. Much like what motion does.

It should fulfill two basic things
  • Allow access over http
  • Be able to be accessed by more then one client at a time

motion works great, however the core part of motion: monitoring motion uses up 50% of my cpu on my raspberry pi. This Rpi does several other things, so I can't afford that much CPU times being used.

So, is it possible to completely disable motion tracking on motion or are there other webcam http servers out there?
 
Old 02-09-2017, 09:39 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
If the webcam has an MJPG mode it can be streamed with VLC. Although only viewed across a network with VLC, but it uses an http:// address. And on a 10/100 interface, like the pi, I can only do 960x720 over ethernet for my c270 which can do up to 1280x960 locally.

Various other routes with crtmpserver, nginx, minidlna, and such. Although never had much success on those. OBS might work, although that would probably need some CPU resources. The afore mentioned MJPG+VLC route just pumps a lot of data, and doesn't use much CPU.
 
Old 02-09-2017, 05:45 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,978

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
"is it possible to completely disable motion tracking on motion" Should have a configuration file. Line 2 and/or reduce other settings

"# Start in daemon (background) mode and release terminal (default: off)
daemon on
# Output 'normal' pictures when motion is detected (default: on)
[...]
output_normal off
# File to store the process ID, also called pid file. (default: not defined)
process_id_file /var/run/motion/motion.pid
# Image width (pixels). Valid range: Camera dependent, default: 352
width 640
# Image height (pixels). Valid range: Camera dependent, default: 288
height 480
# Maximum number of frames to be captured per second.
# Valid range: 2-100. Default: 100 (almost no limit).
framerate 7
# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// or file:///)
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
netcam_url value http://http://192.168.10.250:8080/videostream.cgi
# Username and password for network camera (only if required). Default: not defined
# Syntax is userassword
netcam_userpass admin:mypassword
# Target base directory for pictures and films
# Recommended to use absolute path. (Default: current working directory)
target_dir /home/carla/motion-images
# Codec to used by ffmpeg for the video compression.
[...]
ffmpeg_video_codec mpeg4"


From here https://www.linux.com/learn/how-oper...spycams-motion
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
CPU usage low in top, even though one process is using 80-90% of the CPU mwburden Linux - Software 6 10-23-2012 04:22 PM
Ideas for a low cost, low power, low noise web server/torrent box alecjtaylor Linux - Hardware 13 01-10-2012 05:26 AM
High Load Average, Low CPU, Low IO Wait ordaolmayanadam Linux - Server 13 07-15-2010 06:55 AM
Dual-cpu 450Mhx AP400 suitable as a low-cost server? melquiades Linux - General 2 11-06-2003 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration