mjpg_streamer 在640X480分辨率小cpu占用50%,请问如何硬解
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 PRNIVIRTRESSHR S%CPU %MEM TIME+COMMAND
2381 root 20 0 47288 4140 3164 S44.10.5 1:33.70 mjpg_streamer
22 root 20 0 0 0 0 S 0.30.0 0:00.54 kworker/0:1
473 root 20 0 0 0 0 S 0.30.0 0:00.01 flush-93:0
3016 cubie 20 04168 1240900 R 0.30.1 0:00.10 top
1 root 20 01656636532 S 0.00.1 0:05.25 init
2 root 20 0 0 0 0 S 0.00.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.00.0 0:03.15 ksoftirqd/0
4 root 20 0 0 0 0 S 0.00.0 0:00.00 kworker/0:0
5 root 20 0 0 0 0 S 0.00.0 0:00.00 kworker/u:0
6 root rt 0 0 0 0 S 0.00.0 0:00.01 migration/0
7 root rt 0 0 0 0 S 0.00.0 0:00.02 migration/1
8 root 20 0 0 0 0 S 0.00.0 0:00.00 kworker/1:0
9 root 20 0 0 0 0 S 0.00.0 0:02.83 ksoftirqd/1
10 root 0 -20 0 0 0 S 0.00.0 0:00.00 cpuset
11 root 0 -20 0 0 0 S 0.00.0 0:00.00 khelper
12 root 20 0 0 0 0 S 0.00.0 0:00.00 kdevtmpfs
13 root 0 -20 0 0 0 S 0.00.0 0:00.00 netns
你的系统是否能硬播放? 好像不支持硬件编码的:http://linux-sunxi.org/Cedrus
最多是你回放能节省CPU。
joyhope 发表于 2014-9-12 22:27 static/image/common/back.gif
好像不支持硬件编码的:http://linux-sunxi.org/Cedrus
最多是你回放能节省CPU。
不懂,不节省cpu就不能支持720P以上的分辨率了。
想做1080P的监控几乎不可能。
页:
[1]