Obtain the most tiny audio file with a MP3 [Resolved]

Just starting out? Need help? Post your questions and find answers here.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Obtain the most tiny audio file with a MP3 [Resolved]

Post by Kwai chang caine »

Hello at all

I have create a program for manage my numerous records, with image of the jacket.
But like KCC don't have enough memory, he forgot the melody of several records :oops:

So KCC have the idea, to cut a little piece of song, and link it with the title and the jacket
I have modify a code found on the german forum, who cut file in several piece.
That's works perfectly :shock:
I'm surprising, because apparently a MP3, can it be cut everywhere and it continue to works with winamp :D

And VENOM give me, a great code for cut a MP3 with FFMPEG, and that's works perfectly too.
But i want to be sure it's the most little file, that i can obtain :roll:
Now for 20 second in 32kbps, 42Khz the file is 80 Ko
But i believe it is again in stereo :roll:

My problem now, it's to reduce the file at his maximum, because i have 6000 titles, and want again more.
And for buy my records y use a EEEPC, and not have a big hard disk, even no hard disk because it's just memory :lol:

So what is the better way to convert a mp3, in the most tiny file.
I don't need the stereo, and not need a best quality for a EEEPC...just recognize the song, like if she is in a phone :D

My friends VENOM, TAZNORMAND, CEDERAVIC, in french forum, give to me a way
FFMPEG apparently it's a good result 8)
LAME, i don't know how can i use this DLL :oops:
FMOD, i don't know how can i use this too :oops:

I don't know anything at the sound.
If someone have see a code, not too complex, for do this little file, i'm happy to be help 8)

Good sunday at all
Last edited by Kwai chang caine on Wed Jan 13, 2010 2:28 pm, edited 1 time in total.
ImageThe happiness is a road...
Not a destination
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Re: Obtain the most tiny audio file with a MP3

Post by Baldrick »

I have some old code at home somewhere I think KCC, but unfortunately I am not there at the moment. If you are not in any hurry I will see if I can dig it up for you when I get home in a couple of days?? ( I may not even be able to find it then though. )
Otherwise, try doing a search for something along the lines of ACM decode as from memory, the code I have is based on some stuff from this forum from about 4 years or more back. :)
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Obtain the most tiny audio file with a MP3

Post by Kwai chang caine »

Thanks BALDRICK for your answer. 8)

If you have a code, i'm interesting. :wink:
I continue to search and perhaps i can compare the better compression with another method :roll:

For me, the most important, it's the size of the file, for 30/60 seconds.
Like on the WEB SITE, when we can hear a little part of a song, that you listen before you buy :D

It's really an unknow domain for me :oops:
I know just run winamp...and click on play :oops: :lol: :lol:

Apparently, convert music it's not easy thing, i'm not at the end of the way :lol:
Again thanks for your answer 8)
ImageThe happiness is a road...
Not a destination
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Obtain the most tiny audio file with a MP3

Post by Kwai chang caine »

Again a freeware for convert audio file with command line :
http://sox.sourceforge.net/

So now..i have four method
FFMPEG
LAME
FMOD
SOX

But which choose for someone like me ??? :roll:
ImageThe happiness is a road...
Not a destination
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Obtain the most tiny audio file with a MP3

Post by Kwai chang caine »

I have try SOX, but it's really not simple. :(
It ask the LibMAD :?

I have download LibMAD, and she is not compiled :shock:

There is not a better simple way for create this short pîece of music ???
ImageThe happiness is a road...
Not a destination
jamirokwai
Enthusiast
Enthusiast
Posts: 798
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Obtain the most tiny audio file with a MP3

Post by jamirokwai »

Kwaï chang caïne wrote:I have try SOX, but it's really not simple. :(
It ask the LibMAD :?

I have download LibMAD, and she is not compiled :shock:

There is not a better simple way for create this short pîece of music ???
Hi KCC,

try XMPlay. It comes with a Disk-Writer-Plugin, which uses Lame or something similar. You have to put the lame.exe inside the same directory as XMPlay.exe.
Then you may set the output-quality to 8bit, mono, 11025hz, and export your file with the disk-writer...
I use this tool for ages now. It's free, and great; based on BASS... btw. BASS for PB should be able to do the trick, also?!

http://support.xmplay.com
Regards,
JamiroKwai
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Re: Obtain the most tiny audio file with a MP3

Post by Baldrick »

KCC, I am back at home now & have had a quick look without success to find my old code. :( I will keep looking for you as I know it is in some old archive I have here somewhere... )
Anyway, I am pretty sure the stuff I had is based around some code originally ported by Rescator, Here:
http://www.purebasic.fr/english/viewtop ... 1&p=103998
It will need quite a bit of work for you to get it working though I think, but if you can do it, it will allow you to rework your mp3's down to about 6Kb/sec if I remember rightly & the file size can be reduced by upwards of around 70 to 80%. ( I used it to make up some music on an old 512MB Mp3 player & it effectively allowed me to do a trip of around 1,200Km in my car without repeating a song... :mrgreen: )
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Obtain the most tiny audio file with a MP3

Post by Fred »

Please remember than if you need to publish your application with mp3 support, you will need to pay a license for it.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Obtain the most tiny audio file with a MP3

Post by Kwai chang caine »

@JAMIROKWAI
Ok i try it, it's already a solution if i not found a PB code

@BALDRICK
Never mind, thanks already to have search for me 8)
I go to see your link...perhaps i can do something with this :roll:

@FRED
Yes you are right, it's always a good idea to call of this "little item" :oops:
Numerous persons believe that MP3 is FREEWARE, but not :?

But do not get worried, KCC is not enough good to sell anything :lol:
Or perhaps at his mother, sister, father .... :D

The MP3 is not FREEWARE.....not to be confused with the GIF....it is FREEWARE the GIF now, eh FRED i'm right eh !!!! :mrgreen: :lol: :lol: :lol:

@ALL
Thanks at you all for your help 8)

I'm not fixed to a format, where is the better format for compression
OGG, MP3...etc ???? :roll:
ImageThe happiness is a road...
Not a destination
jamirokwai
Enthusiast
Enthusiast
Posts: 798
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Obtain the most tiny audio file with a MP3

Post by jamirokwai »

Kwaï chang caïne wrote:I'm not fixed to a format, where is the better format for compression
OGG, MP3...etc ???? :roll:
I'd said OGG. It sounds better than MP3 at low bitrates, and is absolutely free :)
Regards,
JamiroKwai
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Obtain the most tiny audio file with a MP3

Post by Fred »

And is handled natively by PB !
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: Obtain the most tiny audio file with a MP3

Post by UserOfPure »

Fred wrote:Please remember than if you need to publish your application with mp3 support, you will need to pay a license for it.
I don't understand. If we open an MP3 for playback with LoadMovie, then we don't need a license, do we? Because LoadMovie just uses the installed codecs to handle the file; it's not PureBasic decoding them. Isn't that right?
Fred
Administrator
Administrator
Posts: 18237
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Obtain the most tiny audio file with a MP3

Post by Fred »

Yes, that's right. But if you include your own decoder, it's not the same.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Obtain the most tiny audio file with a MP3

Post by Kwai chang caine »

Fred wrote:Yes, that's right. But if you include your own decoder, it's not the same.
It's difficult to know all the slenderness of the law :roll:


Someone in the NET, talk about MPC, Monkey's audio for better compression.... :roll:

1/ So like it's to make little piece, for just recognize a song in MY program, then i not need MP3
2/ Like the OGG is better that MP3
3/ OGG is FREE like GIF :mrgreen:
4/ OGG is recognize by PB

There is 4 reasons to choose OGG 8)

If someone, found a code or a tips to create this little piece of song in mono OGG, the more tiny possible......
Remember the adresse of KCC :D 8)

Because KCC, is lost in this jungle of audio, like if he is.... in the middle of the sea :(
Image
ImageThe happiness is a road...
Not a destination
jamirokwai
Enthusiast
Enthusiast
Posts: 798
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Obtain the most tiny audio file with a MP3

Post by jamirokwai »

Kwaï chang caïne wrote:There is 4 reasons to choose OGG 8)
If someone, found a code or a tips to create this little piece of song in mono OGG, the more tiny possible......
Psst... XMPlay can :)
You can us OGGEnc, provided on the same page (or via a link) to batch-convert your .wav, .mp3s, .what to .ogg :)
Regards,
JamiroKwai
Post Reply