1、打印太多,停打印的方法(停掉相关的进程)
a ->ps
152 root 0:00 -/bin/sh
154 root 0:03 /system/bin/nginx -c /system/etc/nginx.conf
b->kill 152154
c->pkill vcam
2、dmesg的用法:
Linux命令dmesg用来显示开机信息,kernel会将开机信息存储在ring buffer中。您若是开机时来不及查看信息,可利用dmesg来查看。开机信息亦保存在/var/log目录 中,名称为dmesg的文件里。
3、vcam+wifi丢帧机制
在文件lib/server/v882publisher/v882publisher.cpp中,
SetTargetFps//直接返回,手机端的码率调节时效;
SetTargetBps//直接返回,nginx中的码率调节机制失效。
SetTargetBpsControlType//质量或速度优先
在文件ngx_rtmp_handler.c中,函数
ngx_rtmp_send 里的if(1){..} //花括号中的代码就是nginx的码率调节的代码
在文件vmc_decoder_handler.cpp中,函数
push_filled_buffer //客户端丢置的代码
4、nginx的启动
启动代码位于:products\baseboard(vcam或wificamera)\configs\profile
(while [ true ] ;do /system/bin/nginx -c /system/etc/nginx.conf;sleep 1;done) &
#这个就是循环的启动nginx,nginx如果已经启动,则不作为,否则sleep 1s后,启动。这里呼应了为什么停打印的时候,要先kill掉sh,然后再kill
注意:关于profile,这个位于/etc/profile文件的改变会涉及到系统的环境,每次起机就会运行这个文件,profile 相当于一个sh文件