Results 1 to 11 of 11

Thread: phonon on a "secondary" display (X11)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: phonon on a "secondary" display (X11)

    kaffeine works fine in the secondary display (using -display :0.1)

    I have found another thing: mediaplayer doesn't work if I run it with -display :0.1, but if instead of that I run konsole -display :0.1 (or xterm -display :0.1), and from the terminal window that appears in the secondary display I run mediaplayer (without specifying any display), the mediaplayer demo opens in the secondary display and then it works fine!

    It looks like phonon does not handle properly this -display switch...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: phonon on a "secondary" display (X11)

    Quote Originally Posted by mnavarro View Post
    kaffeine works fine in the secondary display (using -display :0.1)
    Kaffeine by default uses the xine engine. Did you change it to gstreamer?

    I have found another thing: mediaplayer doesn't work if I run it with -display :0.1, but if instead of that I run konsole -display :0.1 (or xterm -display :0.1), and from the terminal window that appears in the secondary display I run mediaplayer (without specifying any display), the mediaplayer demo opens in the secondary display and then it works fine!

    It looks like phonon does not handle properly this -display switch...
    I don't think the issue is phonon. It practically doesn't do anything Most work is done by the backend.

  3. #3
    Join Date
    Nov 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: phonon on a "secondary" display (X11)

    I have no idea how to change the engine of kaffeine to gstreamer.

    But I installed totem-gstreamer, and I run it with "totem --display :0.1". It complained about unknown switch --display, but it opened on the secondary display. And when trying to play the MPEG file it crashed and printed the message:

    The program 'totem' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadMatch (invalid parameter attributes)'.
    (Details: serial 32 error_code 8 request_code 143 minor_code 3)
    (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error() function.)

  4. #4
    Join Date
    Jul 2008
    Posts
    47
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon on a "secondary" display (X11)

    Quote Originally Posted by mnavarro View Post
    I have no idea how to change the engine of kaffeine to gstreamer.
    In KDE 4.x Control Centre you can change in the "Sound" configuration in the second tab the backend used.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: phonon on a "secondary" display (X11)

    Quote Originally Posted by mnavarro View Post
    I have no idea how to change the engine of kaffeine to gstreamer
    If you have appropriate packages installed (like kaffeine-gstreamer or something like this) there is a "Player Engine" submenu in the "Settings" menu in Kaffeine.

  6. #6
    Join Date
    Nov 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: phonon on a "secondary" display (X11)

    It seems the kaffeine-gstreamer package does not exist anymore.

    Anyway, I have found that the mediaplayer works fine in the secondary display if I issue an "export DISPLAY=:0.1" before launching the application.

    But, why

    > export DISPLAY=:0.1
    > mediaplayer

    works, and

    > mediaplayer -display :0.1

    does not work?

    Maybe phonon starts another process to render the video, and the -display switch is not propagated to it (whether the DISPLAY environment variable does)?

    Anyway, my problem is solved.
    Thanks!

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: phonon on a "secondary" display (X11)

    Quote Originally Posted by mnavarro View Post
    It seems the kaffeine-gstreamer package does not exist anymore.
    I didn't say that was its exact name. In Mandriva it is called kaffeine-engine-gstreamer. Other distros may call it differently.

    But, why

    > export DISPLAY=:0.1
    > mediaplayer

    works, and

    > mediaplayer -display :0.1

    does not work?
    -display is set by Qt, DISPLAY is used by XLib, so if -display doesn't work, it's probably Qt's fault. This might not exactly be true actually - if gstreamer is embedded somehow separately, the display might not be passed to it, hence the problems. I'd contact Qt Software support about it.

Similar Threads

  1. I cannot run the phonon demos in the PXA270!Can someone help me?
    By Justin_W in forum Qt for Embedded and Mobile
    Replies: 8
    Last Post: 19th February 2010, 10:14
  2. Display only PNG image on desktop
    By durbrak in forum Qt Programming
    Replies: 32
    Last Post: 15th March 2008, 21:55

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.