Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm interested in writing a simple music player in C using ffmpeg, but the documentation at the ffmpeg site is pretty barebones and searches for tutorials didn't really turn up anything. Most of the tutorials I've seen are related to writing video players.

Does anyone know of any good resources for learning how to use ffmpeg? Considering I just want to write a simple music player with support for a broad range of formats and codecs, is ffmpeg too heavyweight for a project of this scope? If so, what should I be using?

Thanks!

share|improve this question

1 Answer

FFMPEG is good but is a bit overkill and heavyweight I think. There are lots of features and stuff you wont need. It makes your part of the coding more complicated than necessary. FFMPEG is more suitable for video player.

I think you should check out audio library called "BASS". It is lightweight and its C API implementation is very clear and easy to use. By default it supports MP3, MP2, MP1, OGG, WAV, AIFF audio formats and XM, IT, S3M, MOD, MTM, UMX module formats.

It has also pretty good addon (plugin) support so you can easily expand the audio support as you wish. There are already plugins for WMA, FLAC, MIDI and other popular formats. Bassmod can be used for free if your product is not commercial. If you want to use it in commercial product(s), you have to buy a license for it.

Btw, there are already few music players using this library (like freeware player called "Billy").

Here is the link to the homepage: http://www.un4seen.com

There is also library called "FMOD" which is worth checking. Lots of games and commercial products are using this effective library. It is primarily focused to audio processing (effects) and samples. Personally I think that BASS is more suitable for building a compact and lightweight music player.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["f=\"http://area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"http://careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &copy; 2013 stack exchange inc; \r\n                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.5.20.691\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\"", "\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &copy; 2013 stack exchange inc; \r\n                user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"footer-flair\">\r\n                <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2013.5.20.691\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Stack Overflow works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscript>\r\n    <script type=\"text/javascript\">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-5620270-1']);\r\n        _gaq.push(['_setCustomVar', 1, '"], "copyright__copyright__copyright": ["y called \"FMOD\" which is worth checking. Lots of games and commercial products are using this effective library. It is primarily focused to audio processing (effects) and samples. Personally I think that BASS is more suitable for building a compact and lightweight music player.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}