- 博客(101)
- 资源 (88)
- 收藏
- 关注
原创 CENTOS安装配置samba
安装sambayum install -y samba允许WINDOWS访问/etc/sysconfig/selinuxSELINUX=disabled
2020-06-30 05:53:54 429
原创 全网首发:CENTOS FreeSwitch集成NVIDIA CODEC
最近成功完成。为了方便需要的朋友,在此详细记录。安装nv-codec-headersgit clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.gitcd nv-codec-headerssudo makesudo make install安装NVIDIA驱动和CUDAhttps://quantum6.blog.csdn.net/article/details/106931358注意最后的更新环境变量。安装NVID
2020-06-29 21:53:37 516 2
原创 解决办法:java.lang.ExceptionInInitializerError
就是类初始化时出错了。有人奇怪了,类怎么初始化失败?就是类中有一些成员先进行初始化,产生异常。 怎么解决?就是把成员初始化的代码,集中到一个static块中,抓住异常抛出,即可看到原因。...
2020-06-29 10:42:53 3612 2
原创 访问jar中的文件
其实吾是想访问jar中的目录下的文件,结果没找到办法。做法:把目录下的文件,记到一个txt中。 访问这个文件,获得文件列表。具体代码: public void initIcons() { try { InputStream ins = this.getClass().getResourceAsStream(ICON_LIST_FILE); byte[] data = new byte[ins.availa
2020-06-29 08:26:41 4621 2
原创 FFmpeg Invalid data found when processing input
you shuold recompile
2020-06-28 20:46:03 13112 11
原创 全网首发:给doubango增加支持H264 stap-a帧
https://blog.csdn.net/quantum7/article/details/106724308
2020-06-28 19:31:02 528
原创 You must install signalwire-client-c to build mod_signalwire。
errormaking all mod_signalwiremake[4]: 进入目录“/home/quantum6/freeswitch/freeswitch-1.10.3/src/mod/applications/mod_signalwire”Makefile:934: *** You must install signalwire-client-c to build mod_signalwire。 停止。1https://blog.csdn.net/quantum7/article
2020-06-27 08:23:41 2346
原创 LINUX编译cmake
downloadwget https://cmake.org/files/v3.13/cmake-3.13.3.tar.gzdecompresstar -zxvf cmake-3.13.3.tar.gzcd cmake-3.13.3 build./bootstrapgmakesudo make install
2020-06-26 23:47:18 5981 2
原创 全网首发:为什么依赖库编译时加了-fPIC,还是提示依赖库要使用-fPIC?
请参考:https://blog.csdn.net/quantum7/article/details/106975043
2020-06-26 22:19:35 1021 1
原创 CMake 3.7.2 or higher is required. You are running version 2.8.12.2
errorCMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.7.2 or higher is required. You are running version 2.8.12.2编译安装,https://cmake.org/files/
2020-06-26 22:07:35 10413
原创 全网首发:relocation R_X86_64_PC32 against symbol can not be used when making a shared object recompile
网上所有教程,都说加-fPIC。大多情况下有用,个别情况下没用。比如编译FFmpeg。
2020-06-26 21:59:20 8661 14
原创 Cannot lock pid file /usr/local/freeswitch/run/freeswitch.pid.
killall freeswitchsudo freeswitch
2020-06-26 14:01:38 2761
原创 FFMpeg编译支持NVidia CODEC(成功)
下载头文件git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.gitcd nv-codec-headerssudo makesudo make install下载ffmpeg最新的。重新编译export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --modversion ffnvcodec X264.
2020-06-26 13:31:03 7450 33
原创 ERROR: cuvid requested, but not all dependencies are satisfied: ffnvcodec
PKG_CONFIG_PATH shoud has ffnvcodec.pc
2020-06-26 13:22:21 1743
原创 ERROR: cuda requested, but not all dependencies are satisfied: ffnvcodec
1.git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.gitmakesudo make install2.PKG_CONFIG_PATH=/usr/local/lib/pkgconfigX264_PATH=`pwd`/../x264-snapshot-20180101-2245-stableCUDA_PATH=/usr/local/cuda-11.0/./configure \ --extra
2020-06-26 13:09:34 3541 2
原创 编译错误:AVFormatContext没有名为‘url’的成员
avformat.c: 在函数‘mod_avformat_alloc_output_context2’中:avformat.c:385:4: 错误:‘AVFormatContext’没有名为‘url’的成员 s->url = strdup(filename);
2020-06-25 18:40:29 1395 4
原创 LIBAVCODEC_VERSION_INT是哪里定义的?
libavcodec/version.h#define LIBAVCODEC_VERSION_MAJOR 58#define LIBAVCODEC_VERSION_MINOR 12#define LIBAVCODEC_VERSION_MICRO 1
2020-06-25 18:38:47 1404
原创 编译NVIDIA之Video_Codec_SDK_9.1.23之Sample
download and installhttps://blog.csdn.net/quantum7/article/details/106932663libhttps://blog.csdn.net/quantum7/article/details/106954214https://blog.csdn.net/quantum7/article/details/106954225modifyhttps://blog.csdn.net/quantum7/article/details/
2020-06-25 06:58:08 2190
原创 编译错误:vulkan/vulkan.h:没有那个文件或目录
In file included from AppMotionEstimationVkCuda.cpp:21:0:utility.h:18:27: 致命错误:vulkan/vulkan.h:没有那个文件或目录sudo yum install -y vulkan-devel
2020-06-25 06:54:54 4199
原创 编译错误:GL/glew.h, GL/glut.h, EGL/egl.h没有那个文件或目录
In file included from AppDecGL.cpp:26:0:FramePresenterGL.h:21:21: 致命错误:GL/glew.h:没有那个文件或目录#include <GL/glew.h>sudo yum install glew-develIn file included from AppDecGL.cpp:26:0:FramePresenterGL.h:22:21: 致命错误:GL/glut.h:没有那个文件或目录#include <..
2020-06-25 06:52:46 6726 3
原创 对‘avformat_find_stream_info’未定义的引用、to the PKG_CONFIG_PATH environment variable
AppDec.o:在函数‘FFmpegDemuxer::FFmpegDemuxer(AVFormatContext*)’中:AppDec.cpp:(.text._ZN13FFmpegDemuxerC2EP15AVFormatContext[_ZN13FFmpegDemuxerC5EP15AVFormatContext]+0x19e):对‘avformat_find_stream_info’未定义的引用Package libavcodec was not found in the pkg-con.
2020-06-25 06:41:11 1690
原创 AV_PIX_FMT_YUV420P12LE’在此作用域中尚未声明
In file included from AppDec.cpp:26:0:../../NvCodec/../Utils/FFmpegDemuxer.h: 在构造函数‘FFmpegDemuxer::FFmpegDemuxer(AVFormatContext*)’中:../../NvCodec/../Utils/FFmpegDemuxer.h:93:14: 错误:‘AV_PIX_FMT_YUV420P12LE’在此作用域中尚未声明 case AV_PIX_FMT_YUV420P12LE.
2020-06-25 06:33:40 1252
原创 libavformat.so.57: cannot open shared object file: No such file or directory
error:-ERR [module load file routine returned an error]2020-06-24 20:36:59.576687 [CRIT] switch_loadable_module.c:1785 Error Loading module /usr/local/freeswitch/mod/mod_av.so**libavformat.so.57: cannot open shared object file: No such file or direct
2020-06-24 20:43:47 1148 2
原创 使用内存映射提高BufferedRandoAccessFile性能(测试可用)
今天看代码,看到RandomAccessFile。然后就想,这东西有没有缓冲?没有缓冲的话,性能会很差的。一搜索,说没有。然后有人提供了代码。吾简单复制过来,没有进行分析。以后有机会根据吾思路改写一下。import java.io.File;import java.io.FileNotFoundException;import java.io.IOException;import java.io.RandomAccessFile;import java.util.Arrays;publ
2020-06-24 11:47:33 492
原创 服务器一定要改默认端口
为什么要改?下图是吾在家里的二机,装的FreeSwitch,拍到的画面: 这个机器是内网,没有外网网址。有人绕过猫,竟然连到了我的机器上。你问他们为什么?他们说闲着也是闲着。所以一定要改默认端口。改了还会有人扫描,那样机会就少多了。...
2020-06-24 08:16:57 932
原创 NVIDIA官方指南:libav编译支持Nvidia Codec(结果失败)
https://developer.nvidia.com/ffmpeggit clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.gitcd nv-codec-headers && sudo make installmake clean./configure \ --prefix=/usr/local \ --enable-shared \ --enable-libx264 \
2020-06-23 22:33:07 665
原创 CentOS安装NVIDIA Video Codec SDK
https://developer.nvidia.com/nvidia-video-codec-sdk/download
2020-06-23 22:19:07 2619
原创 CentOS安装Nvidia显卡驱动和CUDA
checklsmod | grep nouveau修改/etc/modprobe.d/blacklist.conf 文件,加入一行并保存 #nvidia driver blacklist nouveau# 备份原来的镜像文件mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak# 重建新镜像文件dracut /boot/initramfs-$(uname -r).im...
2020-06-23 21:05:04 5157
原创 CentOS支持NTFS格式
errorinstall(no use)sudo yum install -y ntfs-3gdownloadhttps://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz./configuremake sudo make install
2020-06-23 20:10:51 787
原创 Dialog是逻辑字体,实际绘制时会选择不同字体
同事报了个故障,说是在国产平台上,行间距太大。吾视之,确实。于是跟踪了一番,更加糊涂。后来问了别人,说Dialog是逻辑字体。 什么是逻辑字体?这个字体实际上不存在,没有对应的字体文件。 在绘制时,会自行选择一种字体。 在不同平台、不同字体文件时,绘制效果就会有很大差异。 怎么解决?不使用Dialog字体,用指定字体。...
2020-06-23 11:52:43 1735
原创 CentOS关闭防火墙
据说会影响freeswitch。# checksystemctl status firewalld.service# stopsystemctl stop firewalld.service# disablesystemctl disable firewalld.service
2020-06-23 06:53:29 414
原创 Freeswitch拨号响应太慢的解决办法
FreeSwitch编译,启动,测试。然后就会发现,每次拨号时,对应要等很久才收到来电。这年头机器如此强大,网络如此迅速,这不正常啊? 进入/usr/local/freeswitch/conf,编译vars.xml,把默认的密码1234改成其他。再试试拨号,是不是就快了? 这是为什么?这是为了防止非法访问。...
2020-06-23 06:46:08 1801 6
原创 Centos删除virbr0网卡
deleteifconfig virbr0 downbrctl delbr virbr0nmcli device delete virbr0-nicsystemctl mask libvirtd.servicesystemctl disable libvirtd.service
2020-06-22 21:51:50 967
原创 You must install libopus-dev to build mod_opus
error:You must install libopus-dev to build mod_opushttps://blog.csdn.net/quantum7/article/details/104087104
2020-06-22 19:57:02 5017
原创 文本文件中,如何判断有效换行?
做代码工具,需要对行进行计数或者判断。WINDOWS/LINUX是不一样的,怎样正确处理?吾代码如下: private int isLine(final int pos) { // WINDOWS换行 if (textBuffer[pos] == '\r') { return (textBuffer[pos+1] == '\n') ? 2 : 1; } // LI
2020-06-22 11:36:52 1496
补丁包:无法启动此程序,因为计算机中丢失D3DCOMPILER-47.dll 尝试重新安装该程序以解
2022-11-13
Java3D/Jogl/Gluegen需要的各平台库WINDOWS/ARM64/MIPS64EL/LOONGARCH64
2022-11-11
英文字体图像的结构/baseline
2022-10-31
Android-USB-OTG-Camera可用的APK
2022-10-24
.Net Framework 4.6.2 3in1
2022-06-02
vs_Community-2017.zip
2022-06-02
vs_Community-2019.zip
2022-06-02
V4L2抓取USB摄像头YUV视频数据代码/v4l2.tar
2022-01-16
sourceforge-YUVplayer.zip
2022-01-04
jna-4.5.2,此版本不需要libjnidispatch.so
2021-12-24
commons-lang3-3.12.0.zip
2021-11-15
Windows-File-SignatureTool.zip
2021-11-01
Windows-File-SignatureTool.zip
2021-11-01
QT sqldriver/MySQL驱动qsqlmysql.dll MinGW版编译工程目录(含编译脚本)
2024-09-18
QT sqldriver/MySQL驱动qsqlmysql.dll MSVC版编译工程目录(含编译脚本)
2024-09-16
Toshiba eStudio Printer Driver 2303am-2803am-Series
2023-12-19
安卓UiAutomator/UiDevice/Instrumentation官方测试范例
2023-10-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人