Comments (3)
目前没有Mac啊,穷人。。。
from playerdemo.
环境:
Mac OS 11.3.1
Qt 5.15.2
SDL 2.0.14
ffmpeg 4.3.2
Mac版需要改
1, sdl初始化,sdl_window, sdl_renderer 初始化在主线程
2, sdl event循环在主线程 (我采用的是 QTimer + 写缓存 , 原来读取位置 改为 读缓存)
问题描述:
但是 目前出现的问题是SDL渲染了整个窗口(文件列表、播放进度条都 被覆盖);
ui->label宽高本来是:649 x 363
但是window = SDL_CreateWindowFrom((void *)play_wid);之后
SDL_GetWindowSize(window, &w, &h);获得宽高却是800 x 500
设置SDL_SetWindowSize(window, w, h);也没用, 是整个窗口变小或变大,但是 渲染区域也成了整个窗口。
求解决方案!!! 感谢!!!
from playerdemo.
环境:
Mac OS 11.3.1
Qt 5.15.2
SDL 2.0.14
ffmpeg 4.3.2Mac版需要改
1, sdl初始化,sdl_window, sdl_renderer 初始化在主线程
2, sdl event循环在主线程 (我采用的是 QTimer + 写缓存 , 原来读取位置 改为 读缓存)问题描述:
但是 目前出现的问题是SDL渲染了整个窗口(文件列表、播放进度条都 被覆盖);
ui->label宽高本来是:649 x 363
但是window = SDL_CreateWindowFrom((void *)play_wid);之后
SDL_GetWindowSize(window, &w, &h);获得宽高却是800 x 500设置SDL_SetWindowSize(window, w, h);也没用, 是整个窗口变小或变大,但是 渲染区域也成了整个窗口。
求解决方案!!! 感谢!!!
win和Mac坐标系不一致导致的,ubuntu一些情况下也存在这个问题,需要自己测试原点在哪个位置,然后对渲染坐标进行对应的调整
from playerdemo.
Related Issues (20)
- 无法启动 HOT 2
- api
- https://ffmpeg.zeranoe.com/builds/ 挂掉了
- Mac端编译运行后播放窗口是透明的,导入视频就闪退 HOT 3
- 编译错误
- 播放结束后,进度条上的时间还在增加
- 播放过程中,快进或快退后,视频播放会停止
- 请问Windows下怎么连接ffmpeg的动态库 HOT 1
- 视频去噪功能
- screen was not declared HOT 1
- 播放视频没声音
- 全屏后无法退出全屏状态 HOT 1
- 请问一下项目是如何解决窗口移动画面无法刷新的问题
- 声音与音量问题 HOT 2
- 点击停止播放按钮后软件异常退出 HOT 9
- macOS编译问题
- bin目录是在项目根目录下新建一个吗?没看到哪里有bin目录 HOT 2
- 新版的FFMPEG有许多api已经废弃了,能提供下项目内某些函数的思路嘛?
- 编译报错找不到avcodec-59.dll
- ffmpeg 库网站打不开
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playerdemo.