摘要:
缩放: 利用ffmpeg进行图像数据格式的转换以及图片的缩放应用中,主要用到了swscale.h文件中的三个函数,分别是: struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int 阅读全文
posted @ 2022-12-26 09:51
阿风小子
阅读(708)
评论(0)
推荐(0)
摘要:
#include <stdio.h>#include <time.h>#include <string>#include <windows.h>using namespace std; void main(){ //精确到秒 time_t rawtime; struct tm * timeinfo; 阅读全文
posted @ 2022-12-26 09:48
阿风小子
阅读(244)
评论(0)
推荐(0)
摘要:
VC2010增加了“#pragma execution_character_set("utf-8")”,指示char的执行字符集是UTF-8编码。 VS2010 设置 字符编码: “文件”->“高级保存选项” 里面设置编码试试... 虽然文件时UTF8但是编译的时候不支持UTF8,现在VS2010S 阅读全文
posted @ 2022-12-26 09:44
阿风小子
阅读(129)
评论(0)
推荐(0)
摘要:
vs2010 win7 下开发视频服务器,用到ffmpeg,debug版本运行正常,切换到release时,出现"0x00905a4d 处未处理的异常: 0xC0000005: 读取位置 0x00905a4d 时发生访问冲突",原以为是jrtplib得问题,鼓捣半天才发现是ffmpeg. 用一个很小 阅读全文
posted @ 2022-12-26 09:43
阿风小子
阅读(109)
评论(0)
推荐(0)
摘要:
ffmpeg 默认是用C文件来编译的,如果某个CPP文件想引用ffmpeg中的某些函数或者头文件,有可能出现 ‘UINT64_C’ was not declared in this scope的错误 情形大概如下 The same issue i'm getting here when compil 阅读全文
posted @ 2022-12-26 09:42
阿风小子
阅读(94)
评论(0)
推荐(0)
摘要:
第一步,执行命令:netstat -ano -a 显示所有连接和监听端口 -n 以数字形式显示地址和端口号。 此选项一般与 -a选项组合使用 -o 显示与每个连接相关的所属进程 ID。 Active ConnectionsProto Local Address Foreign Address Sta 阅读全文
posted @ 2022-12-26 09:39
阿风小子
阅读(105)
评论(0)
推荐(0)
摘要:
#include <semaphore.h> sem_t sem; sem_init(&sem, 0, 0); sem_post(&sem); sem_wait(&sem); sem_destroy(&sem); 信号量的数据类型为结构sem_t,它本质上是一个长整型的数。函数sem_init()用 阅读全文
posted @ 2022-12-26 09:33
阿风小子
阅读(150)
评论(0)
推荐(0)
摘要:
avformat_alloc_output_context2()。在基于FFmpeg的视音频编码器程序中,该函数通常是第一个调用的函数(除了组件注册函数av_register_all())。avformat_alloc_output_context2()函数可以初始化一个用于输出的AVFormatC 阅读全文
posted @ 2022-12-26 09:31
阿风小子
阅读(110)
评论(0)
推荐(0)
摘要:
牛逼的视频会议网站:http://wmnmtm.blog.163.com/blog/#m=0 ++++++++++++++++++++++++++++++++++++++++++++++++++++ http://wmnmtm.blog.163.com/blog/static/38245714201 阅读全文
posted @ 2022-12-26 09:29
阿风小子
阅读(597)
评论(0)
推荐(0)
摘要:
i_luma_deadzone[0]和i_luma_deadzone[1]分别对应inter和intra, 取值范围1~32,测试可以得知,这连个参数的调整可以对数据量有很大影响,值越大数据量相应越少,占用带宽越低; 码率控制模式有ABR(平均码率)、CQP(恒定质量)、CRF(恒定码率) ABR模 阅读全文
posted @ 2022-12-26 09:27
阿风小子
阅读(335)
评论(0)
推荐(0)
浙公网安备 33010602011771号