Giter Site home page Giter Site logo

Comments (36)

Harinlen avatar Harinlen commented on July 20, 2024

额,您确认要用这个么?
我在Ubuntu 14.04下使用VLC有各种各样的bug。我们发现VLC好像根本没使用libVLC,猜测libVLC是VLC的一个封装。所以最后这个模块被放弃了,但是代码还是留在了那里。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

libVLC是VLC的一个封装, 没有问题呢
mu还没有禁用视频输出所以播放视频文件还会跳出视频窗口哦

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

我在Ubuntu下运行效率非常低,虽然可以运行但是有各种各样的bug。例如播放歌曲后需要等待的时间特别长。
VLC的依赖已经在包管理器的管理之内了。所以没有问题。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

我这儿到没有bug, 不过vlc确实不支持crossfade, 相比之下ffmpeg会好些

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

FFMpeg只能用于解码不能用于播放。
我们确实有后期转为FFMpeg解码然后使用OpenAL或者SDL输出的计划。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

您如果愿意帮助我们完善一下VLC的话,可以向我们提交pull request。我们会测试之后考虑继续维护VLC后端的。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

crossfade这个特性bass也没有支持。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

bass在linux下输出到ALSA也不太友好
VLC后端就一个时长显示的bug, 其他要用一段时间等vlc或者qt库更新之后才知道

话说时长信息怎么实现的

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

时长信息是直接从bass解析之后读取出来的。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

bass在我这里虚拟机下工作确实很不流畅。
不过VLC在Windows、Mac OS X下工作效果不如bass,而且bass在Windows下还有AISO插件。这也是我们最后选择bass而放弃VLC的原因。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

所以vlc后端就没有时长了?

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

VLC后端用了会有时长,但是您需要先禁用bass。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

可是编译的时候就禁用bass了啊

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

ldd mu |grep bass显示编译结果已经与bass无关了

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

我也写了VLC的音频信息读取模块,可能是因为很久没维护了的原因信息输出的有问题了。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

禁用bass后信息由FFMpeg解析后提供的。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

求代码位置

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

/src/plugin/module/knmusicplugin/knmusicplugin.cpp 里面。
400行:
#ifdef ENABLE_FFMPEG
parser->installAnalysiser(new KNMusicFFMpegAnalysiser);
#endif

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

我在Ubuntu下重新使用VLC编译了一遍,是有时间的。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

vlc
我这里使用VLC运行是一切正常的。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

额..得启用ffmpeg吗

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

是的,我没有把VLC作为音频解析的一部分。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

改成只用vlc的媒体信息读写行吗

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

额,我没写VLC的解析类,您稍等一下。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

关闭VLC视频输出:

knmusicvlcglobal.cpp 
35a36,39
> 
>       static const char* const vlc_opt [] = {
>               "--vout=dummy"
>       };
37c41
<     m_vlcInstance=libvlc_new(0, nullptr);
---
>     m_vlcInstance=libvlc_new(sizeof vlc_opt / sizeof *vlc_opt, vlc_opt);

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

我想起来我们之前为何放弃VLC了。
在我们这里首先VLC在解析MP3信息的时候不能获取比特率,而在读取FLAC的时候不能返回采样率。
而且会不定期出现当音乐停止播放的时候无法发出停止信号的问题。
所以我们最后放弃VLC了。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

我们后来重新使用FFMpeg也是为了弥补VLC的这个问题,最后还是没有效果。又切换回了bass。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

这样...还不如用全套ffmpeg..

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

FFMpeg只能用来解码不能输出。

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

我们已经考虑在不同平台上使用不同的输出了。Linux下的bass我们很早就觉得不是很好的解决方案了。考虑切换到Phonon。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

ffmpeg有ffplay啊
比如 https://github.com/anarsoul/libffplay

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

ffplay是ffmpeg和sdl合在一起的产物。我们更倾向使用一个播放框架,这样输出和解码能够分开。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

可是用libvlc就是无法分开了的吧

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

libvlc自身是可以进行配置的,这个取决于您如何设置VLC了。

from mu.

MidoriYakumo avatar MidoriYakumo commented on July 20, 2024

那还是看你的选择吧

from mu.

Harinlen avatar Harinlen commented on July 20, 2024

好的,谢谢您的关注!欢迎随时反馈您的任何问题或需求。

from mu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.