- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 GStreamer播放RTSP视频流
本代码是使用GStreamer播放RTSP视频流,没有使用playbin,而是自己构建pipeline,经测试可以正常播放视频。 代码如下:#include <gst/gst.h>/* Structure to contain all our information, so we can pass it to callbacks */typedef struct _CustomData { GstElement *pipeline; ...
2021-11-12 11:49:34
3685
1
原创 GStreamer使用appsrc将视频数据发送到Pipeline中
最近学习GStreamer应用,其中一个需求是读取本地视频,并将视频数据发送到pipeline中。经过查询网上资料和动手调试,终于实现以上功能,现发布出来,供有需要的网友查看指导。本机环境为Linux Ubuntu16.04 x86_64。直接上代码:#include <gst/gst.h>#include <gst/app/gstappsrc.h>#include <stdio.h>#include <string.h>...
2021-11-10 17:00:52
3367
原创 Qt Creator配置dlib和opencv
在ubuntu下安装好Qt Creator后,使用dlib库进行人脸检测,需配置相关参数,以下配置都是在pro文件下添加1、配置dlibFor anyone using QtCreator, in the .pro file, the following will work: INCLUDEPATH += /home/username/dlib-19.13 LIBS += -L/home/user...
2018-06-27 09:49:23
1368
原创 windows下mysql提示access denied for user ''@'localhost' to database
最近在使用mysql,版本为‘5.6.20’
2014-08-29 12:30:01
74892
1
原创 jabberd2运行c2s出现failed loading authreg module 'mysql'
经过两天的努力,终于把jabberd2编译安装通过了,当y
2014-08-07 15:10:26
821
原创 编译jabberd 2出现expat.h: No such file or directory
本次使用的版本为jabberd版本为2.3.3
2014-08-05 17:13:02
10893
1
原创 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
问题描述: 在linux下安装使用mysql -uroot -p登录出现找不到 /var/lib/mysql/mysql.sock问题。 可以用如下命令登录:mysql -p --socket=/tmp/mysql.sock解决方法: 大多数mysql都是rpm方式安装的。它会自动寻找/var/lib/mysql/mysql.sock这个文件。
2014-08-04 15:52:07
10206
转载 linux安装mysql出现Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH),提示解决方法
[root@localhost software]# cd mysql-5.5.11[root@localhost mysql-5.5.11]# cmake .-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)CMake Error at cmake/readline.cmake:82 (MES
2014-08-04 10:22:12
24766
1
转载 64位Windows7、Vista的IIS中网站数据库连接失败的解决办法
在64位的Windows 7以及Vista中安装IIS,但是添加添加带数据库的网站后很容易发现网站出现“数据库连接失败”。例如以下故障:1、An error occurred on the server when processing the URL.Please contact the system administrator.2、错误类型:ADODB.Connection (0x
2012-11-28 17:45:56
885
原创 批处理命令
隐藏批处理运行的窗口@echo offif "%1" == "h" goto beginmshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit:beginecho 这里开始运行你的命令定时启动关闭exe程序@echo offecho wscript.sleep
2012-11-27 17:57:44
1601
原创 在“运行”里可以输入的命令
“开始”—“运行”—命令大全1. gpedit.msc-----组策略 2. sndrec32-------录音机3. Nslookup-------IP地址侦测器4. explorer-------打开资源管理器5. logoff---------注销命令6. tsshutdn-------60秒倒计时关机命令7. lusrmgr.msc----本机用户和组8.
2012-11-27 16:51:03
950
原创 sql语句里的limit使用方法
SELECT * FROM table LIMIT [offset,] rows | rows OFFSET offset 在我们使用查询语句的时候,经常要返回前几条或者中间某几行数据,这个时候怎么办呢?不用担心,mysql已经为我们提供了上面这样一个功能。 LIMIT 子句可以被用于强制 SELECT 语句返回指定的记录数。LIMIT 接受一个或两个数字参数。参数必须
2012-09-13 14:36:19
136946
原创 CString 成员函数用法大全
CString的构造函数CString( );例:CString csStr;CString( const CString& stringSrc );例:CString csStr("ABCDEF中文123456"); CString csStr2(csStr);CString( TCHAR ch, int nRepeat = 1 );例:CStr
2012-08-16 16:03:24
587
原创 VC 对编辑框的操作
编辑框控件是MFC使用频率较高的控件,本文主要介绍该控件的基本操作,包括改变背景、字体、文本颜色,长度限制、中英文字判断。1、长度限制在对话框初始化函数OnInitDialog()中:m_edit1.SetLimitText(8); //m_edit1为编辑框的成员变量或者CEdit *pEdit=(CEdit *)Get
2012-08-03 11:16:55
1406
转载 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int .
BaseClasses/ctlutil.h(278) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 错误发生在:operator=(LONG); 函数定义中,这是因为在VC6中,如果没有显示的指定返回值类型,编译器将其视为默认整型;但是vs2005不支持
2012-07-30 11:22:04
532
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人