|
mjpg_streamer 在640X480分辨率小cpu占用50%,请问如何硬解?是不是只能硬解才能降低cpu,web帧数都设置为5了。
还有这个能休眠吗?
运行mjpg_streamer 的命令如下:
mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0 -r 640x480 -f 5" -o "/usr/lib/output_http.so -p 8080 -w /usr/www"
cubian 系统 A20的CPU占用50.
op - 07:36:02 up 4 min, 1 user, load average: 0.35, 0.32, 0.14
Tasks: 87 total, 1 running, 86 sleeping, 0 stopped, 0 zombie
%Cpu(s): 23.5 us, 0.2 sy, 0.0 ni, 76.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 828096 total, 81988 used, 746108 free, 6784 buffers
KiB Swap: 0 total, 0 used, 0 free, 32744 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2381 root 20 0 47288 4140 3164 S 44.1 0.5 1:33.70 mjpg_streamer
22 root 20 0 0 0 0 S 0.3 0.0 0:00.54 kworker/0:1
473 root 20 0 0 0 0 S 0.3 0.0 0:00.01 flush-93:0
3016 cubie 20 0 4168 1240 900 R 0.3 0.1 0:00.10 top
1 root 20 0 1656 636 532 S 0.0 0.1 0:05.25 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:03.15 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0
5 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/u:0
6 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
7 root rt 0 0 0 0 S 0.0 0.0 0:00.02 migration/1
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0
9 root 20 0 0 0 0 S 0.0 0.0 0:02.83 ksoftirqd/1
10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cpuset
11 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
|
|