Qt qml MediaPlayer /视频仅复制声音(不带视频)

时间:2018-10-04 14:35:02

标签: qt qml

我在QML中使用播放器,安装了k-lite-codec软件包,并尝试播放mp4和avi视频格式,但它不播放它们,仅播放声音。 为什么是这样? 怎么了?

关闭应用程序后,我得到以下调试日志:

D3D11 WARNING: Process is terminating. Using simple reporting. Please call ReportLiveObjects() at runtime for standard reporting. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: Live Producer at 0x03DBE8CC, Refcount: 8. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03E35D18, Refcount: 2. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DBF780, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03CE68C4, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC56FC, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC58D4, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC5ACC, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC5CC4, Refcount: 0. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC6184, Refcount: 1. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC6734, Refcount: 1. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING:  Live Object at 0x03DC6CE4, Refcount: 1. [ STATE_CREATION WARNING #0: UNKNOWN]
D3D11 WARNING: Live                         Object :     10 [ STATE_CREATION WARNING #0: UNKNOWN]
DXGI WARNING: Live Producer at 0x03D1C814, Refcount: 3. [ STATE_CREATION WARNING #0: ]
DXGI WARNING:   Live Object at 0x03D4DCA0, Refcount: 3. [ STATE_CREATION WARNING #0: ]
DXGI WARNING: Live                         Object :      1 [ STATE_CREATION WARNING #0: ]

1 个答案:

答案 0 :(得分:0)

由于您提到了k-lite-codec,因此我假设您正在使用Windows。检查是否可以在Windows Media Player中播放它。如果不是(仅声音),则说明您的系统中缺少必要的编解码器。