代码改变世界

ffmpeg通过rtsp对摄像头摄像头抓图

2020-07-10 13:09 by su_hq, 1253 阅读, 0 推荐, 收藏, 编辑
摘要:ffmpeg调用顺序 1.av_register_all 2.avformat_network_init 3.avformat_open_input 4.avformat_find_stream_info 5.av_find_best_stream 6.avcodec_find_decoder 7. 阅读全文

ffmpeg命令行截图

2020-07-09 23:19 by su_hq, 1320 阅读, 0 推荐, 收藏, 编辑
摘要:因为要接收反馈结果,cmd命令可以这样写 rtsp://user:password@ip:port -ss 00:00:01 -vframes 1 -f image2 -vcodec png image.png && echo succeeded ||echo failed 当ffmpeg执行正确时 阅读全文

ffmpeg保存为jpg文件

2020-07-09 18:40 by su_hq, 1272 阅读, 0 推荐, 收藏, 编辑
摘要:int img_savePicture(AVFrame *pFrame, char *out_filename) {//编码保存图片 int width = pFrame->width; int height = pFrame->height; AVCodecContext *pCodeCtx = 阅读全文

ffmpeg打开视频文件

2020-07-09 18:38 by su_hq, 873 阅读, 0 推荐, 收藏, 编辑
摘要:下载地址: https://ffmpeg.zeranoe.com/builds/ .h文件 extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/avuti 阅读全文

ffmpeg将mp4视频转换成多张jpg图片

2020-07-09 18:33 by su_hq, 3742 阅读, 0 推荐, 收藏, 编辑
摘要:https://blog.csdn.net/danmeng8068/article/details/96430660 1.分离视频音频流 ffmpeg -i input_file -vcodec copy -an output_file_video //分离视频流 ffmpeg -i input_f 阅读全文

Microsoft SQL Server 双机热备份,实时同步

2020-07-08 12:28 by su_hq, 1121 阅读, 0 推荐, 收藏, 编辑
摘要:参考:https://www.cnblogs.com/itdaocaoren/archive/2019/03/05/10475497.html 1.两台服务器,主服务器,从服务器,两台服务器都安装SQL Server 2008R2并且安装相同表结构的数据库(需要实时同步的数据库) 2.主服务器数据库 阅读全文

idhttp访问出现onnection closed gracefully

2020-07-07 11:47 by su_hq, 389 阅读, 0 推荐, 收藏, 编辑
摘要:idhttp=new TIdHTTP(NULL);idhttp->AllowCookies =true;idhttp->HandleRedirects =true; //允许重定向idhttp->ConnectTimeout =20000;idhttp->ReadTimeout =20000;//h 阅读全文

sql 身份信息显示XXXX

2020-07-06 15:45 by su_hq, 206 阅读, 0 推荐, 收藏, 编辑
摘要:DECLARE @CreditCardNumber VARCHAR(20)SET @CreditCardNumber = '170202199408103544' SELECT STUFF(@CreditCardNumber, 7, 8,'XXXX') 阅读全文

sql 拼接json

2020-07-06 15:40 by su_hq, 982 阅读, 0 推荐, 收藏, 编辑
摘要:select '[' + STUFF(( select top 10 ',{"carnumber":"' + cast(carnumber as varchar) + '"' + ',"goodsno":"' + cast(goodsno as varchar)+ '"' + ',"goods":" 阅读全文

wireshark抓包

2020-07-02 08:29 by su_hq, 147 阅读, 0 推荐, 收藏, 编辑
摘要:可以通过ip.addr,tcp.dst, tcp.port 和tcp.len>0的方式过滤得到指定IP和端口通信的数据包。 阅读全文