Results 1 to 20 of 70

Thread: Phonon module question -- help needed

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by FS Lover View Post
    now I have phonon backend compiled with mingw.
    two files are created in plugins\phonon_backend directory: libphonon_ds94.a and phonon_ds94.dll

    musicplayer and capabilities examples compiled and work perfectly.
    but I have problem with video. it has not colors and 4 pictures are repeated in width (screenshot is attached).
    can anybody help me? I have no idea about the reason.

    my code was this:
    Qt Code:
    1. Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, 0);
    2. player->show();
    3. player->play(Phonon::MediaSource("s.wmv"));
    To copy to clipboard, switch view to plain text mode 

    I am using qt 4.5.2 and phonon compiled with MinGW and MS DX SDK 2008.
    my configure command line was:
    configure -release -fast -no-exceptions -no-qt3support -no-3dnow -phonon -phonon-backend -no-webkit -no-scripttools -no-direct3d
    Thanks FS Lover
    Do you have a step by step how to compile the phonon?
    I am downloading the SDK libs of MS and I also going to compile the phonon libs.

    Did you run the "dx_setenv.cmd" and "setenv.cmd" before the compile like memtion in QT4.5 phonon install ?

    I also wouldn't like to install the platform of MS if possible.

    Thanks

  2. #2
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by SunnySan View Post
    Thanks FS Lover
    Do you have a step by step how to compile the phonon?
    if I succeed I will try to write a step by step guide.
    I have several other combinations/compilations to test ahead.
    video is corrupt and must be fixed; you know it is essential.
    other tests are (order is not meaningful):
    - building phonon with DX SDK 2005 (that kdewin uses)
    - adding -no-opengl to the configure command line.
    - probably tring other backends like mplayer (as in QuarkPlayer)
    although QuarkPlayer doesn't show video on my system! I don't know the reason; in the past it worked well.
    - compiling with MS VC++
    - ?

    I am downloading the SDK libs of MS and I also going to compile the phonon libs.
    please report your work here (configure commands, problems, results, etc.). gathering information can help us recognize common cases and guess causes of problems.

    Did you run the "dx_setenv.cmd" and "setenv.cmd" before the compile like memtion in QT4.5 phonon install ?
    yes; it seems to be essential anyway (qt's phonon backend uses MS DirectShow). you can see early outputs of the configure command; if there is not such env set, phonon support will be set to 'no' regardless of the command line options.
    but I have only dx_setenv.cmd on my system!
    maybe I should download the whole MS SDK (its huge!!), since setenv.cmd isn't in the MS DX SDK.
    probably it will be other test case I have to try.

    qt is being compiled now on my system. this time I used both the mingw patch and direct x headers from the kdewin and somewhat changed the configure command line.
    I am waiting. it takes many hours evey time

  3. #3
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    The DS9 backend contains 2 renderers, VMR9 and softrenderer. In my Windows XP installation the VMR9 one doesn't work (can be seen by a warning "the video widget could not be initialized correctly" when the video widget is created) The softrenderer didn't work at all until I edited the file src/3rdparty/phonon/ds9/videowidget.cpp and commented out the following function from VideoWindow:
    how can we switch between these two renderers?

  4. #4
    Join Date
    Jul 2008
    Posts
    69
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    Quote Originally Posted by FS Lover View Post
    yes; it seems to be essential anyway (qt's phonon backend uses MS DirectShow). you can see early outputs of the configure command; if there is not such env set, phonon support will be set to 'no' regardless of the command line options.
    but I have only dx_setenv.cmd on my system!
    maybe I should download the whole MS SDK (its huge!!), since setenv.cmd isn't in the MS DX SDK.
    probably it will be other test case I have to try.

    qt is being compiled now on my system. this time I used both the mingw patch and direct x headers from the kdewin and somewhat changed the configure command line.
    I am waiting. it takes many hours evey time
    On my side I had only setenv.cmd at this location
    C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\setenv.cmd
    This was using Xp or earlier version MS download the link quoted in installing-phonon

    If you use older version there is 2 links to get. one for the setenv and one for the dx_setenv

  5. #5
    Join Date
    May 2009
    Posts
    147
    Thanks
    11
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Phonon module question -- help needed

    see this: http://www.qtcentre.org/forum/f-inst...age-22652.html
    it's very beta.
    test it if you can.

Similar Threads

  1. Replies: 2
    Last Post: 24th April 2009, 12:13
  2. Playing a stream using phonon module
    By ram136682 in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 28th August 2008, 14:42
  3. Replies: 0
    Last Post: 5th August 2008, 10:54
  4. no phonon module :(
    By losiem in forum Installation and Deployment
    Replies: 2
    Last Post: 8th July 2008, 12:31

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.