<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Index out of Bounds &#187; media player</title>
	<atom:link href="http://www.jonathanfritz.ca/tag/media-player/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jonathanfritz.ca</link>
	<description>the personal portfolio of Jonathan Fritz</description>
	<lastBuildDate>Mon, 12 Dec 2011 03:22:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Reinventing the Wheel: A Better Media Player</title>
		<link>http://www.jonathanfritz.ca/software/reinventing-the-wheel-a-better-media-player</link>
		<comments>http://www.jonathanfritz.ca/software/reinventing-the-wheel-a-better-media-player#comments</comments>
		<pubDate>Sun, 22 Nov 2009 17:42:22 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[flac]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[juce]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[m3u]]></category>
		<category><![CDATA[media monkey]]></category>
		<category><![CDATA[media player]]></category>
		<category><![CDATA[meta-data]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[pls]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[rating]]></category>
		<category><![CDATA[sfml]]></category>
		<category><![CDATA[smart playlist]]></category>
		<category><![CDATA[Songbird]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[subsonic]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[windows media player]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.jonathanfritz.ca/?p=157</guid>
		<description><![CDATA[As I&#8217;ve posted in the past, I am a picky media player user. I&#8217;ve tried most every free player under the sun, along with some not so free solutions and have yet to be entirely satisfied with any of the available products. To that end, I&#8217;ve started to think about the possibility of writing my [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve posted in the past, I am a picky media player user. I&#8217;ve tried most every free player under the sun, along with some not so free solutions and have yet to be entirely satisfied with any of the available products. To that end, I&#8217;ve started to think about the possibility of writing my own media player. The following are some of the considerations that I&#8217;ve been mulling over:</p>
<p><strong>Base Requirements:</strong></p>
<ul>
<li>Playback of both mp3 and flac files. Support for other formats could be added as required by me or other users, possibly with us of some sort of plugin engine.</li>
<li>Some kind of a rating system, preferably with a high level of granularity. I&#8217;m not married to the standard 5-stars idea, and may explore alternative ideas, including tagging.</li>
<li>Truly smart playlists that allow for the standard global AND/OR rules, as well as more advanced expressions that support brackets and branching logic.</li>
<li>Smart importing from existing iTunes, Songbird, Media Monkey, and Windows Media Player libraries, various playlist formats, and other types of media collections.</li>
</ul>
<p><strong>Feature Wish List:</strong></p>
<ul>
<li><em>Blackberry Sync</em>: When not at home, I listen to music from a flash card on my Blackberry Curve. The device can be filled with media by simply dumping it all on the media card, which appears as a removable drive. As previously mentioned, I listen to a mix of mp3 files and lossless flac files. When dumping these files to the Blackberry, I would like to see one thread dedicated to converting the flac files to mp3s, while another thread actually fills the device, resulting in a sync process that is not significantly slowed by media conversions. Additionally, since I have hard drive space to spare, I would like to cache some or all of the resulting mp3 files so that they don&#8217;t have to be converted again on the next sync. I would also like to see the ability to import files from the Blackberry to the library so that I could pick up media on the go and bring it home with me.</li>
<li><em>Library Export/Backup</em>: With a library of 10K+ tagged and rated songs, losing the library of meta data about my music would be a traumatic experience indeed. To solve my paranoia over losing this data, I would like to implement the export of single playlists and entire libraries to all of the major playlist formats, as well as to a structured XML document, similar to the one that iTunes maintains. Some kind of automated backup feature like the one that iTunes has would also be nice.</li>
<li><em>Online Integration:</em> I currently report all of my song plays to last.fm, which is an excellent resource for discovering new music. I would like my media player to link in with last.fm and other online resources, but am also open to developing my own online resource that lets users to easily compare and organize their collections, correct their meta data, and actively discover new music that other users have rated.</li>
<li><em>Library Sharing/Streaming:</em> We run a large network with lots of computers, and I&#8217;d like the ability to listen to my music from anywhere in the house. I really like the work that <a href="http://subsonic.sourceforge.net/" target="_blank">Subsonic</a> has done in this area, and hope to implement some or all of it&#8217;s features, while at the same time linking it into my database so that I can see my playlists and edit my meta data from anywhere in the house, and indeed, from anywhere in the world.</li>
<li><em>Cross-Platform and Open-Sourced:</em> Given all of my recent experience with Debian Linux, I&#8217;d like to see my media platform running on both Windows and Linux. This one might take me awhile to accomplish, but is definitely a goal of mine, given that I am now a confirmed Linux user who still keeps a couple of Windows platforms lying around.</li>
</ul>
<p><strong>Implementation:</strong></p>
<p>Of course, with all of these goals in mind, the next step is to consider which platform I&#8217;d like to build on. This basically comes down to a number of choices, some cross-platform, some not:</p>
<ul>
<li><em>Visual Studio .NET:</em> My development IDE of choice, Visual Studio provides extremely quick GUI creation and a great number of useful libraries that cut out a lot of the nitty gritty time consuming base code necessary for a project as large as a media player. Additionally, the Windows Media Player control allows for drop-in playback of media, and I have a ton of example code lying around that implements most of the features listed above. Unfortunately, while .NET 2.0 is supported on Linux under the Mono platform, I don&#8217;t know how far that support goes in terms of media management and playback.</li>
<li> <em><a href="http://www.sfml-dev.org/index.php" target="_blank">SFML</a>:</em> The Simple Fast Media Library is available as libraries that are pre-compiled to run on Windows, Linux, and Mac, with support for Visual Studio, C/C++, Python, and Ruby. It includes packages for windowing, graphics, networking, and most importantly, audio capture and playback. This is a definite contender as it is open source, meaning that I could build the libraries directly into my code, and simply recompile for different platforms. Of course, the downside is that I&#8217;ll have to code in C++, and without any kind of graphical interface builder.</li>
<li><em><a href="http://www.rawmaterialsoftware.com/juce.php" target="_blank">Juce</a>:</em> Jules Utility Class Extensions is like a more featured version of SFML that provides packages for just about every conceivable task, including some serious audio libraries that support all kinds of playback, effects, and hardware accelerated features. In addition, it does audio CD reading and writing out of the box on Mac and PC platforms. If I were to strike out from Visual Studio, this would probably be my library of choice, as it can do nearly everything that VS can do, but is fully open sourced and supported on just about every available platform.</li>
<li><em>Java</em>: I have no idea how realistic this idea is. I do know that in the past, I&#8217;ve created Java apps that can play both wav and mp3 files, and stream those files over a network connection. That said, as much as I enjoy coding in Java, it is widely regarded as being slow and clunky &#8211; not exactly traits that I&#8217;d like associated with a media player that will be running all day. On the other hand, Java is not C/C++ (a huge bonus as far as I&#8217;m concerned), is fully object oriented, has decent audio support, and makes networking extremely easy. That said, programming GUI&#8217;s of any kind of complexity in Java is not a task to be taken on lightly.</li>
</ul>
<p>Well, that about sums it up. This project is definitely something that I intend to undertake in the coming months, and until then, I&#8217;ll keep thinking about my requirements and what library I&#8217;d like to use to implement it. If anybody else has experience with some useful audio libraries that they&#8217;d like to share, please do so in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanfritz.ca/software/reinventing-the-wheel-a-better-media-player/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ups and Downs of Audio</title>
		<link>http://www.jonathanfritz.ca/software/ups-and-downs-of-audi</link>
		<comments>http://www.jonathanfritz.ca/software/ups-and-downs-of-audi#comments</comments>
		<pubDate>Mon, 06 Jul 2009 01:47:32 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[alan cross]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[buffer memory]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[clipping]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[m3u]]></category>
		<category><![CDATA[media monkey]]></category>
		<category><![CDATA[media player]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[pop]]></category>
		<category><![CDATA[related artists]]></category>
		<category><![CDATA[scanning]]></category>
		<category><![CDATA[scrobble]]></category>
		<category><![CDATA[scrobbling]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://jonathanfritz.ca/?p=104</guid>
		<description><![CDATA[Lately, all of my technology seems to by systematically failing on me as if a demon sent by some higher being of tech has decided that I am no longer worthy to own and operate any of my toys. It started with a flatscreen monitor, spread to my blackberry, took out my iPod along the way, and stopped in for tea at my parent's house, where it made enough of a mess to call me away from my own problems for a couple of days trying to fix their computers.]]></description>
			<content:encoded><![CDATA[<p>Lately, all of my technology seems to by systematically failing on me as if a demon sent by some higher being of tech has decided that I am no longer worthy to own and operate any of my toys. It started with a flatscreen monitor, spread to my blackberry, took out my iPod along the way, and stopped in for tea at my parent&#8217;s house, where it made enough of a mess to call me away from my own problems for a couple of days trying to fix their computers.</p>
<p>My room mates insist that I have a &#8220;midas&#8217; touch&#8221; that breaks all the technology that I fool about with. I prefer to consider myself unlucky.</p>
<h2>Blackberry Media Player</h2>
<p>Since I never leave home without my phone, I have recently tried to reduce the amount of crap that I carry around by using my Blackberry as a media player. It has a 4GB memory card in it, and Media Monkey (my jukebox software of choice) treats it just like a USB device that can be filled up with songs from my library.</p>
<p>Normally, after filling the card with music, I simply launch the media application and tell it to shuffle all songs. While it starts playing, the device scans for audio files in the background and fills up a database file of some sort with information gleaned from ID3 tags.</p>
<p>The problems started with a refurbished device that I picked up on a warranty replacement of my original (which mysteriously started to freeze up whenever I used the camera application) &#8211; now when I load the songs onto the device, the scanning process seems to find one or two of them, and just ignore the rest. Imagine my joy after leaving the house this morning for a day at work only to find that I had a grand total of two songs available for listening on my device.</p>
<p>My interim solution has been to tell Media Monkey to export an m3u of the playlist that it puts on the Berry to the device. Then I can just tell the device to shuffle that list instead of waiting for the scan that doesn&#8217;t work to complete before listening to some of my media. If that doesn&#8217;t work, I&#8217;ll likely source a different media player app for the device.</p>
<h2>Windows Media Playback</h2>
<p>Lately, whenever I play music files on my computer (regardless of format, bitrate, or player), they pop and click as if the volume is up too high and the machine is clipping it to compensate. Increasing the amount of buffer memory that Media Monkey keeps helped, as did turning down my levels to prevent clipping; but the noises are still present in the stream.</p>
<p>This one truly puzzles me, as it seems to have started out of the blue, and affects all audio on the system (but not video for some reason). Nothing at the driver or hardware level has changed in recent memory, and the problem spreads across all players, formats, and bitrates, so I don&#8217;t think it&#8217;s an issue with specific software or codecs.</p>
<p>I&#8217;ll keep banging my head against the wall until I figure it out and get back to head banging.</p>
<h2>Last.FM Scrobbling</h2>
<p>On a good note, I recently decided to try playing about with Last.fm after an official scrobbling plugin was released for Media Monkey. Wow. I cannot believe that I went for so long without using this incredible website, and as a music lover, suggest that anybody who collects music start using it immediately.</p>
<p>The plugin is seamlessly integrated with my player, and does all the heavy lifting in the background so that I don&#8217;t even have to worry about it or run a separate app, and the site itself is pretty much astounding.</p>
<p>Occasionally, my music collection feels stale &#8211; even though my standard playlist has about 2500 songs in it (as selected by rating), I sometimes get bored of it and go looking for something new. Previously, I accomplished this primarily by listening to Alan Cross, comparing notes with friends, and trolling amazon.ca and wikipedia pages for information about related bands and albums. Now, last.fm allows me to click the &#8216;related artists&#8217; link from any artist page, or check out it&#8217;s suggestions for stuff that I should listen to.</p>
<p>Consider me a convert for life.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonathanfritz.ca/software/ups-and-downs-of-audi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

