How to play the video?



  • Hi, i'm using qt 5.5 on my computer.
    I wanna play a .avi video type.
    I'm using QMediaplayer, QMediaList and QVedioWidget to play my video.
    This is my code here.

    player = new QMediaPlayer;
    
    playlist = new QMediaPlaylist(player);
    playlist->addMedia(QUrl::fromLocalFile("file:///run/media/sda1/ch1_20170711164309.avi"));
    
    videoWidget = new QVideoWidget;
    player->setVideoOutput(videoWidget);
    
    videoWidget->show();
    playlist->setCurrentIndex(1);
    player->play();
    

    And it is no problem when i compile.
    But when i start to play my video it will show this error to me.

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    

    Did i miss anything?
    Or i have to install anything in my Linux+QT?

    Please Help!


  • Moderators

    @victor-wang
    so nowadays people do not even do the work to look 5 mins for qt examples or what?
    Beside of the possible difficulty it takes you probably longer to wait for an answer than the lookup itself.


  • Moderators

    @victor-wang I agree with @raven-worx - why don't you read documentation and check examples? Is it that hard?



  • @raven-worx
    I'm really sorry but actually i had read the example on the internet.
    And i think it's my problem that i didn't ask the question properly.
    I will rewrite the question.



  • @jsulm
    You are right. But actually i had read the example already.
    But i didn't ask the question properly.
    I will rewrite the question.


  • Moderators

    @victor-wang On Linux you need GStreamer libraries to play media files.
    Also, you can try to start your app with QT_DEBUG_PLUGINS set to 1 to see what is missing.



  • @jsulm
    First, I have check it and there is a gst-play-1.0 player in my linux+QT.
    I think i do have the libarary.

    Second, sorry for asking this.
    Where should i add QT_DEBUG_PLUGINS =1 in my program?
    Is it need to be add in .pro file or main.cpp?


  • Qt Champions 2016

    @victor-wang said in How to play the video?:

    QT_DEBUG_PLUGINS

    its an Environment Variable
    Must be set before running Creator
    How to do that depends on platform. (win/linux/mac)



  • @mrjj
    I am on the linux platform and i add this line before the QApplication.

    qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));
    

    And it is work, i got additional output now.

    But still I can't understand why i will get the error.


  • Moderators

    @victor-wang Can you please post the output?



  • @jsulm
    Sure, it a little bit long so i just post the place where i got the problem output.

    Got keys from pluygin meta data ("audiocapture")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/mediaservice" . . .
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/bearer" . . .
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libconnmanbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libconnmanbearer.so, metadata=
    {
         "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
                  "Keys": [
                           "connman"
                 ]
         },
         "className": "QConnmanEnginePlugin",
         "debug": false,
         "version": 328961
    }
    

    This is where the problem show.

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    

    What is this problem?
    Is the version of GStreamer too old?


  • Moderators

    @victor-wang Can you post everything?



  • @jsulm
    Sure, i will post all of it.

    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqwayland-egl.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqwayland-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-egl"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wayland-egl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqwayland-generic.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqwayland-generic.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wayland")
    loaded library "/usr/lib/qt5/plugins/platforms/libqwayland-generic.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/iconengines/libqsvgicon.so"
    Found metadata in lib /usr/lib/qt5/plugins/iconengines/libqsvgicon.so, metadata=
    {
        "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz",
                "svg.gz"
            ]
        },
        "className": "QSvgIconPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqdds.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqdds.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "dds"
            ],
            "MimeTypes": [
                "image/x-dds"
            ]
        },
        "className": "QDDSPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("dds")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqgif.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqgif.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "className": "QGifPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqicns.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqicns.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "icns"
            ],
            "MimeTypes": [
                "image/x-icns"
            ]
        },
        "className": "QICNSPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("icns")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqico.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqico.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon"
            ]
        },
        "className": "QICOPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ico", "cur")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqjp2.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqjp2.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jp2"
            ],
            "MimeTypes": [
                "image/jp2",
                "image/jpx",
                "image/jpm",
                "video/mj2"
            ]
        },
        "className": "QJp2Plugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jp2")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqjpeg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "className": "QJpegPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jpg", "jpeg")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqmng.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqmng.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "mng"
            ],
            "MimeTypes": [
                "image/x-mng"
            ]
        },
        "className": "QMngPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("mng")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqsvg.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqsvg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml"
            ]
        },
        "className": "QSvgPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtga.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtga.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "tga"
            ],
            "MimeTypes": [
                "image/x-tga"
            ]
        },
        "className": "QTgaPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("tga")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtiff.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "tiff",
                "tif"
            ],
            "MimeTypes": [
                "image/tiff",
                "image/tiff"
            ]
        },
        "className": "QTiffPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("tiff", "tif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwbmp.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "wbmp"
            ],
            "MimeTypes": [
                "image/vnd.wap.wbmp"
            ]
        },
        "className": "QWbmpPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wbmp")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwebp.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "webp"
            ],
            "MimeTypes": [
                "image/webp"
            ]
        },
        "className": "QWebpPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("webp")
    loaded library "/usr/lib/qt5/plugins/imageformats/libqdds.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqgif.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqicns.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqico.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqjp2.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqmng.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqsvg.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqtga.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
    flexcan 2090000.flexcan can0: writing ctrl=0x13292005
    IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
    "Cannot find device \"can1\"\n2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10\n    link/can  promiscuity 0 \n    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0 \n\t  bitrate 100000 sample-point 0.866 \n\t  tq 666 prop-seg 6 phase-seg1 6 phase-seg2 2 sjw 1\n\t  flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1\n\t  clock 30000000\n\t  re-started bus-errors arbit-lost error-warn error-pass bus-off\n\t  0          0          0          0          0          0         \n    RX: bytes  packets  errors  dropped overrun mcast   \n    0          0        0       0       0       0       \n    TX: bytes  packets  errors  dropped carrier collsns \n    0          0        0       0       0       0       \nDevice \"can1\" does not exist.\ncannot stop can1Cannot bitrate can1"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/wayland-graphics-integration-client" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/wayland-graphics-integration-client/libdrm-egl-server.so"
    Found metadata in lib /usr/lib/qt5/plugins/wayland-graphics-integration-client/libdrm-egl-server.so, metadata=
    {
        "IID": "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "drm-egl-server"
            ]
        },
        "className": "DrmEglServerBufferPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/wayland-graphics-integration-client/libwayland-egl.so"
    Found metadata in lib /usr/lib/qt5/plugins/wayland-graphics-integration-client/libwayland-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-egl"
            ]
        },
        "className": "QWaylandEglClientBufferPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wayland-egl")
    loaded library "/usr/lib/qt5/plugins/wayland-graphics-integration-client/libwayland-egl.so"
    Using Wayland-EGL
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/accessiblebridge" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/wayland-decoration-client" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/wayland-decoration-client/libbradient.so"
    Found metadata in lib /usr/lib/qt5/plugins/wayland-decoration-client/libbradient.so, metadata=
    {
        "IID": "org.qt-project.Qt.WaylandClient.QWaylandDecorationFactoryInterface.5.4",
        "MetaData": {
            "Keys": [
                "bradient"
            ]
        },
        "className": "QWaylandBradientDecorationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("bradient")
    loaded library "/usr/lib/qt5/plugins/wayland-decoration-client/libbradient.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/mediaservice" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/mediaservice/libqtmedia_audioengine.so"
    Found metadata in lib /usr/lib/qt5/plugins/mediaservice/libqtmedia_audioengine.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "audiocapture"
            ],
            "Services": [
                "org.qt-project.qt.audiosource"
            ]
        },
        "className": "AudioCaptureServicePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("audiocapture")
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/bearer" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libconnmanbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libconnmanbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "connman"
            ]
        },
        "className": "QConnmanEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("connman")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libqconnmanbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libqconnmanbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "connman"
            ]
        },
        "className": "QConnmanEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("connman")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libqgenericbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libqgenericbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "generic"
            ]
        },
        "className": "QGenericEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("generic")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libqnmbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libqnmbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "networkmanager"
            ]
        },
        "className": "QNetworkManagerEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("networkmanager")
    loaded library "/usr/lib/qt5/plugins/bearer/libconnmanbearer.so"
    loaded library "libdbus-1"
    loaded library "/usr/lib/qt5/plugins/bearer/libqgenericbearer.so"
    loaded library "/usr/lib/qt5/plugins/bearer/libqnmbearer.so"
    
    

    Here is all the debug output.


  • Moderators

    @victor-wang Can you do

    ldd PATH_TO_YOUR_QT/gcc_64/plugins/mediaservice/libgstmediaplayer.so
    

    and post the output?



  • @jsulm
    I did not have libgstmediaplayer.so this file.
    And i have no ldd commend in my Linux+QT.


  • Moderators

    @victor-wang You don't have libgstmediaplayer.so? How did you install Qt? Without this plug-in you will not be able to play media files!
    I'm sure you have ldd on your machine, it is usually installed by default (package libc-bin on Ubuntu).



  • @jsulm
    But i have got this in my machine.
    usr/lib/qt5/plugins/mediaservice/libqtmedia_audioengine.so


  • Moderators

    @victor-wang This is for audio as the file name says. You want to play video, right?



  • @jsulm
    Yes, I want to play video.
    But i can play my video vy this commend "gst-play-1.0 /home/video.avi"



  • @jsulm
    I'm using Yocto project to build the rootfs and all the image contents u-boot kernel . . .
    And i'm using Yocto project on Ubuntu to build Linux+QT image for my platform.


  • Moderators

    @victor-wang When I guess you did not build libgstmediaplayer.so plug-in.



  • @jsulm

    gstreamer                                         :0.10.36-r2
    gstreamer1.0                                        :1.6.0-r0
    gstreamer1.0-meta-base                                :1.0-r0
    gstreamer1.0-plugins-bad                            :1.6.0-r0
    gstreamer1.0-plugins-base                           :1.6.0-r0
    gstreamer1.0-plugins-good                           :1.6.0-r0
    gstreamer1.0-plugins-imx                           :0.12.0-r0
    gstreamer1.0-rtsp-server                            :1.6.0-r0
    
    

    Which one i should do bitbake?

    I had already do:

    gstreamer                                         :0.10.36-r2
    gstreamer1.0                                        :1.6.0-r0
    gstreamer1.0-plugins-good                           :1.6.0-r0
    gstreamer1.0-rtsp-server                            :1.6.0-r0
    
    

    Do i have to build all of it?


  • Moderators

    @victor-wang Not GStreamer is missing but the Qt plug-in libgstmediaplayer.so.
    Which GStreamer plug-ins to build depends on the media files you want to play, so I don't know which you need.



  • @jsulm
    What if i need to play .avi file?
    which one i should build?

    I think libgstmediaplayer.so is in one of them.


  • Moderators

    @victor-wang No, libgstmediaplayer.so is part of Qt not GStreamer!
    libgstmediaplayer.so uses GStreamer on Linux to play video files.
    You need to build that Qt plug-in, installing more GStreamer stuff will not help you.

    AVI is just a container and can contain many different formats, so I don't know which GStreamer plug-ins you need. You will need to find out by yourself (just try to play, if it doesn't play install one more GStreamer plug-in package and try again).



  • @jsulm
    I have found this two can do bitbake.

    qt5-plugin-generic-vboxtouch 
    maliit-plugins-qt5
    

    Actually i don't think it is the same thing as you said.


  • Moderators

    @victor-wang No, it must be something different



  • @jsulm
    But i can use this to play my video.

    gst-play-1.0
    

    Is this not part of GStreamer plug-ins?


  • Moderators

    @victor-wang No, it is the executable from GStreamer to play media files. It uses installed GStreamer plug-ins to play media files.



  • @jsulm
    I have found solution.
    i need to add a config in my local.conf and build the rootfs again.

    But now i got a new issue.
    This is my output.

    /run/media/sda1/producttestingtool_qt5 -platform wayland
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqeglfs.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqminimal.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqwayland-egl.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqwayland-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-egl"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wayland-egl")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/platforms/libqwayland-generic.so"
    Found metadata in lib /usr/lib/qt5/plugins/platforms/libqwayland-generic.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland"
            ]
        },
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wayland")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/platforms" ...
    loaded library "/usr/lib/qt5/plugins/platforms/libqwayland-generic.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/platformthemes" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/iconengines" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/iconengines/libqsvgicon.so"
    Found metadata in lib /usr/lib/qt5/plugins/iconengines/libqsvgicon.so, metadata=
    {
        "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz",
                "svg.gz"
            ]
        },
        "className": "QSvgIconPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz", "svg.gz")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/iconengines" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/imageformats" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqdds.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqdds.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "dds"
            ],
            "MimeTypes": [
                "image/x-dds"
            ]
        },
        "className": "QDDSPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("dds")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqgif.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqgif.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "gif"
            ],
            "MimeTypes": [
                "image/gif"
            ]
        },
        "className": "QGifPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqicns.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqicns.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "icns"
            ],
            "MimeTypes": [
                "image/x-icns"
            ]
        },
        "className": "QICNSPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("icns")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqico.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqico.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "ico",
                "cur"
            ],
            "MimeTypes": [
                "image/vnd.microsoft.icon"
            ]
        },
        "className": "QICOPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("ico", "cur")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqjp2.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqjp2.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jp2"
            ],
            "MimeTypes": [
                "image/jp2",
                "image/jpx",
                "image/jpm",
                "video/mj2"
            ]
        },
        "className": "QJp2Plugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jp2")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqjpeg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "jpg",
                "jpeg"
            ],
            "MimeTypes": [
                "image/jpeg",
                "image/jpeg"
            ]
        },
        "className": "QJpegPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("jpg", "jpeg")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqmng.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqmng.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "mng"
            ],
            "MimeTypes": [
                "image/x-mng"
            ]
        },
        "className": "QMngPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("mng")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqsvg.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqsvg.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "svg",
                "svgz"
            ],
            "MimeTypes": [
                "image/svg+xml"
            ]
        },
        "className": "QSvgPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("svg", "svgz")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtga.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtga.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "tga"
            ],
            "MimeTypes": [
                "image/x-tga"
            ]
        },
        "className": "QTgaPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("tga")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqtiff.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "tiff",
                "tif"
            ],
            "MimeTypes": [
                "image/tiff",
                "image/tiff"
            ]
        },
        "className": "QTiffPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("tiff", "tif")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwbmp.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "wbmp"
            ],
            "MimeTypes": [
                "image/vnd.wap.wbmp"
            ]
        },
        "className": "QWbmpPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wbmp")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
    Found metadata in lib /usr/lib/qt5/plugins/imageformats/libqwebp.so, metadata=
    {
        "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
        "MetaData": {
            "Keys": [
                "webp"
            ],
            "MimeTypes": [
                "image/webp"
            ]
        },
        "className": "QWebpPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("webp")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/imageformats" ...
    loaded library "/usr/lib/qt5/plugins/imageformats/libqdds.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqgif.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqicns.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqico.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqjp2.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqjpeg.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqmng.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqsvg.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqtga.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqtiff.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqwbmp.so"
    loaded library "/usr/lib/qt5/plugins/imageformats/libqwebp.so"
    "sh: /usr/bin/rw-eeprom-qt: No such file or directory\n"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/wayland-graphics-integration-client" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/wayland-graphics-integration-client/libdrm-egl-server.so"
    Found metadata in lib /usr/lib/qt5/plugins/wayland-graphics-integration-client/libdrm-egl-server.so, metadata=
    {
        "IID": "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "drm-egl-server"
            ]
        },
        "className": "DrmEglServerBufferPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/wayland-graphics-integration-client/libwayland-egl.so"
    Found metadata in lib /usr/lib/qt5/plugins/wayland-graphics-integration-client/libwayland-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-egl"
            ]
        },
        "className": "QWaylandEglClientBufferPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("wayland-egl")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/wayland-graphics-integration-client" ...
    loaded library "/usr/lib/qt5/plugins/wayland-graphics-integration-client/libwayland-egl.so"
    Using Wayland-EGL
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/accessiblebridge" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/accessiblebridge" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/wayland-decoration-client" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/wayland-decoration-client/libbradient.so"
    Found metadata in lib /usr/lib/qt5/plugins/wayland-decoration-client/libbradient.so, metadata=
    {
        "IID": "org.qt-project.Qt.WaylandClient.QWaylandDecorationFactoryInterface.5.4",
        "MetaData": {
            "Keys": [
                "bradient"
            ]
        },
        "className": "QWaylandBradientDecorationPlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("bradient")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/wayland-decoration-client" ...
    loaded library "/usr/lib/qt5/plugins/wayland-decoration-client/libbradient.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/mediaservice" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/mediaservice/libgstaudiodecoder.so"
    Found metadata in lib /usr/lib/qt5/plugins/mediaservice/libgstaudiodecoder.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "gstreameraudiodecode"
            ],
            "Services": [
                "org.qt-project.qt.audiodecode"
            ]
        },
        "className": "QGstreamerAudioDecoderServicePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gstreameraudiodecode")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/mediaservice/libgstcamerabin.so"
    Found metadata in lib /usr/lib/qt5/plugins/mediaservice/libgstcamerabin.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "gstreamercamerabin"
            ],
            "Services": [
                "org.qt-project.qt.camera"
            ]
        },
        "className": "CameraBinServicePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gstreamercamerabin")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/mediaservice/libgstmediacapture.so"
    Found metadata in lib /usr/lib/qt5/plugins/mediaservice/libgstmediacapture.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "gstreamermediacapture"
            ],
            "Services": [
                "org.qt-project.qt.audiosource"
            ]
        },
        "className": "QGstreamerCaptureServicePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gstreamermediacapture")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/mediaservice/libgstmediaplayer.so"
    Found metadata in lib /usr/lib/qt5/plugins/mediaservice/libgstmediaplayer.so, metadata=
    {
        "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
        "MetaData": {
            "Keys": [
                "gstreamermediaplayer"
            ],
            "Services": [
                "org.qt-project.qt.mediaplayer"
            ]
        },
        "className": "QGstreamerPlayerServicePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("gstreamermediaplayer")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/mediaservice" ...
    loaded library "/usr/lib/qt5/plugins/mediaservice/libgstmediaplayer.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/resourcepolicy" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/resourcepolicy" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/bearer" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libqconnmanbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libqconnmanbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "connman"
            ]
        },
        "className": "QConnmanEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("connman")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libqgenericbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libqgenericbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "generic"
            ]
        },
        "className": "QGenericEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("generic")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt5/plugins/bearer/libqnmbearer.so"
    Found metadata in lib /usr/lib/qt5/plugins/bearer/libqnmbearer.so, metadata=
    {
        "IID": "org.qt-project.Qt.QBearerEngineFactoryInterface",
        "MetaData": {
            "Keys": [
                "networkmanager"
            ]
        },
        "className": "QNetworkManagerEnginePlugin",
        "debug": false,
        "version": 328961
    }
    
    
    Got keys from plugin meta data ("networkmanager")
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/bearer" ...
    loaded library "/usr/lib/qt5/plugins/bearer/libqconnmanbearer.so"
    loaded library "libdbus-1"
    loaded library "/usr/lib/qt5/plugins/bearer/libqgenericbearer.so"
    loaded library "/usr/lib/qt5/plugins/bearer/libqnmbearer.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt5/plugins/video/gstvideorenderer" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/run/media/sda1/video/gstvideorenderer" ...
    
    ====== AIUR: 4.0.9 build on Jul 13 2017 14:18:47. ======
            Core: AVI_PARSER_03.05.22  build on Jan 19 2016 11:40:41
     file: /usr/lib/imx-mm/parser/lib_avi_parser_arm11_elinux.so.3.1
    ------------------------
        Track 00 [video_0] Enabled
            Duration: 0:01:50.643866000
            Language: und
        Mime:
            video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)byte-stream, width=(int)1920, height=(int)1080, framerate=(fraction)30000/1001
    
    ------------------------
    ------------------------
        Track 01 [audio_0] Enabled
            Duration: 0:01:50.000000000
            Language: und
        Mime:
            audio/x-raw, format=(string)S16LE, channels=(int)1, layout=(string)interleaved, rate=(int)8000, bitrate=(int)128000
    
    ------------------------
    [INFO]  Product Info: i.MX6Q/D/S
    [INFO]  Product Info: i.MX6Q/D/S
    ====== VPUDEC: 4.0.9 build on Jul 13 2017 14:19:27. ======
            wrapper: 1.0.65 (VPUWRAPPER_ARM_LINUX Build on Jul 13 2017 14:17:59)
            vpulib: 5.4.33
            firmware: 3.1.1.46072
    [INFO]  bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
    [WARN]  VPU iram is less than needed, some parts don't use iram
    Error: "GStreamer encountered a general stream error."
    

    It will show this error to me.
    Why is that happening?


  • Moderators

    @victor-wang said in How to play the video?:

    [WARN] VPU iram is less than needed, some parts don't use iram
    Error: "GStreamer encountered a general stream error."

    You mean this error?
    Can you try to play same file using gst-play-1.0?
    Do you get same error?



  • @jsulm
    Yes, i mean that error.
    And i can use gst-play-1.0 to play the same file without showing the error.


  • Moderators

    @victor-wang Then I don't know. You could search on Qt bug tracker for a known bug: https://bugreports.qt.io/browse/QTWEBSITE-779?jql=
    Or ask on developers mailing list: http://lists.qt-project.org/mailman/listinfo/interest


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.