Videowidget example not showing video file names



  • I'm having difficulty getting the Qt (vers 4.7.4) videowidget example to show the names of video files. I'm using the videowidget source unmodified and cross compiling it for the Freescale i.MX controller running linux. It runs fine on the i.MX but only shows the names of static image files available for selection, no video files.

    Using gstreamer and also the Qt example 'qmediaplayer' I can select and play media files fine on the i.MX.

    Adding a bit of debug into videoplayer.cpp, VideoPlayer::openFile()

    @qDebug() << QMovie::supportedFormats();
     qDebug() << QImageReader::supportedImageFormats ();@
    

    ..... it prints out:
    ("gif", "mng")
    ("bmp", "gif", "ico", "jpeg", "jpg", "mng", "pbm", "pgm", "png", "ppm", "svg", "
    svgz", "tif", "tiff", "xbm", "xpm")
    .... so no video files there.

    I have these set on the i.MX:
    export QT_PLUGIN_PATH=$PATH:/usr/local/Trolltech/Qt-4.7.4-mx5x-x11/plugins
    export QT_DEBUG_PLUGINS=1

    When I run the videowidget app the plugins debug shows the contents of the QT_PLUGIN_PATH as being found:
    libqgif.so libqico.so libqjpeg.so libqmng.so libqsvg.so libqtiff.so

    I wonder am I missing some video libraries from here? Because I have phonon and gstreamer working fine and the Qt example qmediaplayer works, I'd assumed that I have everything needed for the videowidget, but maybe not? Many thanks.



  • I happened to have the exact same problem today. I don't know why it doesn't give me any supported video formats.

    For images, I did find that putting the image dlls (from the Qt plugins folder) into a folder named "imageformats" placed in parallel with my exe helped with supporting more image formats but I can not find a solution for video formats.

    (I know this doesn't answer your question, I'm just agreeing that I have the same problem. If you find the solution on your own, please share it!)



  • Nice to know I'm not alone!

    I'm using a Linux development PC on which I can compile cross the same source code for the i.MX micro as for Ubuntu. So I tried compiling videowidget to run on the Ubuntu PC itself and it gives exactly the same problem - not showing up video filenames. So it seems my problem is generic irrespective of the target system, maybe I'm missing some library source that should be built for both platforms.


  • Moderators

    What did the configure output of Qt say? Did it say it was going to enable video support? IIRC you need 3rd party libraries for that to be available.


Log in to reply
 

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