QMediaPlayer resource error

前端 未结 1 1516
鱼传尺愫
鱼传尺愫 2021-01-13 13:23

I\'m using Qt Creator 2.7.2 (Qt 5.1) on Windows 8 Pro x64. I\'m having trouble with QMediaPlayer. There are some MP3 files on my PC which run fine on Windows Media Player, b

1条回答
  •  有刺的猬
    2021-01-13 14:08

    It might have something to to with the ID3 tags of the file.

    I had a similar problem: I was trying to play some MP3 files with QMediaPlayer. One of the files generated that error while the others played fine (on Windows 7). On Linux though, they all played fine.

    So I ran the 'file' command on my MP3 files and noticed that the problematic MP3 file had a ID3 version 2.4.0 tag while all the others had ID3 version 2.3.0. I deleted the ID3 tag of that file completely using an ID3 tag editor and after that the file played successfully.

    A wild guess here: DirectShow, which is used by QMediaPlayer as backend on Windows, chokes on ID3 version 2.4 and only recognizes older versions. And QMediaPlayer on Linux uses GStreamer as backend, which does not have that problem.

    0 讨论(0)
提交回复
热议问题