CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 5950|回复: 3

mjpg_streamer 在640X480分辨率小cpu占用50%,请问如何硬解

[复制链接]
发表于 2014-9-12 15:39:12 | 显示全部楼层 |阅读模式
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   

回复

使用道具 举报

发表于 2014-9-12 20:23:20 | 显示全部楼层
你的系统是否能硬播放?
回复 支持 反对

使用道具 举报

发表于 2014-9-12 22:27:12 | 显示全部楼层
好像不支持硬件编码的:http://linux-sunxi.org/Cedrus

最多是你回放能节省CPU。 
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-9-16 08:46:34 | 显示全部楼层
joyhope 发表于 2014-9-12 22:27
好像不支持硬件编码的:http://linux-sunxi.org/Cedrus

最多是你回放能节省CPU。 

不懂,不节省cpu就不能支持720P以上的分辨率了。
想做1080P的监控几乎不可能。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-3 07:50 , Processed in 0.021460 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部