- 博客(121)
- 资源 (15)
- 问答 (1)
- 收藏
- 关注
原创 ffplay 指定窗口显示
ffplay 指定窗口显示视频, 此时 ffplay播放视频显示在 特定窗口上.主要是修改了 ffplay源码添加了一个参数接收 窗口句柄。
2023-01-02 19:53:59
2611
1
原创 解决 PIP 安装错误 DECRYPTION_FAILED_OR_BAD_RECORD_MAC
PIP 安装错误,DECRYPTION_FAILED_OR_BAD_RECORD_MAC
2022-09-25 19:45:39
2070
原创 ffmpeg通过OpenGL给视频添加 火焰边框
效果如下:shader 代码:float rand(vec2 n) { return fract(sin(dot(n, vec2(12.9898,12.1414))) * 83758.5453);}float noise(vec2 n) { const vec2 d = vec2(0.0, 1.0); vec2 b = floor(n); vec2 f = fract(n); return mix(mix(rand(b), rand(b +.
2021-12-26 18:30:06
3658
原创 ffmpeg通过OpenGL给视频添加 底部火焰2
效果如下:shader:float snoise(vec3 uv, float res){ const vec3 s = vec3(1e0, 1e2, 1e3); uv *= res; vec3 uv0 = floor(mod(uv, res))*s; vec3 uv1 = floor(mod(uv+vec3(1.), res))*s; vec3 f = fract(uv); f = f*f*(3.0-2.0*f); vec4 v = vec4(uv0.x+uv.
2021-12-26 17:10:10
1615
原创 ffmpeg通过OpenGL给视频添加 底部火焰
效果如下:shader:#define backgroundColor vec4(0.)vec3 random3(vec3 st){ st = vec3( dot(st,vec3(127.1,311.7,211.2)/20.), dot(st,vec3(269.5,183.3, 157.1)), dot(st,vec3(269.5,183.3, 17.1)) ); return -1.0 + 2.0*fract(sin(st)*4
2021-12-26 16:50:57
1468
原创 ffmpeg通过OpenGL给视频添加下雪特效源码
效果如下:shader代码:uniform float u_time;varying vec2 TextureCoordsVarying;uniform sampler2D texture;vec2 uv;float rnd(float x){ return fract(sin(dot(vec2(x+47.49,38.2467/(x+2.3)), vec2(12.9898, 78.233)))* (43758.5453));}float drawCir
2021-12-25 12:55:20
1823
2
原创 ffmpeg 一条命令实现 圆形画中画效果
具体效果如下:命令如下:ffmpeg-icircle.png-iD:\left\0000.mp4-iD:\left\bbb.mp4^-filter_complex[0:v]alphaextract[vMaskAlpha];[1:v][vMaskAlpha]alphamerge[vTop];[2:v][vTop]overlay=y=400:x=200-yD:\left\oooo.mp4解析:本质是circle.png , 改png 就是...
2021-11-13 18:57:12
3556
原创 解决 QThread 线程在 vscode中无法 打断点问题.
参考问题讨论:https://github.com/Microsoft/ptvsd/issues/428我选择的方案:1.pipinstallptvsd2 . 在 QThread 线程内调用ptvsd.debug_this_thread()如:from PyQt5.QtCore import *import ptvsd # 解决 QThread 线程无法加入断点问题.class MyTestThrad(QThread): def ru...
2021-10-14 23:14:34
1473
原创 c 文件中调用 cpp 中函数
name.cpp文件中封装一个 c函数如: extern "C" const char* get_my_name(); 关键对于 extern "C" 声明. 加上extern "C"后,会指示编译器这部分代码按C语言(而不是C++)的方式进行编译, 这样不会有链接错误.#include <string>using namespace std;extern "C" const char* get_my_name();class MyObj {public: ...
2021-09-12 17:17:37
3217
原创 ffmpeg 一条简单命令实现 字幕 触壁反弹 效果.
ffmpeg 通过 drawtext 实现动态字幕 实现触壁反弹 效果.具体效果如下:命令行为:ffmpeg -i D:\left\bbb.mp4 -vf "drawtext=text='FFmpeg':fontcolor=red:fontsize=66:x=(W-text_w)/2+((W-text_w)/2)*sin(n/15)" -y D:\left\out.mp4ffmpeg-iD:\left\bbb.mp4-vf"drawtext=te...
2021-09-07 21:31:19
1620
1
原创 ffmpeg 最简单的方式添加特效字幕
ffmpeg 默认带了libass 库, 可以很方便对ASS/SSA格式字幕进行渲染而要实现如下效果的 特效字幕:可以通过在https://gitee.com/seekladoom/Aegisub-Karaoke-Effect-481-Templates?_from=gitee_search 下载模版.将 ass歌词套模版既可....
2021-08-19 21:50:11
5217
2
原创 ffmpeg 一条简单命令 实现抖音 上下开幕特效
命令如下:ffmpeg -i /Volumes/tf/left/l1.mp4 -f lavfi -i color=black:s=576x1024 -filter_complex "[0:v][1:v]overlay=x=0:y=h/2+(t)*90[v1];[v1][1:v]overlay=x=0:y=-h/2-(t)*90" -shortest -y /Volumes/tf/out/ooo.mp4ffmpeg -i /Volumes/tf/left/l1.mp4 -f lavfi -i
2021-07-30 22:58:04
2250
原创 Mac 编译安装zlib
1. wget http://www.zlib.net/zlib-1.2.11.tar.gz2 . tar -zxf zlib-1.2.11.tar.gz3. cd zlib-1.2.114 ./configure5. make && make install
2021-07-18 19:49:43
3736
原创 使用 fmod windows 下实现音频变声 -- 萝莉 大叔 等 特效
将文件拖到窗口内, 点击播放可以看到变声效果.也可以 点击输出将文件变声输出到文件.
2021-04-10 11:36:11
491
原创 一个最简单python server, python3版本.
#!/usr/bin/env python#--coding:utf-8-- from http.server import HTTPServer,SimpleHTTPRequestHandlerfrom os import pathdef run(): port = 8000 print('starting server, port', port) # Server settings server_address = ('', port) http.
2020-10-08 08:26:59
379
原创 ffmpeg4.2 overlay 视频显示异常.
ffmpeg -i "/Users/cA b19fac1da490.mp4" -i "/Users/input/cA b19fac1da490.mp4" -ss 0.0 -filter_complex "[0:v]scale=1080x1920,setsar=sar=1/1[bg1];[bg1][0:v]overlay=x=0:y=0[v3];[v3]scale=1080:1920" -t 1 -an -y "/Users/testpy/aa.mp4"测试显示: 视频一个 奇怪的SAR[SAR...
2020-10-06 20:14:44
479
原创 VS2017 VS2015 等老版本的 vs下载
https://visualstudio.microsoft.com/zh-hans/vs/older-downloads/
2020-10-03 15:53:17
1286
原创 EasyDarwin windows 端配置 hls 直播地址.
我的配置文件,相对官网版本修改较少:[http]port=10008default_username=admindefault_password=admin[rtsp]port=554; rtsp 超时时间,包括RTSP建立连接与数据收发。timeout=28800; 是否使能gop cache。如果使能,服务器会缓存最后一个I帧以及其后的非I帧,以提高播放速度。但是可能在高并发的情况下带来内存压力。gop_cache_enable=1; 是否使能向服务器推流或者从服务器播
2020-09-26 21:02:06
1630
原创 vscode GDB 提示 "Unknown Source"
使用 vscode remote debug 调试linux 程序发现部分文件 可以断点,而其他文件失败,提示如图:breakpoint address could not be obtained.原因: 当前项目混合有C C++, 而编译选项只设置了CFLAG ,而没有设置 CXXFLAG,修复:CXXFLAGS=-std=c++...
2020-04-22 19:30:19
2293
原创 Linux ‘_snprintf’ was not declared in this scope
snprintf函数并不是标准c/c++中规定的函数,但是在许多编译器中,厂商提供了其实现的版本。 在gcc中,该函数名称就snprintf,而在VC中称为_snprintf#ifdef _WIN32#include <windows.h>#define snprintf _snprintf#else#include <pthread.h>#endif...
2020-02-26 18:10:13
3074
原创 Conda cannot proceed due to an error in your proxy configuration
执行conda install 出现错误.ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos and other configuration errors in any '.netrc' file in your home directory,any ...
2020-02-15 12:00:21
8585
5
原创 关于MP4BOX 自动添加版权信息
如: MP4BOX 合成的MP4 在文件末尾添加 freebox: 如: freeIsoMedia File Produced with GPAC 0.8.0-xx-HEAD源码在 isom_store.c 中如下:#if !defined(GPAC_DISABLE_ISOM) && !defined(GPAC_DISABLE_ISOM_WRITE)#defin...
2019-12-17 14:50:35
976
原创 /fc-cache/fc-cache.exe: error while loading shared libraries
当在msys32 配合 mingw环境下编译 ffmpeg时,编译 fontconfig遇到错误:/fc-cache/fc-cache.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directoryconfig配置如下: 可以看到已经把 sha...
2019-11-20 16:46:37
713
原创 curl 指定 openssl
编译opensslwget https://www.openssl.org/source/openssl-1.0.2o.tar.gztar -xzvf openssl-1.0.2ocd openssl-1.0.2o./config shared --prefix./build/lib/pkgconfigmake && make install...
2019-09-10 20:35:12
1955
原创 ffmpeg 添加 https支持.
只要添加 openssl支持即可我的ffmpeg configure为:./configure --prefix=$BUILD_PATH --enable-shared --disable-debug --disable-doc --enable-avresample --enable-nonfree --enable-gpl \--enable-openssl --disable...
2019-08-18 17:40:52
7823
原创 notepad++ 宏使用的一个例子
例如: 用宏剪切当前文档中指针所在的行. 宏-> 开始录制 -> 按CTRL+L (快捷键剪切当前行) -> 停止录制 -> 保存宏 此时 可以给当前宏添加一个快捷键和名称.而后可以直接使用 添加的快捷键 完成宏的执行....
2019-08-06 19:50:06
1875
1
原创 __divmoddi4 could not located in the dynamic link
用mingw 编译 ffmpeg 出现该提示:发现是libgcc_s_sjlj-1.dll 库拷贝错了. 系统有多个libgcc_s_sjlj-1.dll 文件.拷贝 mingw gcc所在目录的libgcc_s_sjlj-1.dll 文件即可....
2019-07-11 13:40:32
1595
原创 centos7 安装python3
参考:https://blog.youkuaiyun.com/elija940818/article/details/79238813环境依赖:yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-dev│-bash: pyhon3: command not foundel tk-de...
2019-06-18 13:46:57
241
原创 centos 静态编译MP4box
参考 文章:https://blog.youkuaiyun.com/qq_16053163/article/details/787017931. github下载gpac git clone --branch v0.7.1 https://github.com/gpac/gpac --depth=12.cd gpac chmod +x configure ./configu...
2019-06-17 10:59:55
359
原创 Incomplete MB-tree stats file
正确命令如下:ffmpeg -i D:/trans/bad.mp4 -c:v libx264 -profile:v main -b:v 0.5M -pass 1 -fastfirstpass 0 -passlogfile D:/TEST/passLog1 -an -f MP4 -yNUL &ffmpeg -i D:/trans/bad.mp4 -c:v libx26...
2019-06-03 09:47:42
352
1
转载 win10 64下安装 python库 TA-Lib
参考文章:http://www.techlog.cn/article/list/101832441. 下载ta-lib 依赖c库,当前下载的是 64位静态库. https://file.estan.cn/talib/ta-lib_x86-64.zip 或者到我上传的优快云资源里下载.https://download.youkuaiyun.com/download/w8...
2019-04-22 17:10:08
3131
原创 SOUI 将 soui-sys-resource.dll 静态编译到exe中方法.
来源:https://ui520.cn/bbs/topic/100-1.htmlsoui向导中支持将soui-sys-resource中的资源编译进PE也可以手动改源码编译进PE,方式如下:1,在winmain中修改资源加载方式SApplication *theApp = new SApplication(pRenderFactory, hInstance); ...
2019-04-15 13:43:39
571
原创 av_read_frame 拔掉摄像头 阻塞问题.
通过ffmpeg 读取摄像头数据, 当设备移除后, 读取数据不阻塞设置: infmtCtx->flags |= AVFMT_FLAG_NONBLOCK; // 加上既可. if (avformat_open_input(&infmtCtx, dshow_name, fmt, &options) != 0) { avformat_fre...
2019-03-27 17:46:09
2276
frei0r plugin 插件
2022-11-25
VA 2228版本
2018-06-13
mp4info.exe
2018-05-26
Visual Assist X 10.8.2001 破解版 支持VC2013及以下版本
2015-05-07
如何把一个透明窗口的内容保存为一个PNG 图片.
2016-01-07
TA创建的收藏夹 TA关注的收藏夹
TA关注的人