Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Not able to fetch metadata for the mp3 files
Forum Updated to NodeBB v4.3 + New Features

Not able to fetch metadata for the mp3 files

Scheduled Pinned Locked Moved General and Desktop
qmultqmediametadata
2 Posts 1 Posters 844 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Divya Subramanian
    wrote on last edited by
    #1

    I am trying to categorise the songs based on Metadata fetched.
    I used the following functions 1)isMetaDataAvailable and
    2)metaData(QMediaMetaData::AlbumArtist).toString()

    to fetch the information. They always return true. Do u have any suggestion ?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Divya Subramanian
      wrote on last edited by
      #2

      meta_player is my media player objext
      Signal:
      connect(meta_player, SIGNAL(metaDataChanged()), SLOT(metadata_capture()));

      Code of capture:
      if((meta_player->isMetaDataAvailable()) &&( inc < file_list.length()))
      {
      qDebug() << "Meta info available"<<endl;
      QStringList list = meta_player->availableMetaData();
      qDebug() << " Meta Data ="<<list.count()<<endl;
      for(int i=0;i<list.count();i++){
      qDebug() << list.at(i) << " = "<< meta_player->metaData(list.at(i)).toString();
      }
      qDebug()<<"**********************************************************************************";
      inc++;
      qDebug()<<"After Icrement "<<inc;
      qDebug()<<"File Name"<<file_list.at(inc);
      meta_player->setMedia(QUrl::fromLocalFile(file_list.at(inc)));
      qDebug()<<"File Name"<<file_list.at(inc);
      }

      The Signal meta_player->setMedia(QUrl::fromLocalFile(file_list.at(inc))); is not emitted properly. For example when I add 6 songs i get met info for two songs. The result is ambiguous, its not constant.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved