上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页
  2019年5月12日
摘要: ps -eo pid,etime,cmd 阅读全文
posted @ 2019-05-12 23:02 弘道者 阅读(429) 评论(0) 推荐(0)
  2019年5月5日
摘要: #!/bin/bash dir=$(dirname $(readlink -f "$0")) full=$(readlink -f "$0") name=$(basename $(readlink -f "$0")) cd $dir if [ "$1" != "runing" ] then rm - 阅读全文
posted @ 2019-05-05 10:28 弘道者 阅读(366) 评论(0) 推荐(0)
摘要: 当前脚本全路径 获取绝对路径(不带文件名) 获取文件名(不带路径) 阅读全文
posted @ 2019-05-05 09:56 弘道者 阅读(4829) 评论(0) 推荐(1)
摘要: ffmpeg -re -i e:/media/baifa.mp4 -filter_complex "setpts='(RTCTIME - RTCSTART) / (TB * 1000000)'" -vcodec h264 -acodec aac -f hls -hls_list_size 4 -hls_wrap 20 -hls_time 20 d:/demo/hls/cctv13/playlis... 阅读全文
posted @ 2019-05-05 09:30 弘道者 阅读(3950) 评论(0) 推荐(0)
  2019年4月25日
摘要: 网上的方法用mktime来转换日期到时间戳,会被当前环境的时区影响,现在这么做,用UTC的日期转时间戳这样要转换各地的时区也简单 使用很简单这样就行了 阅读全文
posted @ 2019-04-25 21:32 弘道者 阅读(7139) 评论(0) 推荐(0)
  2019年4月21日
摘要: 在开发的时候 控制台输出信息 点一下右键就进入编辑模式了,WIN7没有这个问题。网上搜了一下 说是要 禁用编辑模式,下面是代码VS2005可用 阅读全文
posted @ 2019-04-21 21:33 弘道者 阅读(1595) 评论(0) 推荐(0)
  2019年4月18日
摘要: 有两个程序A,B A绑定端口8000,然后用system函数启动程序B,然后再把A杀掉,这个时候再重启A的时候会发现绑定端口失败, 原因是端口被B绑定了,实际上是被继承了,为了避免这种情况,需要对主socket设置如下 阅读全文
posted @ 2019-04-18 16:57 弘道者 阅读(929) 评论(0) 推荐(0)
  2019年4月16日
摘要: 测试的时候经常要用到ffmpeg切hls的流 ffmpeg -re -i g:/media/baifa.mp4 -codec copy -f hls -hls_list_size 4 -hls_wrap 20 -hls_time 15 g:/media/demo/index.m3u8 主要是-hls 阅读全文
posted @ 2019-04-16 17:50 弘道者 阅读(6686) 评论(0) 推荐(0)
  2019年4月13日
摘要: PEM_write_bio_RSAPublicKey(pub, keypair);//生成 BEGIN RSA PUBLIC KEY 类型的公钥 PEM_write_bio_RSA_PUBKEY(pub2,keypair);//生成 BEGIN PUBLIC KEY 类型的公钥 PEM_read_b 阅读全文
posted @ 2019-04-13 15:17 弘道者 阅读(863) 评论(0) 推荐(0)
  2019年4月9日
摘要: 使用如下命令查询8000端口被哪个程序使用 阅读全文
posted @ 2019-04-09 20:33 弘道者 阅读(594) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页