Extract file properties

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
Azrael
Knows some wx things
Knows some wx things
Posts: 37
Joined: Sat Aug 05, 2017 2:44 pm
Location: Italy

Extract file properties

Post by Azrael »

Hello,
I'm working on a music player project on Ubuntu. I was wondering if there's a way , using wxWidgets, to extract data from an mp3 file saved on my computer. I need to extract it and use it to initialize objects in my program.
This is what i'm talking about:

Image

I think what i'm searching for is called metadata( i'm not sure though).

Thank you
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Extract file properties

Post by doublemax »

There is nothing for this in wxWidgets.

If you only need a solution for Linux, i'd try to find a command line tool that outputs this information (According to Google, ffprobe could be an option https://ffmpeg.org/ffprobe.html ) and parse this from inside your application.
Use the source, Luke!
New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 469
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: Extract file properties

Post by New Pagodi »

Taglib is a small, easy to use library that will let you do this.
User avatar
Azrael
Knows some wx things
Knows some wx things
Posts: 37
Joined: Sat Aug 05, 2017 2:44 pm
Location: Italy

Re: Extract file properties

Post by Azrael »

doublemax wrote:There is nothing for this in wxWidgets.

If you only need a solution for Linux, i'd try to find a command line tool that outputs this information (According to Google, ffprobe could be an option https://ffmpeg.org/ffprobe.html ) and parse this from inside your application.
New Pagodi wrote:Taglib is a small, easy to use library that will let you do this.
Thank you for the answers! I'll try them!
User avatar
archman007
Experienced Solver
Experienced Solver
Posts: 55
Joined: Mon Jan 13, 2020 1:06 pm
Location: Jacksonville, Fl 32210
Contact:

Re: Extract file properties

Post by archman007 »

Hello Peeps,

I had the same requirement and https://github.com/archman007/pathManip is my solution.

Enjoy
Post Reply