Board.KolibriOS.org

Official KolibriOS board
It is currently Sat Apr 20, 2019 11:39 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 31 posts ]  Go to page Previous 1 2 3 Next
Author Message
 Post subject: Re: minimp3
PostPosted: Tue Jul 22, 2014 2:14 pm 
Offline
KSoC/GSoC Student - Auto-build destroyer

Joined: Mon Mar 10, 2014 12:07 am
Posts: 17
Вот .obj библиотека на основе minimp3. Так же в архиве файл для проверки библиотеки.
Что бы проверить нужно указывать путь следующим образом
"path/to/mp3libcheck /path/to/mp3/file /path/to/output/file"

Вот ссылка на исходный код на гитхабе: https://github.com/right-hearted/kolibrios-minimp3
Attachment:
kolibrios-minimp3.tar.gz [26.72 KiB]
Downloaded 137 times


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Jul 23, 2014 11:12 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
So how do I use this library? Where is the documentation? Or maybe just a description of the API?
Any demo programs available? How did you test this?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Jul 23, 2014 12:11 pm 
Offline
KSoC/GSoC Student - Auto-build destroyer

Joined: Mon Mar 10, 2014 12:07 am
Posts: 17
hidnplayr wrote:
So how do I use this library? Where is the documentation? Or maybe just a description of the API?
Any demo programs available? How did you test this?


Test application is inside archive attached to the post. Also, there is source code of both library and test application on github link. On the github you will find small readme file that shortly describes main functions.

As usual you just stdcall functions that are inside library and use them to decode mp3 files into raw data adn do whatever you want to do with it.
I only know how to open raw audio files on linux, sorry. In audacity you just import file as a raw file without header data.


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Jul 23, 2014 12:31 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
The test application inside the archive seems broken.
No output on debug board, no visible crashes, just exits immediately.
Loading it into the debugger revealed that you immediately want to allocate memory after load, while you did not initialise heap yet.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Jul 23, 2014 1:07 pm 
Offline
KSoC/GSoC Student - Auto-build destroyer

Joined: Mon Mar 10, 2014 12:07 am
Posts: 17
Probablly you haven't put newlib (libc.dll) into the corresponding folder. You see I am using newlibc from Serge. Would you mind trying to test it on iso image of kolibri. There has to be right newlibc. I am also attaching libc.dll into this post, in case you don't have any.
The other reason may be that you haven't put minimp3.obj into /lib/ folder.


Attachments:
libc.dll.tar.gz [111.43 KiB]
Downloaded 113 times
Top
   
 Post subject: Re: minimp3
PostPosted: Wed Feb 25, 2015 8:37 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 4977
popovpa wrote:
Не проигрывает файлы большого объёма...130 мб и 146 мб...1 секунду слышен скрежет и дальше тишина...проблема в minimp3 он падает...

_________________
Через тернии к звездам


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Feb 25, 2015 9:13 pm 
Offline
KSoC/GSoC Student - Auto-build destroyer

Joined: Mon Mar 10, 2014 12:07 am
Posts: 17
Leency,
Впервые слышу о mp3 файле такого размера, вероятно запустился не mp3 а какой нибудь flac или еще чего. Но если все же это такой огромный mp3, то скорее всего тупо не хватает памяти все это дело разжевать, хотя хз, Дима лучше шарит


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Feb 25, 2015 9:41 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 4977
popovpa
Он ведь переводит распаковывает перед воспроизведением? Может память закончилась?

_________________
Через тернии к звездам


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Feb 25, 2015 9:42 pm 
Offline
Moderator

Joined: Thu Apr 08, 2010 8:11 pm
Posts: 269
2 гигабайта памяти закончились? А где посмотреть сколько памяти свободной?

ASOT Armin van Buuren, всё время в таком размере, а бывает ещё толще...
В данном случае вот это не проигрывается: http://www.litesoundsession.com/podcast ... out_coast/
chillout coast by Andrey Faustov


Top
   
 Post subject:
PostPosted: Wed Feb 25, 2015 11:34 pm 
Offline
KSoC/GSoC Student - Auto-build destroyer

Joined: Mon Mar 10, 2014 12:07 am
Posts: 17
Насколько я помню он выгружает raw файл, то есть декодирует и занимаемая память довольно сильно растет, так что 140 метров mp3 могут превратиться в 800 метров raw
Хотя по хорошему он должен разжимать в память и сразу удалять то что использовано. Но в данной библиотеке вся песня кажется в памяти сидит


Top
   
 Post subject: Re: minimp3
PostPosted: Thu Feb 26, 2015 10:03 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Нет, здесь вызывается функция "декодировать чанк". Нужно внимательно смотреть, в чем дело.


Top
   
 Post subject: Re: minimp3
PostPosted: Mon Mar 23, 2015 5:54 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
I would like to listen to internet radio in Kolibri. HTTP part is ready to go!

Minimp3 however does not seem to decode the stream correctly (outputs some garbage through the speakers).
Also the usage of newlib (which requires big fat runtime library) is unacceptable to me.

Is anybody still working on this library?

PS: AC97snd player decodes the stream correctly, and the decoder is even smaller then minimp3!
Perhaps making this decoder a COFF library would be even better then this minimp3...

EDIT: It seems minimp3.obj works without any external library's, only the example program needs libc.dll

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: minimp3
PostPosted: Wed Jan 23, 2019 4:37 pm 
Offline

Joined: Wed Mar 08, 2017 9:38 am
Posts: 6
А есть асм исходники minimp3 для Fasm-а ?
И можно их посмотреть ?


Top
   
 Post subject: Re: minimp3
PostPosted: Fri Jan 25, 2019 12:20 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 4977
Roman wrote:
А есть асм исходники minimp3 для Fasm-а ?
И можно их посмотреть ?
Либа на Си.

_________________
Через тернии к звездам


Top
   
 Post subject: Re: minimp3
PostPosted: Fri Jan 25, 2019 10:24 am 
Offline

Joined: Wed Mar 08, 2017 9:38 am
Posts: 6
А в чем собирали Си код ?
Code::Blocks или Visual Studio 2012 ?

Я на github находил minimp3-master.
Компилил в Code::Blocks. Размер экзешника получил 67 kb (килограмм)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 31 posts ]  Go to page Previous 1 2 3 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited