Results 1 to 2 of 2

Thread: Can Phonon play ts file?

  1. #1
    Join Date
    Jul 2012
    Location
    Taiwan
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Can Phonon play ts file?

    I got a ts(Transport Stream) file, I want use Phonon to play it.
    But it didn't work. I can play the file use Windows Media Player.

    Can somebody tell me if Phonon support ts file? Thanks

    my code is simple, I can use it to play wmv, but not ts.
    Qt Code:
    1. Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
    2. QString filename("C:\\Users\\XXX\\Documents\\QT Projects\\DVR\\Snow.ts");
    3. //QString filename("C:\\Users\\XXX\\Documents\\QT Projects\\DVR\\Wildlife.wmv");
    4. Phonon::MediaSource souce(filename);
    5. player->play(souce);
    To copy to clipboard, switch view to plain text mode 

  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: Can Phonon play ts file?

    Phonon plays whatever your backend codecs (DirectShow in your case) support.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Phonon can't play the video
    By leegoe in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2012, 02:45
  2. Pausing a thread while waiting that phonon play a sound file
    By franco.amato in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2011, 21:41
  3. Phonon won't play audio file
    By kar in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2010, 01:41
  4. Cnan't play mp3 with phonon
    By Skepsor in forum Qt Programming
    Replies: 11
    Last Post: 11th June 2010, 14:54
  5. Play video file with Phonon and GStreamer show black screen
    By SimbadSubZero in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2010, 11:47

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.