Results 1 to 5 of 5

Thread: Taglib 1.8 on windows 7 is not working properly as on windows XP

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

    Default Taglib 1.8 on windows 7 is not working properly as on windows XP

    Hello,

    I compiled taglib 1.8 using Mingw succesfully, then i integrated it into a Qt project. The purpuse is to remove ID3 Tag from mp3 files.

    This code :

    Qt Code:
    1. void MainWindow::removeTagFromFile(QByteArray &fileContent)
    2. {
    3. TagLib::ByteVector byteVector(fileContent.constData());
    4. TagLib::ID3v2::FrameFactory *frame = TagLib::ID3v2::FrameFactory::instance();
    5. TagLib::IOStream *vectorStream = new TagLib::ByteVectorStream(byteVector);
    6. TagLib::MPEG::File file(vectorStream, frame);
    7. file.strip();
    8. file.save();
    9. }
    To copy to clipboard, switch view to plain text mode 
    Compile and works fine on XP. Compile and doesn't work as expected on Windows 7. Taking the ".exe compiled on XP" to seven do not solve the problem.

    is it weird ? i'm afraid that this is a bug in Taglib, does it make sense ? Any idea or an explanation is welcome, Thanks in advance.

    You can download the project here

    I'm writing a tutorial in french about details of compilation and integration into a Qt project, i'll write one in english if there is interested people.

    Thanks in advance for any kind of help.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Taglib 1.8 on windows 7 is not working properly as on windows XP

    What does this have to do with Qt? If TagLib does not compile for some unspecified reason then surely that is a TagLib problem. If you think the reason has something to do with Qt then you'll need to provide some actual information about what the problem is.

    Taking the ".exe compiled on XP" to seven do not solve the problem.
    This has nothing to do with compilation at all. If the exe compiled on XP does not run on Windows 7 then either:
    • It does not run on XP either or, more likely,
    • You are not deploying the the required libraries and plugins.

  3. #3
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    38
    Thanks
    12
    Platforms
    Windows

    Default Re: Taglib 1.8 on windows 7 is not working properly as on windows XP

    Exacty, this is weird and i don't know what is the problem
    you can download the project and just run the .exe, on windows 7 you'll see audio meta-data in GUI, but for windows XP you can't see meta-data and this is the purpose, my goal is to remove ID3 Tag from mp3 files.

    Thanks

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Taglib 1.8 on windows 7 is not working properly as on windows XP

    So now it works on Windows 7 but not on Windows XP. Which way around is it?

    Have you tried anything to diagnose the problem? Loaded your exe in Dependency Walker for example. I cannot run it because of missing dependencies.

  5. #5
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    38
    Thanks
    12
    Platforms
    Windows

    Default Re: Taglib 1.8 on windows 7 is not working properly as on windows XP

    You're right,
    Well, finally it's not question of XP or Seven, it's about codecs installed on your computer.

    There is a simple solution, you don't need to remove ID3 Tag from mp3 files to get them readable by Phonon, you need just to install K-Lite Codecs.

    Explanation : Phonon backend use DirectShow on Windows to read mp3 files. The K-Lite Codec Pack is a collection of DirectShow filters, VFW/ACM codecs, and tools. Codecs and DirectShow filters are needed for encoding and decoding audio and video formats.

    installing K-Lite solve the problem of Phonon with some mp3 files.

    I hope this will save someone out there who suffer from phonon with mp3 files on windows.

Similar Threads

  1. Replies: 7
    Last Post: 24th September 2012, 07:17
  2. Replies: 1
    Last Post: 8th February 2012, 05:09
  3. Replies: 2
    Last Post: 2nd August 2011, 15:05
  4. Replies: 1
    Last Post: 17th April 2011, 05:20
  5. Any way to properly handle Windows DPI setting?
    By vaddimka in forum Qt Programming
    Replies: 15
    Last Post: 16th May 2010, 10:03

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.