QML 播放 http 协议开头的视频流的一些问题
来源:互联网 发布:2016淘宝618报名 编辑:程序博客网 时间:2024/05/16 15:23
好吧,其实就是移动宽带的锅,看不了视频就是移动宽带丧心病狂的屏蔽了一堆网站。
在 Window 7 下,使用 QML 的 MediaPlayer
播放在线视频时打印如下错误码:
DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c0005
大体是设置播放源失败。
然后在 QML video element and UNC paths 这个帖子中发现了一些线索。
以下为 mattlc 的帖子
Hi,After many different codec tests, I still have a problem but I can focus on it much more precisely.I installed MPC in order to have a stable directshow player.With the codec tweak tools, I disabled all third part codecs and I was able to play a local mp4 file by using native DTV/DVD windows codec on MPC and Qt Player.I also tried q remote http mp4 file :on MPC : OK (using quartz.dll = DirectShow Source Filters for remote files and haali splitter.ax splitter for mp4)on Qt Player : KO.QtMultimedia fail to find a DirectShow source filter.Here is the line which fails in DirectShow Qt Plugin class (DirectShowPlayerService):@hr = m_graph->AddSourceFilter(reinterpret_cast<const OLECHAR *>(url.toString().utf16()), L"Source", &source);@"m_graph" is a IFilterGraph2 implementation created by the DirectShow "CoCreateInstance" function.This class (DirectShowPlayerService) use static GUIDs for building both the graph and the source filter. I didn't managed to find any of these GUID in my available codecs and in directshow api reference.Can you or anyone tell me if this sound like a Qt bug or a wrong codec environment ?Thanks a lot.@fas.ysk : thanks for all of your help
大体就是 Qt 插件加载 m_graph->AddSourceFilter(reinterpret_cast<const OLECHAR *>(url.toString().utf16()), L"Source", &source);
这段代码执行失败,无法加载 http
协议的视频流。
具体的 bug 描述在 Implementation of DirectShow in QtMultimediaKit can be incomplete.
解决方案,暂时没有,或许安装 LAV 或者其他 ShowDirect 的解码器就可以解决吧。。。
或者使用使用 QtAV。
ps: 安卓上没有此问题。
获取b站视频在线播放源
1 0
- QML 播放 http 协议开头的视频流的一些问题
- qml部署ios播放声音的一些问题
- QML带进度条的视频播放功能
- qml播放带进度条的视频
- 视频播放相关的协议
- 视频播放的问题
- 用QML实现简单音视频播放器的实践
- 使用Everest下SMPlayer播放rmvb视频的一些问题
- 记录下用MPMoviePlayerViewController做视频播放的一些问题
- 以http为协议头开头的url有哪些?
- qml delegate内的一些问题
- IOS 上如何播放RTSP协议的视频流
- 视频播放相关的网络协议
- Opencv播放视频的问题
- JMF播放视频的问题
- WebView播放视频的问题
- http协议的一些总结
- HTTP协议的一些笔记
- codeforces Kojiro and Furrari
- C++primer plus 编程练习10.10
- [BZOJ 3575] HNOI2014 道路堵塞
- 移动端尺寸基础知识
- Redis集群研究和实践(基于redis 3.0.5)(不错)
- QML 播放 http 协议开头的视频流的一些问题
- [LeetCode]154 有序数组旋转后的最小值 II
- C/C++基础-001
- IM中图片消息处理(二)
- MBProgressHUD的简单封装
- 进程等待示例(wait与waitpid调用)
- 股票交易日
- AMH4.2面板PHP升级5.6.9
- 【转】什么是序列化,为什么要序列化