上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 106 下一页
摘要: 一、打开音频设备 设备可以是多媒体文件和物理设备 #ifndef TESTC_H #define TESTC_H #include <stdio.h> #include "libavutil/avutil.h" #include "libavdevice/avdevice.h" //打开音频设备相关 阅读全文
posted @ 2023-09-07 15:39 阿风小子 阅读(255) 评论(0) 推荐(0)
摘要: 系统环境: 系统版本:lubuntu 16.04 Ffmpge版本:ffmpeg version N-93527-g1125277 摄像头:1.3M HD WebCan 虚拟机:Oracle VM VirtualBox 5.2.22 指令查看设备 ffmpeg -devices 本章文档基于《ffm 阅读全文
posted @ 2023-09-07 15:31 阿风小子 阅读(200) 评论(0) 推荐(0)
摘要: 在FFmpeg中,可以使用libavdevice库来采集麦克风的音频。下面是一个简单示例: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <libavformat/avf 阅读全文
posted @ 2023-09-07 15:27 阿风小子 阅读(663) 评论(0) 推荐(0)
摘要: 一、简述 记--字符串分割,strtok()函数的使用例子、自己简单实现split()函数。 二、例子代码 #include <stdio.h> #include <string.h> /* * 函数:split * 描述:按指定分隔符分割字符串 * 参数: * str:要分割的字符串 * strL 阅读全文
posted @ 2023-08-30 20:03 阿风小子 阅读(2439) 评论(0) 推荐(0)
摘要: 经过这几天的验证,终于走通了FFmpeg读取USB摄像头H264帧,然后用rtmp推流。使用的版本是4.0.2,网上的示例要么是命令形式的,要么是读取YUV格式的数据,然后在编码的,所以只能自己摸索了。 FFmpeg的源码在ubuntu16.04上的编译就不说了,这个网上的文章很多,这里我要说的是, 阅读全文
posted @ 2023-08-29 15:57 阿风小子 阅读(2455) 评论(0) 推荐(1)
摘要: 一般ffmpeg都是直接从文件中读取或者从网络流中读取,比如rtp://xx.xx.xx.xx:xxxx。 事实上也支持从内存中获取。 函数avio_alloc_context()实现该功能。 AVIOContext *avio_alloc_context( unsigned char *buffe 阅读全文
posted @ 2023-08-29 14:15 阿风小子 阅读(578) 评论(0) 推荐(0)
摘要: 前言 由于 ffmpeg4.4 缩放 NV12 后会导致颜色出现异常, 最后只能通过理解 NV12 的数据排列方式来实现 NV12 的缩放. 调用 FFmpeg 的 sws_getContext (NV12→NV12颜色异常) 测试了其中的所有缩放算法, 但是缩放后的图像都会有问题, 颜色对不上, 阅读全文
posted @ 2023-08-28 17:05 阿风小子 阅读(243) 评论(0) 推荐(0)
摘要: 闲话不说,centos上如何安装rar、unrar在线解压缩软件呢?如果您的centos是32位的,执行如下命令: wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gztar -zxvf rarlinux-3.9.3.tar.gzcd rarma 阅读全文
posted @ 2023-08-24 23:36 阿风小子 阅读(2303) 评论(0) 推荐(0)
摘要: 64位下载Releases · BtbN/FFmpeg-Builds (github.com) 32位下载 https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/tag/latest 阅读全文
posted @ 2023-08-21 10:42 阿风小子 阅读(996) 评论(0) 推荐(0)
摘要: FFmpeg支持Rtsp接收功能,并且相关的协议实现已经很完善了,另外它也支持保存文件的功能,这里我就向大家介绍怎么用它的API来实现这两个功能。 我把接收RTSP和录制文件的逻辑都用一个类RtspStreamMuxTask来处理,下面给出这个类的头文件和源文件。 RtspStreamMuxTask 阅读全文
posted @ 2023-08-16 19:37 阿风小子 阅读(1306) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 106 下一页