Results 1 to 3 of 3

Thread: Phonon never gets PlayingState (qt4.7.1 / linux / gstreamer)

  1. #1
    Join Date
    Feb 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Phonon never gets PlayingState (qt4.7.1 / linux / gstreamer)

    I have confirmed this in both my own programs and the phonon music player example program that comes with Qt. Everything seems perfect. The QtMultimedia framework tests can play audio just fine, it enumerates my devices via alsa perfectly, it even decodes the input files well enough to display the metadata.

    However, when I try to play() the media object, nothing happens. I don't get an error, it never gets it's state changed to PlayingState, and no audio is produced. I have double checked qtconfig's gstreamer settings, it says gstreamer is working fine. Gstreamer is working well enough to report the metadata.

    I have tested gstreamer on the commandline with gst-launch, the test command to produce a tone:

    gst-launch audiotestsrc ! audioconvert ! audioresample ! alsasink

    works perfectly, and so does playing a file with playbin. If anyone has any thoughts, I'd really appreciate it.

    Other info: gstreamer is version 0.10.21, qt-4.7.1 was compiled with phonon and gstreamer support intact, and they compile and "test" fine except for never reaching PlayingState.

  2. #2
    Join Date
    Sep 2012
    Location
    Bydgoszcz, Poland
    Posts
    2
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon never gets PlayingState (qt4.7.1 / linux / gstreamer)

    Set a variables GST_DEBUG, GST_DEBUG_DUMP_DOT_DIR and place GST_DEBUG_BIN_TO_DOT_FILE (man gst-launch) after phonon supposed play a file then check a created pipeline (e.g. dot src.dot -Tsvg -o out.svg then eog out.svg). Phonon could not design pipeline appropriate form some reason in that way you will see it.

    Check also variable LD_LIBRARY_PATH it should leads to your local gstreamer library.

    Here you have more informations:

    http://techbase.kde.org/Development/...bugging/Phonon
    Last edited by Snix; 28th November 2012 at 11:09.

  3. #3
    Join Date
    Dec 2012
    Posts
    3
    Qt products
    Qt4 Qt/Embedded

    Default Re: Phonon never gets PlayingState (qt4.7.1 / linux / gstreamer)

    We discovered when testing qt 4.8 with phonon gstreamer stack that qmediaplayer examples would only play limited selection of media types compared to enumerated capabilities. One of our developers found when single-stepping through gstreamer plugin loader that dlopen() flag was conditionally set to RTLD_LAZY. When forcing that flag on, a lot more audio and video playback codecs started working finally.

    We saw that qt 4.8.4 was recently released, and been trying that for any bugfixes and performance improvements. There have been some small improvements in general noticed started with qt 4.8.3, but still concerned about video streaming ability on our embedded linux device (arm cortex a9, fpu, no neon no video accel). Any performance tuning tips?

Similar Threads

  1. Phonon, MinGW, GStreamer
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2012, 01:23
  2. Phonon and GStreamer (avi and flv files)
    By pssss in forum Newbie
    Replies: 0
    Last Post: 22nd January 2011, 16:07
  3. Replies: 3
    Last Post: 13th September 2010, 16:48
  4. Performance problems playing video with Phonon and GStreamer on QT Embedded.
    By MarcosRodriguez in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 13:57
  5. Can we use Phonon without GStreamer?
    By learning_qt in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2008, 13:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.