Comments (6)
解决了,是这个文件的编码问题,转换一下就好了
from playerdemo.
文件编码问题一直都存在,因为同时要支持Linux,暂时没想到好的解决办法
from playerdemo.
@itisyang 大神的代码质量还是挺不错的,看起来很舒服,赞一个。有个问题,我用公司电脑跑这个demo的时候,播放器没有声音,用其它播放器有声音。把这个demo拿到自己笔记本上放的时候又是有声音的。用ffplay播放的时候也是没有声音,不知道是ffplay代码那块哪里没有初始化好,会提示以下信息:SDL_OpenAudio (2 channels, 48000 Hz): WASAPI can't initialize audio client:
SDL_OpenAudio (1 channels, 48000 Hz): WASAPI can't initialize audio client:
No more combinations to try, audio open failed
from playerdemo.
大概率驱动没装,或者扬声器坏的
from playerdemo.
@itisyang 已查明问题, 在audio_open入口处加上CoInitialize(NULL);可解决在windows上部分情况无声的问题
from playerdemo.
set SDL_AUDIODRIVER=directsound
from playerdemo.
Related Issues (20)
- 放在哪个bin目录下啊?playerdemo-master\lib\ffmpeg\bin吗? HOT 2
- 功能要求。
- 这个博客地址不能访问 HOT 1
- 求编译好的Mac版 HOT 3
- ubuntu编译时,在ui_ctrlbar.h下找不到CustomSlider.h HOT 3
- 无法启动 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
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.