Qt QML MediaPlayer H264不播放,但MP4工作正常

Qt QML MediaPlayer H264不播放,但MP4工作正常,qt,video,qml,mp4,h.264,Qt,Video,Qml,Mp4,H.264,我有一个h264/264文件,我尝试在QML中播放它,如下所示: MediaPlayer { id: mediaplayer source: "file:///blah.h264" } VideoOutput{ id: videoPlayer anchors.fill: parent source:mediaplayer } MouseArea {

我有一个h264/264文件,我尝试在QML中播放它,如下所示:

    MediaPlayer {
        id: mediaplayer
        source: "file:///blah.h264"
    }

    VideoOutput{
        id: videoPlayer
        anchors.fill: parent
        source:mediaplayer
    }

    MouseArea {
            id: playArea
            anchors.fill: parent
            onPressed:  {
                console.log("play")
                mediaplayer.play()
            }
    }
它不起作用。我也尝试了同样的方法,但是使用了一个.mp4文件,它可以工作,但是这个不行。
如果有帮助的话,我也在使用python pyside…

大多数播放引擎不支持原始流。将文件放入容器中。ffmpeg-i blah.264-编解码器副本blah.mp4