Click here to Skip to main content
15,892,927 members
Everything / MP3

MP3

MP3

Great Reads

by Joe Dufresne
A small utility app which uses the excellent NAudio library to help organize backing tracks (audio files for band minus one situations), chord / lead sheets, lyrics, etc. Intended for Windows tablets running a full version of Windows 8.1.
by Dave_Voyles
In this tutorial, I’m going to walk you through the steps of how I set up my container to host all of the .mp3s of the podcast.
by ToughDev
How to interface VS1053 Audio Encoder/Decoder Module with PIC using SPI
by Christian Vos
Explains the issues of the mp3 player in the Ampera and Volt and how the playlist creator can solve this.

Latest Articles

by ToughDev
How to interface VS1053 Audio Encoder/Decoder Module with PIC using SPI
by Christian Vos
Explains the issues of the mp3 player in the Ampera and Volt and how the playlist creator can solve this.
by Dave_Voyles
In this tutorial, I’m going to walk you through the steps of how I set up my container to host all of the .mp3s of the podcast.
by Joe Dufresne
A small utility app which uses the excellent NAudio library to help organize backing tracks (audio files for band minus one situations), chord / lead sheets, lyrics, etc. Intended for Windows tablets running a full version of Windows 8.1.

All Articles

Sort by Updated

MP3 

7 May 2023 by ToughDev
How to interface VS1053 Audio Encoder/Decoder Module with PIC using SPI
3 Apr 2021 by RickZeeland
Take a look at these libraries on GitHub: mp3 · GitHub Topics · GitHub[^] You can choose the programming language you are interested in with the dropdown box on top of the page. If you can't find any VB.NET libraries then usually you can use a...
3 Apr 2021 by JR212
Hi I'm looking for a good code for reading and writing mp3 tags version 2. Al codes I find are in C or are using an external dll. Can someone help me. Jan What I have tried: I found a code but when I write (call the save option) my mp3 is no...
3 Apr 2021 by JR212
Interesting if there was also vb.net :) 10 languages but no vb
15 Sep 2020 by Member 13776062
So I have an mp3 file (stereo, 44100 Hz) which I decoded with mpg123 and got a 32-bit float array. Now I want to write this array to .wav file and play it. What I have tried: I found several solutions in Java but they all used the tools from Java libraries
16 May 2020 by OriginalGriff
Monitor the MediaPlayer for when the audio track ends: then start it again. Repeat as many times as you need. This may help: MediaPlayer.MediaEnded Event (Windows.Media.Playback) - Windows UWP applications | Microsoft Docs[^]
16 May 2020 by Member 12618031
I use the MediaPlayer in my program. internal MediaPlayer player = new MediaPlayer(); List MP3FilesNames = Directory.GetFiles(@"Audio Files", "*.mp3").ToList(); for (i = 0; i
4 Mar 2020 by Member 13337539
I have a huge music library with album art named either folder.jpg, for instance. Many players used to use consider this as album art, but I'd like every music file within a folder that has an image with one of 2 names to have that image filename tagged with the image that resides in that...
17 Jan 2020 by Patrice T
Quote: How java bytestream works? In a stream, a byte is the smallest chunk of data you can handle because it is how computer works. You can consider that a byte is like a digit (for computer), just like for us, a digit is 0-9 for us. A bytestream have no idea of the meaning of bytes or their...
17 Jan 2020 by 49R
How raw data is divided into bytes. As present audio contains 32bit(2^32 tones) it ranges from 2^0 - 2^32. ex -> 6710497.. (Considering decimal) how is it divided to 67 104 97 Does FileInputStream has a method to check like if(671>256){send 67 , next append 1} What I have tried: ...
17 Jan 2020 by Richard MacCutchan
Any file, or data, is just a stream of bits. In general it is convenient to handle the stream as a collection 8-bit bytes. However the bytes are often grouped together to make different types of information (int, double, string etc.). The key is that you need to know the structure of the data in...
15 Jan 2020 by Dalerico
I have a wcf rest service, which I created a MemoryStream for one of my operation contracts that has an object, which encapsulates many properties. This is a GET HTTP request for data to the client (Android music app). I've wrote some code to take my service side MemoryStream into the java...
15 Jan 2020 by Dalerico
Partial code (c#) from the server side: Prepares a Data object for transmission over the wire byte[] byteArray = new byte[4000]; // Convert the data Object (generic list) to be serialized and return a JSON string. var json1 = new...
15 Jan 2020 by phil.o
A MemoryStream is just a stream, i.e. a list of byte values. You have to send the byte array over the wire (either directly by writing from memory stream to a network stream, or by encoding it, for example in Base64, and send the encoded value instead). In the receiving java application, you...
14 Jan 2020 by Dalerico
Hi everyone, I recently created a wcf service c# music app for listening and downloading music tracks for consuming data for a front-end Android music streaming app. Everything works good accept the performance of waiting for the music request to finish buffering the entire track from the...
14 Jan 2020 by Dalerico
Well, shortly after posting this question, I stubled into finding my own solution. For anyone else who may have a similar question to know how to create a stream in a REST wcf service for a GET request, you can look below and see exactly where I implemeted a MemoryStream instance to wrap my data...
22 Dec 2019 by MadMyche
IIS is best used as a web server utilizing the HTTP protocol, which operates in a download then render fashion; and not as a streaming media server which would use RTSP (real time streaming protocol)- self explanatory on purpose. Windows versions prior to Win 7 supported Windows Media Encoder...
22 Dec 2019 by Dalerico
Hi everyone, I recently created a wcf service c# music app for listening and downloading music tracks for consuming data for a front-end Android music streaming app. Everything works good accept the performance of waiting for the music request to finish buffering the entire track from the...
22 Dec 2019 by Richard MacCutchan
Quote: which one will give me the best performance for streaming mp3 files on a web server (IIS). That is impossible to answer as it depends on many different factors, all of which will vary from country to country, ISP to ISP, and server to server. The only way to decide which is best for you...
2 Jul 2019 by Member 14519445
I highly recommend Avdshare Audio Converter. It can convert caf to various audio format like aiff, m4a, mp3, wav, wma, aac, etc. It also helps to convert voc, m4a, flac, ogg, aiff, ra, au, opus etc
18 May 2019 by son0nline
How can sound be recorded programmatically in Windows into mp3? What I have tried: Nothing - this is an old question that deserve an answer for the rest of the Code Project community.
18 May 2019 by Michael Haephrati
I would start here[^] and follow the guidelines.
16 Jul 2018 by Dave Kreskowiak
You don't have a simple method to do that. In order to use the built in player, the data has to be unencrypted. Now, that's not to say it's impossible. You just have to write an audio filter driver[^] (in C) that decrypts the stream on-the-fly. The filter driver would sit in the filter graph...
16 Jul 2018 by AminMhmdi
i have some mp3 collection and i want to able play it on CD/DVD i write audio player using c# but i dont know how to protect my audio file is there any way to encrypt audio files ?? what is best way to do it to protect this audio file from illegal use? What I have tried: i play sound using...
27 May 2018 by Raj Swami
i am answering my own question. the code is below. #include #include #include void main() { FILE *fp,*pt,*up; static unsigned char file_data[10000000],a[3]; fp=fopen("mysound.mp3","wb"); pt=fopen("tt.mp3","rb"); int t=0,u=0,v=0,x=0; unsigned long...
27 May 2018 by Raj Swami
hello everyone, i have done lots of research on mp3 file structure. i have understood all about mp3 file including how does it work, which type of data it consists, how to read mp3 file data ,how to write mp3 file data ect.now i'm trying to make my own mp3 file just like i'm adding my own audio...
15 May 2018 by Richard MacCutchan
12 Apr 2018 by KarstenK
You must understand the wave file format specifikations to write the data. But at first you must know which parameters your float array has to write the data in the wav file. First write some boilerplate information and than the RIFF and fmt chunk with correct data for the appended sound data. ...
4 Dec 2017 by KotsanisNakos
Hi, I'm using javazoom library to achive mp3 play at NetBeans... So far i wrote this code... Anyone know why this isn't working?? What I have tried: //main class import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileInputStream; import...
4 Dec 2017 by Jochen Arndt
Upon each action you are creating a new PausablePlayer instance. If you have started playing and activate then another button, that will use the new instance and not the one that has been used to start playing. You have to use a single global PausablePlayer instance instead (like your...
31 Jul 2017 by Graeme_Grant
This is a very popular metadata reader & writer, not just for MP3s: GitHub - mono/taglib-sharp: LIbrary for reading and writing metadata in media files[^] Just gave the lib a try. Here is my test code used: private static void Main(string[] args) { var path = @"E:\Music"; foreach (var...
31 Jul 2017 by Mehdi Gholam
Google is your friend, try searching for : tagging mp3 files
30 Nov 2016 by Vic91
Hi,I'm making an mp3 player using the AxWindowsMediaPlayer but I haven't figured out how to make one song play followed by the next without using wmp.playlist. And when I tried using the playlist I ran into a problem. I have a listbox with the files on the playlist and I want to be able to...
30 Nov 2016 by Beeftronix
Public Sub PlayNext() Try ColorSliderProgress.Value = 0 If Not ListBox2.SelectedIndex ListBox1.Items.Count - 1 Then ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1 ...
17 Aug 2016 by MCSIDevelopers
What I want to do is not get the information about the file but I want to read the bits and also be able to locate bits positions within the frame header. The header is 32 bits (4 bytes) of which is what I want to get back or displayed as a message.I want to read it, edit it. The bit i want...
17 Aug 2016 by Paw Jershauge
You can use FileStream for that FileStream.ReadByte Method (System.IO)[^]
6 Aug 2016 by Member 12672840
HiI found yesterday this article and today I can't find it anymore.This article was realy good described how to read and write the tags of mp3 music.http://www.codeproject.com/Articles/5590/Reading-and-writing-MP-ID-v-tagsWhat I have tried:I used another browser and disabeld...
5 Aug 2016 by Richard MacCutchan
What do you mean you can't find it? You have the URL, all you need to do is paste it into the address bar.
23 Jul 2016 by Christian Vos
Explains the issues of the mp3 player in the Ampera and Volt and how the playlist creator can solve this.
1 Dec 2015 by George Jonsson
Quote:I found some DLL ID3 . Is that possible do with that ?What library did you find?This might be a good start ID3.NET Tagging Library for MP3s[^]Maybe this what you found already.
1 Dec 2015 by Member 11865398
Hi, Am doing desktop player application. In that player main feature is showing lyrics while playing mp3 file song.I found some DLL ID3 . Is that possible do with that ? or any other third party libs available do this ?Any Ideas / suggestion need.Am using for development1#....
3 Nov 2015 by Al_Pennyworth
I am modifying the code of an existing application that supports conversion of audio files to different formats. One of the formats that needs to be supported is MP3 so I am using the MF API to handle the encoding to MP3. Although I have the logic working to encode to MP3, I have an issue that I...
21 Sep 2015 by WPDev@.net
I really want to record live audio that is currently streaming in the background audio player of the windows phone to an .mp3 file, simply the aim of the App is to record audio from internet radio stations. what i have done so far is thisprivate void Button_Click(object sender,...
28 Aug 2015 by Sergey Alexandrovich Kryukov
Wrong question. First, video is not converted to audio (what it would even possibly mean?) It's just video files contain several streams, and some of them are video, and some are audio, and you can have some different kinds of streams (subtitles, for example). So, you can first extract some...
28 Aug 2015 by Redwan Irheem
HI, i need code c# to convert video (mp4) to MP3 or WAV >>pleas any answer >>advice >:)
20 Jul 2015 by Dave_Voyles
In this tutorial, I’m going to walk you through the steps of how I set up my container to host all of the .mp3s of the podcast.
19 Jul 2015 by User 11060979
Something like this should do the Job:...WindowsMediaPlayer musicplayer = new WindowsMediaPlayer();// Add Event handlermusicplayer.PlayStateChange += new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler(MusicPlayer_StatusChange);...// The eventhandlerprivate void...
19 Jul 2015 by Mohammed Ibrahim.L
hi,try this code. its working i have testedinclude windows media player library before using the below code {OpenFileDialog dialog = new OpenFileDialog();dialog.Filter = "Audio Files (.mp3)|*.mp3";if(dialog.ShowDialog() == DialogResult.OK){ string path = dialog.FileName; ...
18 Jul 2015 by Coder1999
How can I play an mp3 song straight after the previous mp3 song has finished? I've checked everywhere but they aren't detailed enough. I'm using WMPLib. How can I change this code so that I can play another song straight after the previous song has come to an end. #region Playing...
16 May 2015 by Dave Kreskowiak
There is no way to automatically do a "conversion" of an MP3 to to MIDI. Well, with any accuracy that is.I know a guy who's part time job is doing exactly what you're talking about. He, and other s like him, play the songs on various instruments with MIDI capabilities and record the songs in...
16 May 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question. There is no such thing as "convert".I want to explain to you at least the part of the problem. First of all, why the formulation of this problem makes no sense at all in general case? This is simple: MIDI operates with modern European 12-tone tonal...
16 May 2015 by iProgramIt
Hi all,I was wondering how to convert mp3 or wav file to midi in Visual Basic .NET.I had a look at LAME, and I don't think it has that functionality.I do not know where to start, so if you could give me a starting point and that, that would be great.Regards, iProgramIt
23 Apr 2015 by CPallini
Did you Google for[^]?
23 Apr 2015 by Member 11421793
how to make a mp3 steganography in vb.net?what's the first step?and what's more?thanks for the attention
23 Apr 2015 by CBO1987
Sorry, I am just using a regular treeView control, one that is dragged from the toolbox to the designer form. Yes, I have a continuous play radiobutton. The code I have is within a timer. I am using Windows Media Player control to check a label for "MediaEnded" event that fires in Windows Media...
23 Apr 2015 by CBO1987
I'm trying to make an MP3 player for a school project...My treeview looks like this+C:\Folders\Folders\Files+Album1 Song1 Song2 Song3+Album2 Song1 Song2 Song3 Song4+Album3 Song1 Song2 Song3 Song4 Song5Once the treeview...
22 Apr 2015 by Maciej Los
You did not provide enough information to help you direct way. Nevertheless, i suppose that your code is incomplete or your logic is wrong. If you need to play songs in a loop, you have to check if user choose 'continuously play'.pseudo-code:bool playinloop =...
17 Apr 2015 by Sergey Alexandrovich Kryukov
First of all, please see my comment to the question. But in addition to my legal concerns, there is one much simpler thing: even if you download some video as MP3, the result… won't be video. "MP3" means "MPEG-1 or MPEG-2 Audio Layer III", an audio standard....
17 Apr 2015 by Member 11616828
Hello Guys, Firstly Excuse Me Because Of My Bad English..I'm Making An WebSite Project And İn The Website I'll Download Youtube Videos As MP3.file.. But I Really Have No İdea About This Project.. As Example;There's Will Be A Button And TextBox..I'll Paste Youtube Link To That...
21 Mar 2015 by Joe Dufresne
A small utility app which uses the excellent NAudio library to help organize backing tracks (audio files for band minus one situations), chord / lead sheets, lyrics, etc. Intended for Windows tablets running a full version of Windows 8.1.
6 Feb 2015 by Richard MacCutchan
https://www.google.com/search?q=sound+mfc[^].
6 Feb 2015 by jrod merc
Hi I am new to audio in cpp. I was just wondering how to play a simple mp3 file in a mfc application.
22 Dec 2014 by ateneouw
Hi my app is generating video in realtime through directx9 as well as pcm sound with directsound.I want to record a "movie" of the genarated video.Im using compressed Microsoft 1 video for video but the thing is the sound. Its compressed in mp3 using lame, but i don't know how to mux mp3...
1 Dec 2014 by aj_scorpio
Hiiiiiiiii i want to capture MICROPHONE audio and convert it into MP3 format and save it on disk. I've done the same for WAV file using the AudioRecorder WAV Dest Filter but i'm not getting any filter to convert to MP3... pls help me i'm new in DIRECTSHOW programming
25 Nov 2014 by Kornfeld Eliyahu Peter
There is a lot of patent-related problems with the MP3 format, so be careful...Anyway you should check these libraries:http://ffmpeg.org/[^]http://gstreamer.freedesktop.org/[^]
24 Nov 2014 by OriginalGriff
Download it again: the original RAR file has been corrupted, and you will spend a lot more time and effort trying to extract any valid portion than you would just re-downloading it.You paid for it - so you should be able to download an uncorrupted version. If you can't, then it may be that...
28 Oct 2014 by Firo Atrum Ventus
I have a simple c# application that record & stream audio with naudio & lame. I use System.Net.Socket for the streaming, just wait for connection, read the header and then pass the socket to lame encoder that will send chunks of mp3.Problem is, FF's audio tag cannot play the thing, it just...
5 Sep 2014 by djdynamix
Here's my problem:I administer about 40 Windows 7 machines for a rental company, which are installed as media players providing background mp3 music and "cdg" karaoke in bars and restaurants. The media library and player software is quite old, proprietary, single-threaded, we don't have the...
16 Apr 2014 by Sergey Alexandrovich Kryukov
Please see my comments to the question. I am shocked. Here is what you can do:using System.Diagnostics;//...string path // path to ffmpeg.exe, use MapPath...string commandLine // command line parameterts for ffmpeg; use string.Format("... {0} {1}", inputFileName, outputFileName)...
16 Apr 2014 by Jocelyne El Khoury
I used to convert caf to mp3 using Wscript.shell and ffmpeg.exe when i was using asp.net but now i'm using a web api restful method in mvc 4, so i don't have a .aspx page i'm getting the following error: Description:System.Web.HttpException (0x80004005): The component 'Wscript.Shell'...
23 Jan 2014 by E.F. Nijboer
Try put [STAThread] above the main method of your application, like this:[STAThread]static void Main(string[] args) {...Good luck!
23 Jan 2014 by JayantaChatterjee
Hi, I searched on google and find code to play mp3 files, but the problems is when the files(.mp3) bit rate is more than 192kbps file not play.My code is(which i found on google) :-[DllImport("winmm.dll")] private static extern long mciSendString(string lpstrCommand,...
8 Dec 2013 by Member 2204906
Imran Parvez Manager (IT) Bhopal
21 Nov 2013 by Yvan Rodrigues
I'm not a big cloud user, but I do run dedicated servers through iWeb. One of the main reasons that I haven't adopted cloud computing is the cost.For $89 you can get a dedicated server with 20TB of bandwidth. For $150 you can get a Xeon E3 with 8GB RAM, 1TB disk in RAID1, and unmetered...
21 Nov 2013 by Motley Drew
I am currently working on a project where we stream (legal) MP3 files to users, and users can upload MP3s. I plugged the site into the Rackspace Cloud Files product. We want to make the site free for users, so we'll have to cover the bandwidth and storage cost.What is troubling me is the...
25 Sep 2013 by Oso Oluwafemi Ebenezer
A c++ wrapper for the LAME library that reduces conversion of PCM (*.wav) to mp3 and vice versa to just two lines of codes
2 Sep 2013 by Mohammad Yasir Awan
i m new in c# .net im working on mp3. i want to get the actual data of one frame of a mp 3 file, as there is first header then side information of the frame is also there. I only need to get the actual bits with no header and ancillary info. Can I use NAudio to do that? I have found...
18 Jul 2013 by Sergey Alexandrovich Kryukov
I would highly recommend the open-source FFmpeg or libavcodec library: http://en.wikipedia.org/wiki/Ffmpeg[^],http://ffmpeg.org/[^],http://en.wikipedia.org/wiki/Libavcodec[^],http://libav.org/[^].In both cases, you can get free open-source utilities which can make nearly everything,...
18 Jul 2013 by longit644
I'm trying to find either a free .NET library to convert Acc file format to Mp3 format Please help.
23 Apr 2013 by RadXPictures
Okay, so I want my users to be able to grant my web app permission to search their local hard drive for mp3 files in order to construct a list of their audio files. What is the best way to go about doing this? Surely you can't do it through just JavaScript and HTML, can you? I debated using a...
26 Mar 2013 by Sergey Alexandrovich Kryukov
Both formats, and a lot more, are supported by FFmpeg or libavcodec, which are the best libraries I know. Please see:http://en.wikipedia.org/wiki/Ffmpeg[^],http://ffmpeg.org/[^],http://en.wikipedia.org/wiki/Libavcodec[^],http://libav.org/[^].You can use them on the server-side either...
26 Mar 2013 by Motley Drew
I am working on streaming audio files in HTML5. The requirements are to supply both mp3 and ogg files to handle different browsers. If a user uploads test.mp3, I need to generate a copy called test.off, and vice versa.I realize the conversion can be done manually with free tools users can...
23 Mar 2013 by André Kraak
You could try using the HTML5 audio[^] tag with a fallback option for browser that do not support it.Here are some resources that explain the fallback option:Using HTML5 audio and video[^]Learn HTML5 in 5 Minutes![^]Working with Media in HTML5[^]
23 Mar 2013 by Motley Drew
I am developing a site that streams MP3 files. I just checked my iPad and my Android phone, and the player does not work on those mobile devices. The reason I am staying away from Flash is because MAC doesn't support Flash, and we want our users to be able to stream from the browsers in their...
12 Mar 2013 by ghincelino
i don't have an idea,.. sorry:(
4 Mar 2013 by himanshu120
I am taking input from microphone which has audio format(sample rate=44100 hz,mono etc..).For creating databse of songs i am reading raw data from audio file using AudioInputStream.So is it necessary to first decode mp3 file in same audio format as user input or not required.
27 Nov 2012 by Pascal van der Donk
I recently bought this module from DealExtreme but I can't seem to find any code for it. I asked DealExtreme if they knew any code but they don't send codes to customers.My question is: does anyone have any experience with this module and do you know any code to attach it to an arduino...
22 Oct 2012 by PGT
linux mint xfce + xbmc + an android app to control it over wifi as a remote.
10 Oct 2012 by Sergey Alexandrovich Kryukov
PGT wrote:If it has been done, could you tell me?With pleasure. I think, there are many products, but the one I know well is VideoLAN. It's open-source and multiplatform:http://en.wikipedia.org/wiki/VideoLAN[^],http://www.videolan.org/[^].I use it on Windows and Linux. It's hard to say...
1 Oct 2012 by PGT
HelloI'm thinking of writing a c++ based HTPC (home theatre) running linux.This might be easy to do in python, but i also need more c++ experienceAs for now i think of something that can play MP3 and DAB (digital audio broadcasts)And can accept some typed command or by network recieved...
25 Sep 2012 by ljw1004
VB code to convert MP3 to WAV in Windows 8 using MediaFoundation