""" 读取视频流(相机,视频,ip相机) """ import cv2 # url = "rtsp://admin/password@ip:port/live" # ip相机 # cap = cv2.VideoCapture("./video/01.mp4") # 视频 cap = cv2.Vid... ...
分类:
其他好文 时间:
2019-09-12 10:24:53
阅读次数:
135
首要必须学Python!OpenCV是深度学习出现之前最常用的工具,基本图像处理方面。 神经网络和深度学习算法 TensorFlow(谷歌)和Keras(用起来简单上手快) https://mooc.study.163.com/smartSpec/detail/1001457001.htm CV学习 ...
分类:
其他好文 时间:
2019-09-11 22:05:34
阅读次数:
100
ffmpeg -f dshow -i audio="Line 2 (Virtual Audio Cable)" -vcodec libx264 -acodec aac -preset:v ultrafast -tune:v zerlatency -f flv rtmp://stream.booyao ...
分类:
其他好文 时间:
2019-09-10 16:22:16
阅读次数:
95
SwrContext *swr_alloc(void); // 分配重采样的上下文。 SwrContext *swr_alloc_set_opts(struct SwrContext *s, int64_t out_ch_layout, AVSampleFormat out_sample_fmt, ...
分类:
其他好文 时间:
2019-09-05 23:33:23
阅读次数:
131
当需要把视频跳转到N秒的时候可以使用下面的方法:int64_t timestamp = N * AV_TIME_BASE; av_seek_frame(fmtctx, index_of_video, timestamp, AVSEEK_FLAG_BACKWARD); av_get_channel_l ...
分类:
其他好文 时间:
2019-09-05 23:30:37
阅读次数:
94
注册复用器,编码器等的函数av_register_all() 注册编解码器avcodec_register_all() 注册复用器的函数是av_register_output_format()。 注册解复用器的函数是av_register_input_format()。 注册协议处理器的函数是ffu ...
分类:
其他好文 时间:
2019-09-05 23:27:17
阅读次数:
127
swr_convert() 针对每一帧音频的处理。把一帧帧的音频作相应的重采样 int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in, int in_count); 参数1:音频重 ...
分类:
其他好文 时间:
2019-09-05 23:17:32
阅读次数:
164
FFmpeg 截取视频图片 标签(空格分隔): linux 安装FFmpeg 官网:http://www.ffmpeg.org/ 这里主要是linux环境下的安装 1. wget http://ffmpeg.org/releases/ffmpeg 3.1.3.tar.bz2 2. ar jxvf f ...
分类:
其他好文 时间:
2019-08-31 19:17:24
阅读次数:
47
```Python #coding:utf-8 ## 先去ffmpeg官网下载(https://ffmpeg.zeranoe.com/builds/),好了之后解压缩,配一下环境变量 ## 打开cmd,运行命令,安装如下的包 ## pip install baidu-aip ## pip insta... ...
分类:
其他好文 时间:
2019-08-29 14:19:27
阅读次数:
141
这周总体来讲,过的很轻松,基本上没什么任务安排,没有加班。周一将之前的一个小程序的小项目的所有接口做了小小的改动,当然小程序代码也是有变动的。周二逛了逛layui官网,准备一些冠泰系统的东西。周三周四,被安排一个调用阿里云只能语音交互的工作,就是用指定格式的音频文件调用阿里接口,得到音频对应的文字。... ...
分类:
其他好文 时间:
2019-08-26 09:38:43
阅读次数:
120