2023年2月1日
摘要:
直接上命令 ffprobe -select_streams v -i e:/media/baifa.mp4 -read_intervals "%+#10" -show_entries "frame=pict_type,pkt_pts_time,pkt_duration_time,interlaced
阅读全文
posted @ 2023-02-01 20:33
弘道者
阅读(128)
推荐(0)
2023年1月5日
摘要:
linux下C++获取系统CPU情况和网络使用情况 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #define MAXBUFSIZE 1024 #define WAIT_SECOND 3
阅读全文
posted @ 2023-01-05 17:03
弘道者
阅读(844)
推荐(0)
摘要:
Linux下用C语言获取IO信息 只获取iostat的CPU信息 代码如下 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include <errn
阅读全文
posted @ 2023-01-05 16:46
弘道者
阅读(81)
推荐(0)
2022年12月8日
摘要:
上次遇到ping一个机器丢包50% 连FTP居然还超时,其他机器都正常,找了很久的原因都没有找到,最后终于找到原因了,是以为定义了两个默认路由,应该是间隔生效了 要查询Linux下的路由规则用如下命令: route -n 要添加一个默认路由 route add default gw 192.168.
阅读全文
posted @ 2022-12-08 12:09
弘道者
阅读(94)
推荐(0)
2022年11月7日
摘要:
这次需要测试直播延时,添加一个实时的时间水印方便对比,命令如下: ffmpeg -i src.mp4 -c:v h264 -vf drawtext=text="%{localtime}":x=100:y=100:fontfile='C\:\\Windows\\fonts\\Arial.ttf':fo
阅读全文
posted @ 2022-11-07 16:43
弘道者
阅读(448)
推荐(0)
2022年9月15日
摘要:
#!/bin/bash dir=$(pwd) echo $dir cd $dir rm -rf cur cp test cur -r cd cur autoscan name=configure.ac mv configure.scan $name sed -i 's|AC_OUTPUT|AC_OU
阅读全文
posted @ 2022-09-15 13:19
弘道者
阅读(61)
推荐(0)
2022年8月25日
摘要:
如果需要在Windows下面用到openssl 就自己编译一下 1.安装perl 最好不要去官方下载 太慢了 给一个开源版本下载的网站https://strawberryperl.com/ 2.打开VS2005的命令行工具 如果其他版本也类似,如图 3.执行编译选项perl Configure VC
阅读全文
posted @ 2022-08-25 15:09
弘道者
阅读(138)
推荐(0)
2022年8月24日
摘要:
当需要编程加载der证书的时候 可以这样 unsigned char buf2[1024]={0}; FILE* fp = fopen("d:/test.der", "rb"); int n = fread(buf2, 1, 1024, fp); buf2[n] = 0; unsigned char
阅读全文
posted @ 2022-08-24 14:02
弘道者
阅读(132)
推荐(0)
2022年4月26日
摘要:
umount.nfs: /mnt/test: device is busy 有时候umount的时候会遇到其他正在使用的 当然最规范的用法是把正在使用的关掉 然后再umount 刚好遇到一个没有安装fuser命令 只能硬来了 sudo umount -l /mnt/test
阅读全文
posted @ 2022-04-26 14:57
弘道者
阅读(111)
推荐(0)
2022年3月30日
摘要:
简单点的方法 /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 更新系统时间的方法 ntpdate time.windows.com 如果没有ntpdate 就安装一下 yum install -y ntp 国内还可以用阿里云的服务器
阅读全文
posted @ 2022-03-30 22:59
弘道者
阅读(109)
推荐(0)