Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7838049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:57:49+00:00 2026-06-02T14:57:49+00:00

I am an average C/C++ programmer. Recently I took a project to make a

  • 0

I am an average C/C++ programmer. Recently I took a project to make a media player with a smart playlist that will work like Zune’s SmartDj. I have decided to use libvlc for playing.

I have never coded an open source software before, so I know nothing about git and all. Can you please help me to write at least a C program to play a mp3 file?

Where should I get started? How do you extract a song’s artist and other information from the mp3 file itself?

regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:57:51+00:00Added an answer on June 2, 2026 at 2:57 pm

    be sure that you have installed the following packages (else install it):

    $ apt-get install libvlccore-dev libvlc-dev
    

    test.c:

    #include <stdio.h>
    #include <stdlib.h>
    
    #include <vlc/vlc.h>
    
    int main(int argc, char **argv)
    {
        libvlc_instance_t *inst;
        libvlc_media_player_t *mp;
        libvlc_media_t *m;
    
        // load the vlc engine
        inst = libvlc_new(0, NULL);
    
        // create a new item
        m = libvlc_media_new_path(inst, "path to MP3 file");
    
        // create a media play playing environment
        mp = libvlc_media_player_new_from_media(m);
    
        // no need to keep the media now
        libvlc_media_release(m);
    
        // play the media_player
        libvlc_media_player_play(mp);
    
        sleep(10);
    
        // stop playing
        libvlc_media_player_stop(mp);
    
        // free the media_player
        libvlc_media_player_release(mp);
    
        libvlc_release(inst);
    
    
        return 0;
    }
    

    how to link and compile:

    $ gcc $(pkg-config --cflags libvlc) -c test.c -o test.o
    
    $ gcc test.o -o test $(pkg-config --libs libvlc)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I remember reading an article that an average programmer spends 90% of the working
I would like to average across Rows in a column. That is rows that
I am an experienced C++ programmer with average Python skills. The reasons I studied
I'm an average programmer in C++, and usually avoid pointers at all costs. But
This program will calculate the average grade for 4 exams using a for loop
I'm an average Visual Studio programmer. I need a function or routine to add
Average visitors: 5000. I'm wondering should i make it in PHP or ASP.NET/C#. Website
I want to calculate average number of re-opened tickets by project,but I couldn't do
when the average ASP.net C# programmer (with very poor JavaScript knowledge other than scripting
What is the average case complexity of the following function given that the input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.