上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: 1. pip安装必要库 2. 配置环境变量 vim ~/.bashrc 在文件末尾添加 3. 创建自己的虚拟环境 p python3 这里可以指定自己想要的版本 阅读全文
posted @ 2020-01-17 06:21 FANDX 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 1. 安装必须要的依赖环境 系统:Ubuntu 2.安装librtmp 阅读全文
posted @ 2020-01-17 06:20 FANDX 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: PTS/DTS(时间戳) 要想解决时间同步问题就必须要了解ffmpeg中的PTS和DTS到底是什么 PTS: PTS(Presentation TimeStamp)是渲染用的时间戳,播放器会根据这个时间戳进行渲染播放 DTS: DTS(Decoding TimeStamp)解码时间戳,在视频pack 阅读全文
posted @ 2020-01-16 06:46 FANDX 阅读(2422) 评论(0) 推荐(0) 编辑
摘要: sws_scale 可以使用它进行图像像素的转换,分辨率的转换 sws_getContext 分配并返回一个SwsContext, 在sws_scale中可以执行执行转换和缩放的功能 阅读全文
posted @ 2020-01-12 08:49 FANDX 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 常用的结构体 AVCodec:编解码结构体 AVCodecContext:编解码上下文 AVFrame:解码后的帧 结构体的常用api av_frame_alloc():生成AVFrame结构体的 av_frame_free():释放AVFrame结构体 avcodec_alloc_context3 阅读全文
posted @ 2020-01-10 08:25 FANDX 阅读(381) 评论(0) 推荐(0) 编辑
摘要: ```c#include extern "C"{#include #include #include #include #include #include #include }using namespace std;static AVFrame *alloc_audio_frame(enum AVSampleFormat sample_fmt, uint64_t channel_la... 阅读全文
posted @ 2020-01-07 06:23 FANDX 阅读(667) 评论(0) 推荐(0) 编辑
摘要: ```c++#include extern "C"{#include #include #include #include #include #include #include }using namespace std;static AVFrame *alloc_picture(enum AVPixelFormat pix_fmt, int width, int height) { AVFr... 阅读全文
posted @ 2020-01-07 06:20 FANDX 阅读(629) 评论(0) 推荐(0) 编辑
摘要: c语言代码 vim numadd.c python代码 实验证明合理使用c语言+Python可以最大效率的实现优化代码 阅读全文
posted @ 2020-01-06 08:07 FANDX 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 多进程并发服务器的流程 1. socket; 创建监听套接字 2. bind; 绑定地址结构 3. listen(); 设置监听上限 4. accept();进行循环监听 5. fork();接收到客户端请求创建新的进程 6. close(); 与客户端通讯的套接字关闭 实现C语言并发服务器 阅读全文
posted @ 2020-01-06 07:54 FANDX 阅读(2583) 评论(0) 推荐(0) 编辑
摘要: 简单的TCP服务器实现 阅读全文
posted @ 2020-01-05 06:23 FANDX 阅读(1248) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页