求助Qt5的Media Player Example如何播放视频
我用的是VMware虚拟机装的Centos6.3。用Qt5的例子编译完运行,可以播放mp3,但是不能播放视频,试过mp4和mkv,都没成功,下面一堆报错,显示:
Starting /mnt/hgfs/share/video-player/build-player-Desktop_Qt_5_1_1_GCC_64bit-Debug/player...
(<unknown>:10778): Gtk-WARNING **: Attempt to load unknown IM context type 'gtk-im-context-none'
QMediaPlaylistNavigator: Jump outside playlist range
(<unknown>:10778): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
(<unknown>:10778): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
(<unknown>:10778): GVFS-RemoteVolumeMonitor-WARNING **: cannot connect to the session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Error: "GStreamer encountered a general stream error."
Error: "GStreamer encountered a general stream error."
但是我用centos application里的播放器都可以播放mp4和mkv的,这说明视频解码的库我应该都有了,但不知道是哪里出了问题? qt5 mp4 mkv 视频 centos --------------------编程问答-------------------- 没有知道吗? --------------------编程问答-------------------- = =b 正在研究 问题差不多。
补充:移动开发 , Qt