Results 1 to 6 of 6

Thread: Create a new audio file extension and read it using phonon

  1. #1
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Create a new audio file extension and read it using phonon

    Hello,

    I have to create a special audio file format that only my player is able to read, is phonon suitable for that or should i do low-level audio processing?


    Thanks in advance

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

    Default Re: Create a new audio file extension and read it using phonon

    Phonon can read whatever codecs are in your system so without an appropriate codec it will not be able to read the file. You would have to decode it on your own and reencode it into something your system (hence Phonon) understands.
    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.


  3. #3
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Create a new audio file extension and read it using phonon

    Thank you,
    In fact i didn't try it yet so i want to know what's possible and what's not before hitting the project,
    So what if i need to get information about the file such as title, author name ... or i need to encode decode content, i would probably need low-level processing, isn't it ?
    Can i use both Qmultimedia or Qaudio and Phonon ?

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

    Default Re: Create a new audio file extension and read it using phonon

    If you invent your own audio format then you have to process it yourself. That's why people usually don't invent their own formats if there are perfectly good solutions available.
    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.


  5. #5
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Create a new audio file extension and read it using phonon

    My Own format is just to don't let other players able to read it(client's specifications), so i can say that my own format would be a small change in the file so that only my player can read it,
    in this case, can i make phonon able to read it ? if not can i use phonon to read all other formats and process my own format apart (low-level)?
    is it a lot of work to create a special format (for example inherited from mp3) and make my program able to read it ?

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

    Default Re: Create a new audio file extension and read it using phonon

    Quote Originally Posted by walidos View Post
    My Own format is just to don't let other players able to read it(client's specifications)
    If someone really wants to, he will read your files. If someone doesn't care, he won't try. Security through obscurity is usually a bad idea.

    in this case, can i make phonon able to read it ?
    Phonon will not help you much here as the whole advantage of using Phonon is that it takes the burden of decoding the file from you. Since you need to write your own decoder anyway, playing the file is the least of your problems.

    is it a lot of work to create a special format (for example inherited from mp3) and make my program able to read it ?
    I don't know what you want to "inherit" from mp3. File format is one thing, media codec is another. I really suggest you become familiar with the topic before you start tackling with the problem.
    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. Playing an audio file with phonon
    By epaduel in forum Newbie
    Replies: 5
    Last Post: 31st January 2012, 01:48
  2. Replies: 4
    Last Post: 22nd June 2011, 21:12
  3. Phonon MediaObject playback of audio file stops early
    By mortoray in forum Qt Programming
    Replies: 1
    Last Post: 6th December 2010, 12:37
  4. Phonon won't play audio file
    By kar in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2010, 01:41
  5. How to read RAW audio file ?
    By fitzy in forum Qt Programming
    Replies: 2
    Last Post: 6th August 2010, 13:37

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.