<?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>wonkablog &#187; MPlayer</title>
	<atom:link href="http://wonkabar.org/category/computers/multimedia/mplayer/feed/" rel="self" type="application/rss+xml" />
	<link>http://wonkabar.org</link>
	<description>linux, databases, cartoons and cornflakes</description>
	<lastBuildDate>Tue, 27 Jul 2010 21:25:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mplayer + libbluray support</title>
		<link>http://wonkabar.org/2010/07/08/mplayer-libbluray-support/</link>
		<comments>http://wonkabar.org/2010/07/08/mplayer-libbluray-support/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 00:34:53 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Multimedia]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1291</guid>
		<description><![CDATA[MPlayer just very recently got support for playback of unencrypted Blu-Ray discs using libbluray.  (Thanks to all the devs and testers!   )  Apparently development for the library is being hosted on VLC's git servers now, something I had no idea about.  I thought the project was dead upstream.
I'm adding an ebuild for libbluray [...]]]></description>
			<content:encoded><![CDATA[<p>MPlayer just very recently got support for playback of unencrypted Blu-Ray discs using <a href="http://git.videolan.org/?p=libbluray.git;a=summary">libbluray</a>.  (Thanks to all the devs and testers! <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )  Apparently development for the library is being hosted on VLC's git servers now, something I had no idea about.  I thought the project was dead upstream.</p>
<p>I'm adding an ebuild for libbluray to the <a href="http://gitorious.org/gentoo-multimedia">gentoo multimedia overlay</a> if someone wants to access it.  It's something I plan on pushing into the mainline tree soon enough, once it's properly finished.</p>
<p>If you are building MPlayer from SVN, it will automatically detect the new library, and build against it.  You can use the -9999 ebuild in the portage tree.</p>
<p>To playback some of your Blu-Ray content, you will first need to extract it to your harddrive.  I use MakeMKV, also in the multimedia overlay, to accomplish that.</p>
<p>Here's a simple way using the CLI to dump the contents:</p>
<p>$ makemkvcon backup --decrypt disc:/mnt/bluray/ &lt;location to dump content&gt;</p>
<p>The syntax for playback is:</p>
<p>$ mplayer br:// -bluray-device &lt;path to dumped content&gt;</p>
<p>By default, it will play the longest playlist (I think).  If you can get the list of playlists available, you can pass that as an optional parameter to br:// (fex: list_titles /home/steve/bluray/src; mplayer br://5 -bluray-device /home/steve/bluray/src).</p>
<p>libbluray also ships with a few example programs that do basic stuff like listing the titles (list_titles), dumping information about the playlists (mpls_dump), and a few more (sound_dump, index_dump, mobj_dump, libbluray_test, bdsplice, clpi_dump).</p>
<p>Have fun with it. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/07/08/mplayer-libbluray-support/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>gentoo + youtube &#8211; flash + mplayer</title>
		<link>http://wonkabar.org/2010/06/24/gentoo-youtube-flash-mplayer/</link>
		<comments>http://wonkabar.org/2010/06/24/gentoo-youtube-flash-mplayer/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 15:10:07 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Multimedia]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1258</guid>
		<description><![CDATA[So, if you're getting a little tired of Flash and it's silly security hiccups, but still can't live without the YouTubey goodness that is the awesome sauce of life, here's a simple solution I stumbled onto: use mplayer to watch the videos!

I haven't found a way to embed this in my browser yet, but I [...]]]></description>
			<content:encoded><![CDATA[<p>So, if you're getting a little tired of <a href="http://www.youtube.com/watch?v=pUrJQbBFez8">Flash</a> and it's silly security hiccups, but still can't live without the YouTubey goodness that is the awesome sauce of life, here's a simple solution <a href="http://wiki.multimedia.cx/index.php?title=MPlayer_youtube_script">I stumbled onto</a>: use mplayer to watch the videos!</p>
<p><a href="http://wonkabar.org/wp-content/uploads/2010/06/flash_gordon_saves_the_day.jpg"><img class="aligncenter size-full wp-image-1259" title="flash_gordon_saves_the_day" src="http://wonkabar.org/wp-content/uploads/2010/06/flash_gordon_saves_the_day.jpg" alt="" width="480" height="222" /></a></p>
<p>I haven't found a way to embed this in my browser yet, but I haven't really looked either, so this is for all the CLI geeks.</p>
<p>$ mplayer $(<a href="http://bitbucket.org/rg3/youtube-dl/wiki/Home">youtube-dl</a> -b -g http://www.youtube.com/watch?v=9IfEInQ7aic)</p>
<p>And thar ya go. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Oh, and did you know that <a href="http://www.blu-ray.com/movies/Flash-Gordon-Blu-ray/10510/">Flash Gordon</a> is on Blu-Ray now?  Flash!  Aaaaaa-ah!</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/06/24/gentoo-youtube-flash-mplayer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>random dvd roundup</title>
		<link>http://wonkabar.org/2010/04/19/random-dvd-roundup/</link>
		<comments>http://wonkabar.org/2010/04/19/random-dvd-roundup/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 15:26:40 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Matroska]]></category>
		<category><![CDATA[Multimedia]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=1203</guid>
		<description><![CDATA[I've been shuffling stuff around lately with my DVD collection, and one thing I've been doing is cleaning up my DVD ripper and web frontend to catalogue my entire collection (todo: put in git, trac).  I finally finished archiving this weekend all the cartoons I have, and I actually finished ripping all of them that [...]]]></description>
			<content:encoded><![CDATA[<p>I've been shuffling stuff around lately with my DVD collection, and one thing I've been doing is cleaning up my DVD ripper and web frontend to catalogue my entire collection (todo: put in git, trac).  I finally finished archiving this weekend all the cartoons I have, and I actually finished ripping all of them that I want to archive, too.  They're not all in one place yet, but by the estimates I'm running (one nice feature of my new code) is that it's gonna take about 750 gigs of storage.  Whee!  It's all worth it to have 8 seasons of Super Friends on demand (seriously).</p>
<p>I found a few bugs in my ripper this weekend, one of them was that I was only storing one possible subtitle type in my Matroska rips.  If a DVD had both VobSub and Closed Captioning, it'd only mux the first one I added.  Fixing it was fun, since it was one of those moments where you open up the code trying to find the reason for it, and you find a big comment labeled "FIXME: Add this feature here."  Heh.  So, now it muxes both, if available.  Woots.</p>
<p>There is still one DVD subtitle format that I am having absolutely zero luck in finding anything about -- English SDH (Subtitled for the Deaf and Hard of hearing).  According to Wikipedia, <a href="http://en.wikipedia.org/wiki/Subtitle_(captioning)#SDH">it's basically closed captioning with color</a>.  I can play / watch / rip closed captioning just fine (watching: mplayer -subcc dvd://, ripping: <a href="http://ccextractor.sourceforge.net/">ccextractor</a>), but not SDH.  And I haven't seen anything that can even play them yet, although in fairness I've only been playing with Linux applications.  And everytime I try to explain to someone what I'm trying to do, they think I'm talking about VobSub subtitles.  Usually I get tired of trying to <a href="http://www.dvddemystified.com/dvdfaq.html#1.45">explain the difference</a> and give up searching.  I could try finding some Windows apps to rip / play them, but if I can't get something in Linux that's scriptable to access them, then it doesn't matter anyway.  So, if someone knows of something ... <a href="http://wonkabar.org/contact-me/">plz to drop me a line</a>, kthx.</p>
<p>Speaking of subtitles and MPlayer, I've come to the conclusion that MPlayer's support for them is just plain sub-par.  The options to play them back (or force them off) are buggy and inconsistent across the bar.  For example, here's a small roundup:</p>
<p>- Flagging a subtitle track as "default" when muxing a Matroska stream means that, if you turn on subtitles in the viewer, that should be the first one to show up.  It does not mean "these are forced subtitles, so display them automatically."  That's why Matroska has a "forced" tag.  default != forced.  If you're still lost, look at the original audio and video tracks, and you'll see they are also muxed with the "default" flag fipped on.  It's purpose makes more sense with video with multiple audio tracks -- if there's more than one, which one do you play by default?  The one with the "default" flag!  Same principle should apply with subtitles when you turn them on.</p>
<p>- MPlayer can't load Matroska subtitles externally.  You can, if you wish, mux just subtitle streams into a Matroska wrapper (ex: mkvmerge subtitles.{idx,srt} -o subtitles.mks).  But using "mplayer -sub subtitles.mks" won't work.  Bummer. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   I understand that in this case, the Matroska stream could contain more than one subtitle stream (VobSubs and CC in my example), and it generally expects just one (-sub subtitles.idx, fex), but still, it'd be a fancy feature. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>- MPlayer can't dump CC to SRT, even though it can play them (mplayer -subcc).  Bummer.</p>
<p>- Random rant about -noforcedsub and -nosub and -sub are conflicting / confusing, but too lazy to put together data about it, and it's mostly related to the Matroska one above.</p>
<p>I just had to get that stuff off my chest. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I have faith in MPlayer eventually improving in said areas, and filing bugs would probably be good on my part.  I generally don't deal with subtitles much anyway, so for me it's kind of a "would be nice to have" set of features.  Meaning, I've already worked around the bugs and they don't bother me as much anymore.  I would be curious to get SDH read support though.</p>
<p>I'm starting to notice a general trend here -- I complain a lot about certain issues and bugs in detail, but never go out of my way to report them.  I'm becoming the kind of user that as a developer I totally hate!  Oh noes!</p>
<p>In reality, I like being able to be on both sides of the coin, and I'd have to agree with the assessment of most user complaints I see, that are: the barrier to entry to reporting bugs is too hard.  I could go into detail about that, but I don't really want to, as I don't wanna focus on the negative.  But generally speaking, sometimes it's too much of a hassle to <em>easily </em>report a bug.  If it means me creating yet another user account on a bug tracker or subscribing to a mailing list, I weigh that against the strain of just ignoring or working around the bug.</p>
<p>I am, of course, to blame for my laziness, and I completely understand that developers (such as myself) need a detailed report with contact information along with the ability to quickly index reports.  I wonder if there's some magical middle ground, though, where users who aren't regular bug reporters can just easily report their issues and be on their way.  I know in Gentoo, we tend to use the forums as a poor-man's bugzilla sometimes, and maybe that's one way to do it.  Interesting stuff to think about.  Drive-by bug reporters, kinda thing.  They'll come by once or twice, but not regularly.</p>
<p>Anyway, I can't think of any other interesting DVD stuff I ran into this weekend.  Other than I bought season three of Taxi and it wasn't as entertaining as I remembered it to be.  Oh well.  You win some, you lose some.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2010/04/19/random-dvd-roundup/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>letterbox movies with mplayer</title>
		<link>http://wonkabar.org/2009/07/10/letterbox-movies-with-mplayer/</link>
		<comments>http://wonkabar.org/2009/07/10/letterbox-movies-with-mplayer/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:21:34 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=910</guid>
		<description><![CDATA[Non-anamorphic widescreen movies can be a bit of a pain to watch on a widescreen monitor or TV these days.  I don't have very many of them myself, but one I do have is I accidentally bought the original Star Wars trilogy in fullscreen, but it has the original theatrical version in widescreen -- [...]]]></description>
			<content:encoded><![CDATA[<p>Non-anamorphic widescreen movies can be a bit of a pain to watch on a widescreen monitor or TV these days.  I don't have very many of them myself, but one I do have is I accidentally bought the original Star Wars trilogy in fullscreen, but it has the original theatrical version in widescreen -- albeit in letterbox format.  Basically that means that instead of presenting it in 16:9 format natively, it's widescreen in 4:3.  There's no really easy way to play it on my HDTV since I'd have to break all my normal settings to get it work for just this one.  So what happens is it gets pulled more than normal and looks really bad.  Fitting fullscreen to widescreen is tolerable, but stretching a picture that is already in scope just does not look good.</p>
<p>The simplest way I'm dealing with it now is just rip the DVD and use MPlayer to play it back correctly.  I only need a few switches, and I'm done.</p>
<p>There's two ways to deal with it.  The first, I just crop it myself with this:</p>
<p>$ mplayer -vf crop=704:352:8:64</p>
<p>Here's a before:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://spaceparanoids.org/img/mplayer_letterbox.jpg" alt="" width="450" height="349" /></p>
<p>and the after:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://spaceparanoids.org/img/mplayer_letterbox1.jpg" alt="" width="450" height="266" /></p>
<p>You can't tell from these since I had to rescale them for the blog, but the second one was slightly less narrow than the first by a few pixels.  Can be a bit of an annoyance.</p>
<p>The second way is much simpler.</p>
<p>If you're playing back on a widescreen monitor, just do this:</p>
<p>$ mplayer -panscan 1 -aspect 4:3</p>
<p>And it will frame it perfectly. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2009/07/10/letterbox-movies-with-mplayer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mplayer and matroska metadata, part two</title>
		<link>http://wonkabar.org/2009/06/16/mplayer-and-matroska-metadata-part-two/</link>
		<comments>http://wonkabar.org/2009/06/16/mplayer-and-matroska-metadata-part-two/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 02:59:15 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Matroska]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=900</guid>
		<description><![CDATA[Man, what a week it has been.  I have been plugging away at a lot of stuff, and the bug to get my whole media setup tweaked even more has really bit me bad.  I've been working on nothing but for a while.
The coolest thing is that two of my patches got submitted upstream, one [...]]]></description>
			<content:encoded><![CDATA[<p>Man, what a week it has been.  I have been plugging away at a lot of stuff, and the bug to get my whole media setup tweaked even more has really bit me bad.  I've been working on nothing but for a while.</p>
<p>The coolest thing is that two of my patches got submitted upstream, one for mplayer, and one for ffmpeg.  In both cases, they needed to be changed a bit, but I'm still happy with the results.  The ffmpeg one was <a href="http://wonkabar.org/2009/06/06/mplayer-and-matroska-metadata/">the patch I wrote about previously</a>, to have the LAVF demuxer pull out all the metadata that's in the Matroska container.  That's in there as of revision 19184.  Thanks, aurel. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There's no way currently of cleanly pulling it out of MPlayer for display, though <a href="http://spaceparanoids.org/gentoo/mplayer/matroska_metadata_lavf.diff">my hack</a> works just fine.  The demuxer for mplayer needs a new function to iterate through all the metadata that's available, and add it to the demuxer info.  Currently, it's only pulling out a few named keys specifically.</p>
<p>Here's a screenshot of how it looks where I'm pulling it out, in this case I'm just using it as an OSD menu screen display.</p>
<p><img class="aligncenter" src="http://spaceparanoids.org/img/mplayer_osd_menu_mkv_metadata1.jpg" alt="" width="400" height="300" /></p>
<p>The actual documentation on how to access the OSD menus and work them is pretty non-existent.  I'll try and write some up and get it submitted when I get a chance.  In the meantime, if you want to see what my menu configuration looks like, <a href="http://spaceparanoids.org/gentoo/mplayer/menu.conf">have at it</a>.  I haven't cleaned it up at all.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2009/06/16/mplayer-and-matroska-metadata-part-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mplayer and matroska metadata</title>
		<link>http://wonkabar.org/2009/06/06/mplayer-and-matroska-metadata/</link>
		<comments>http://wonkabar.org/2009/06/06/mplayer-and-matroska-metadata/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 04:46:45 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Matroska]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=890</guid>
		<description><![CDATA[I've been playing with Matroska in general a lot more, seeing what I can do, and in the past week and a half, I've found some really cool things.  I'm completely braindead after staring at the mplayer code all day, so if I come across a little confusing, now you know why.  It's [...]]]></description>
			<content:encoded><![CDATA[<p>I've been playing with Matroska in general a lot more, seeing what I can do, and in the past week and a half, I've found some really cool things.  I'm completely braindead after staring at the mplayer code all day, so if I come across a little confusing, now you know why.  It's one of those instances where I wanna get this documented though, if nothing else than for a small marker of a pretty big milestone for me. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I'm too tired to lay this down in story format, so I'm just gonna dump it out best I can.</p>
<p>The other week, I noticed that a new version of mkvtoolnix had come out (the tool to mux audio/video files into the Matroska container), and it totally flew under my radar.  I started playing with it, and noticed some real improvements in speed, with regards to parsing MPEG-2 video.  After playing around a bit, I started reading some more of the documentation, and found out about this excellent tagging system that the specification declares.</p>
<p>You can read all the gory details about it <a href="http://www.matroska.org/technical/specs/tagging/index.html">here</a>, but basically, when building a Matroska file, you can create an XML file that has global tags that can store pretty much every metadata tag I could ever dream of possibly wanting.</p>
<p>I never really had the itch to pack much metadata into the container up until this time, when I realized just how much factual data I could stuff in there and not depend on the database for.  Pretty much the only thing I really cared about was the title.  In fact, all I wanted originally was to be able to get MPlayer to display the metadata title that was in the file.</p>
<p>Going off on a tangent here, I poked an open bug I have on MPlayer's bugzilla, and Reimar, an mplayer dev, was kind enough to oblige me once more and updated the code so that I could pull it out.  If you're using a recent snapshot (for Gentoo, the 20090530 one has it), you can pull it out using "get_property metadata/title" in <a href="http://www.mplayerhq.hu/DOCS/tech/slave.txt">slave mode</a>.  If you wanted to display it on-screen, you would map a keypress event or LIRC event to this: osd_show_property_text "${metadata/title}".  Quotes and all.</p>
<p>Anyway, Reimar added that in for me (thanks, man), so I started poking around with mplayer's features to see what else it could pull out for me.  Now that I was going to be storing lots more data in the container, I wanted to be able to pull it out, too.</p>
<p>Jump forward a bit to today, where I woke up this morning and was determined to get it out somehow.  My original plan that I had decided on was, since I can't really hack on C code, to just work around the limitation by using a fifo for mplayer.   I'll spare you the ugly details, but basically I was going to have an event send a command to an external script that would query the .mkv file for the metadata tag I requested, and send a command back through the pipe to print that out to the screen.  Quite a run around.</p>
<p>Well, I've tried before to grep the code of mplayer a bit to see if I could wrap my head around the stuff and see if I could figure it out for myself, but it hasn't worked out real well.  I decided to give it another whirl today, though.  This time, however, my approach was a little bit different.  Normally I would just search for keywords where I *think* mplayer would be doing what I would think it was doing, tinker with the code, recompile it, run it, and see what it does.  A really slow process, but sometimes it works.  And I really don't mind spending the time on it, either.</p>
<p>This time, I did things a little bit differently.  I found a file where I was sure that it was accessing matroska metadata, and I read the entire thing, and took copious notes, explaining to myself the whole time, basically what I thought the purpose of each major element was, trying to figure out the pattern to this.  Now, bear in mind, that I'm still learning some C++ myself, and the C syntax is pretty similar (in fact ... I still can hardly tell the difference, myself), so a lot of times I have a vague understanding of what it *might* be doing, but never enough to be sure ... so there is still a lot of guesswork involved.</p>
<p>Anyway, after about 10 hours of going back and forth, making notes, testing code, printing out functions and variables and metadata, I got it figured out.  And the final patch is something like 2 lines long, heh.  All I did was add one if statement.  But, that was enough to get me going, and it solved a nagging issue for me.  But, what is far more valuable, is the fact that I've learned how I can go into this code and figure out how to fix things myself.  That's gonna really come in handy.  I'm sure I won't be submitting patches upstream anytime soon, but if I can get what I want hacked in there, and working, I'll be happy as a clam.</p>
<p>For the record, the problem with the metadata was this: MPlayer has a single key=value pair that it assigns to metadata values with it is parsing it with the libavformat demuxer.  That is normally well and good, except in the case of Matroska, the tags can be nested with similar names.</p>
<p>So, for example, say you have two target tags in your matroska container: Collection and Episode.  If it were a TV show, let's say it's CHiPs.  Great show, btw.  Now, in the tagging specification, both of them can have a title.  The title for the collection would be CHiPs.  If you had a Matroska A/V file that was just one episode, then the title for that would be "Ponch Delivers A Baby on the Disco Floor" or whatever (which really does happen, I kid you not).  They key for both of those would be "title", but the values would be different.  The LAVF demuxer just overwrites the old value and assigns it to whatever comes last.  Kind of a problem.</p>
<p>So all I did was told the demuxer to prefix the key names with whatever the name of the target tag was (Collection, Season, Episode, etc.).  That way you can have distinct key value pairs, but they are just more verbose.  The metadata property names now are metadata/collection/title instead of metadata/title.  Pretty simple, really.</p>
<p>That was the easy part.  The second part, I haven't figured out yet -- how to get it out.  The metadata is all in a separate object created by the LAVF demuxer, which I don't know enough C to figure out how to access that outside of that class.  So, I just hacked it to add it to the metadata myself in a rather ugly, but working fashion.  Upstream probably wouldn't be interested in that patch.</p>
<p>Another hard day's work, and I'm still not done.  And I've got a lot more to write about it, so I'll just stop here for now.  I'm gonna go port the patches to my frontends. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Edit: For reference, the <a href="http://spaceparanoids.org/code/matroska/matroskadec_nested_metadata.diff">clean version of the patch</a>, a <a href="http://spaceparanoids.org/code/matroska/sample_global_tags.xml">sample XML file</a> of what I would mux in with an episode, and <a href="http://spaceparanoids.org/code/matroska/matroska_metadata_property.diff">the ugly hack</a> I personally am using to get it all out where my lack of C knowledge is very much publicly exposed.  Note that you have to use -demuxer lavf with mplayer for it to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2009/06/06/mplayer-and-matroska-metadata/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mplayer and vdpau in portage</title>
		<link>http://wonkabar.org/2009/02/27/mplayer-and-vdpau-in-portage/</link>
		<comments>http://wonkabar.org/2009/02/27/mplayer-and-vdpau-in-portage/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 15:54:11 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=692</guid>
		<description><![CDATA[I was hoping to write a lengthy post about VDPAU support for MPlayer in the portage tree, but since my harddrive crashed this week and I'm still recovering from that, a small announcement will have to suffice for now.
I just added a new ebuild to the tree this week for MPlayer, which has support for [...]]]></description>
			<content:encoded><![CDATA[<p>I was hoping to write a lengthy post about VDPAU support for MPlayer in the portage tree, but since my harddrive crashed this week and I'm still recovering from that, a small announcement will have to suffice for now.</p>
<p>I just added a new ebuild to the tree this week for MPlayer, which has support for the much talked about VDPAU which comes with nvidia video cards and binary drivers.  If you don't know what that is, it is probably most simply described as XvMC for more codecs: MPEG1, MPEG2, MPEG4 (H264), WMV, VC1.  The player offloads a lot of CPU decoding to the video card instead of your processor, meaning cheap video cards and cheap computers can playback HD without any hiccups.</p>
<p>In theory, at least.  I don't know how well it works since I haven't been able to test it much, and whenever I do, I can't get it under 50% CPU anyway.</p>
<p>Anyway, you are free to try it of course.  The latest mplayer ebuild is 20090226.28734.  The naming scheme changed to reflect both the release date of the snapshot (Feb 26 2009) and the SVN revision from upstream (28734).  There is a "vdpau" use flag you'll need to enable on the ebuild, and you'll need  v180.22 or higher of nvidia-drivers.  In this case, nvidia is releasing updates with new drivers, so the more recent the better.</p>
<p>Here's some cool stuff to read about VDPAU and what it can do:</p>
<p><a href="http://www.phoronix.com/scan.php?page=news_item&amp;px=NzA5MQ">NVIDIA 180.35 Driver Update Brings Changes</a></p>
<p><a href="http://www.phoronix.com/scan.php?page=article&amp;item=nvidia_vdpau_gpu&amp;num=1">HD Video Playback With A $20 CPU &amp; $30 GPU On Linux</a></p>
<p><a href="http://en.wikipedia.org/wiki/VDPAU">Wikipedia entry</a></p>
<p><a href="http://www.mythtv.org/wiki/VDPAU#Supported_Cards">MythTV Wiki: Supported Cards</a></p>
<p><a href="http://www.nvnews.net/vbulletin/showthread.php?t=123095">nvnews forum thread: mplayer and vdpau</a> - see the third post for samples to test and mplayer command lines.</p>
<p>Oh yes, using it is pretty much a matter of mplayer -vo vdpau foo.wmv.  You may or may not need to use the -vc argument.  I haven't looked closely.  See "mplayer -vc help | grep vdpau" for a reference, or the man page.</p>
<p>As far as the mplayer ebuild goes, there have been a lot of changes.  I'd been queuing them up for a good while waiting to push them live.  I had hoped to have a finished document accompany the release, but I haven't given much time to it, and since VDPAU came out, I figured it would be better to release the ebuild.</p>
<p>It's currently masked, but won't be for long.  One nice thing it does is it splits up the real use flag into two: real and realcodecs.  I found that some users were confused and thought that they had to enable the realcodecs use flag to get any support for real codec playback, but that was never the case, as libavcodec always had support for some.  Now, the real flag will enable the internal support, and realcodecs will still use the external binary ones (not recommended).</p>
<p>Also, since libdvdnav got accepted into the mainstream build, we no longer have to rely on a masked, external dependency, so the dvdnav use flag is unmasked, available, and enabled by default.  You can playback DVDs browsing the navigation menus by using mplayer dvdnav:// instead of mplayer dvd://.</p>
<p>Other use flags that were added were faac, faad, and tremor.  If you want native support for AAC playback, just enable the aac use flag.  If you want to use the external libraries instead (faac and faad), then just disable the aac use flag and enable the other ones.  Tremor is the internal support for Vorbis playback.</p>
<p>The last change to the ebuild is that now lots more use flags are enabled by default.  I found out that a lot of people were going in #mplayer complaining that their builds weren't working when really it was just not compiled with much in it.  As a result, I've changed it so it will enable just about every internal library and external codec.  That should make things simpler for users who want things to "just work" out of the box.</p>
<p>That's it for now.  I'll be bumping the ebuild again, soon, and regularly as long as the VDPAU development in mplayer keeps moving at a hectic pace.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2009/02/27/mplayer-and-vdpau-in-portage/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mplayer patch: -use-dir-conf option</title>
		<link>http://wonkabar.org/2009/01/23/mplayer-patch-use-dir-conf-option/</link>
		<comments>http://wonkabar.org/2009/01/23/mplayer-patch-use-dir-conf-option/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 19:17:37 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=613</guid>
		<description><![CDATA[I just made a really small patch to MPlayer for something I've been wanting to do for a while. MPlayer has long supported a playback option -use-filedir-conf that will include a config file if you have it named &#60;filename&#62;.conf.  I've taken that and just created an option for the current directory instead.
The issue I [...]]]></description>
			<content:encoded><![CDATA[<p>I just made <a href="http://spaceparanoids.org/downloads/mplayer/mplayer-use-dir-conf.patch">a really small patch </a>to MPlayer for something I've been wanting to do for a while. MPlayer has long supported a playback option -use-filedir-conf that will include a config file if you have it named &lt;filename&gt;.conf.  I've taken that and just created an option for the current directory instead.</p>
<p>The issue I run into with my TV shows is that sometimes I need to use different deinterlacing filters or different audio delays for different series.  It would be a pain to create a config file for each individual file, so this patch fits the bill.  If you just use -use-dir-conf, it will look for an mplayer.conf file in the existing directory, and include that.</p>
<p>Pretty simple, really.  I hope I wrote the patch right, since I'm no master of C.  I just copied the old functionality, dropped what it didn't look like was relevant and removed unused variables.  And hey, works for me.</p>
<p>Patches cleanly against latest SVN (28348).</p>
<p><strong>Edit:</strong> Well, crap, I just realized that it only works if you have mplayer.conf in the same directory as you are running mplayer from .... so doing mplayer -use-dir-conf /foo/movie.mp4 wouldn't work if you're not in /foo.  Unlike -use-filedir-conf, you can't call it from some other directory.  Someone wanna help me out? <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2009/01/23/mplayer-patch-use-dir-conf-option/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mplayer, real support, part two</title>
		<link>http://wonkabar.org/2009/01/10/mplayer-real-support-part-two/</link>
		<comments>http://wonkabar.org/2009/01/10/mplayer-real-support-part-two/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 14:43:03 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=591</guid>
		<description><![CDATA[I just put a new mplayer snapshot (mplayer-1.0_rc2_p28288.ebuild) in the portage tree.  This one, adds support for RV30 native playback.
RV40 was added in the previous one.  Thanks, Kostya.  
For some samples, see:
http://samples.mplayerhq.hu/real/VC-RV30/
http://samples.mplayerhq.hu/real/VC-RV40/
Have fun watching those old Paula Abdul videos.  
]]></description>
			<content:encoded><![CDATA[<p>I just put a new mplayer snapshot (mplayer-1.0_rc2_p28288.ebuild) in the portage tree.  This one, adds support for RV30 native playback.</p>
<p><a href="http://wonkabar.org/archives/543">RV40</a> was added in the previous one.  Thanks, <a href="http://codecs.multimedia.cx/?p=162">Kostya</a>. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For some samples, see:</p>
<p><a href="http://samples.mplayerhq.hu/real/VC-RV30/">http://samples.mplayerhq.hu/real/VC-RV30/</a></p>
<p><a href="http://samples.mplayerhq.hu/real/VC-RV40/">http://samples.mplayerhq.hu/real/VC-RV40/</a></p>
<p>Have fun watching those old Paula Abdul videos. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2009/01/10/mplayer-real-support-part-two/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mplayer-resume-1.6</title>
		<link>http://wonkabar.org/2008/12/16/mplayer-resume-16/</link>
		<comments>http://wonkabar.org/2008/12/16/mplayer-resume-16/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 20:41:11 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=573</guid>
		<description><![CDATA[I just finished updating and pushing mplayer-resume-1.6 into the tree.  I've actually been sitting on the update for a long time, just never got around to releasing it.
There has only been a small change -- the script will check mplayer's exit code to see if it died on something.  I added it since I hit [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished updating and pushing <a href="http://www.spaceparanoids.org/trac/bend/wiki/mplayer-resume">mplayer-resume-1.6</a> into the tree.  I've actually been sitting on the update for a long time, just never got around to releasing it.</p>
<p>There has only been a small change -- the script will check mplayer's exit code to see if it died on something.  I added it since I hit a bug on my frontend where some files wouldn't resume, and it would delete my resume point anyway.  Kind of annoying.  This update fixes that, and really, that's it.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/12/16/mplayer-resume-16/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>mplayer, dvdnav support</title>
		<link>http://wonkabar.org/2008/12/02/mplayer-dvdnav-support/</link>
		<comments>http://wonkabar.org/2008/12/02/mplayer-dvdnav-support/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 17:38:56 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=546</guid>
		<description><![CDATA[Oh yah, I remembered what the other thing was on MPlayer -- dvdnav support is back in.  Duh.  How could I miss that one?
The use flag is masked, so you'll have to unmask it to use it, but if you do it will pull in the forked libdvdnav and libdvdread as a dependency.  After that, [...]]]></description>
			<content:encoded><![CDATA[<p>Oh yah, I remembered what the other thing was on MPlayer -- dvdnav support is back in.  Duh.  How could I miss that one?</p>
<p>The use flag is masked, so you'll have to unmask it to use it, but if you do it will pull in the forked libdvdnav and libdvdread as a dependency.  After that, you can use mplayer dvdnav:// to get funky, sexy menus when watching DVDs.  Whee!</p>
<p style="text-align: center;"><img class="aligncenter" src="http://spaceparanoids.org/img/voyager_dvdnav.jpg" alt="" width="360" height="270" /></p>
<p>Here's how to unmask a use flag:</p>
<p style="padding-left: 30px;">mkdir -p /etc/portage/profile/</p>
<p style="padding-left: 30px;">echo media-video/mplayer -dvdnav &gt;&gt; /etc/portage/profile/package.use.mask</p>
<p>Then just set enable the dvdnav use flag for the package as normal.  Personally, I like flagedit.</p>
<p style="padding-left: 30px;">flagedit media-video/mplayer dvdnav</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/12/02/mplayer-dvdnav-support/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>mplayer, real support</title>
		<link>http://wonkabar.org/2008/12/02/mplayer-real-support/</link>
		<comments>http://wonkabar.org/2008/12/02/mplayer-real-support/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 16:42:08 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=543</guid>
		<description><![CDATA[MPlayer got bumped yesterday to a new snapshot (1.0_rc2_p28058), which isn't all that interesting in itself, but there is one notable update for real codecs.
I've been busy masking realplayer support in portage due to issues, but libavcodec now has it's own native decoder for RealVideo 4 (RV40).  Thanks, Kostya.  
Read about it here:

RV40 Is [...]]]></description>
			<content:encoded><![CDATA[<p>MPlayer got bumped yesterday to a new snapshot (1.0_rc2_p28058), which isn't all that interesting in itself, but there is one notable update for real codecs.</p>
<p>I've been busy <a href="http://forums.gentoo.org/viewtopic-t-713051.html">masking realplayer support</a> in portage due to issues, but libavcodec now has it's own native decoder for RealVideo 4 (RV40).  Thanks, Kostya. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Read about it here:</p>
<ul>
<li><a href="http://codecs.multimedia.cx/?p=156">RV40 Is In</a></li>
<li><a href="http://multimedia.cx/eggs/baby-got-rv40/">Baby Got RV40</a></li>
</ul>
<p>Mike summarized it pretty well on his blog post:</p>
<p style="padding-left: 30px;">"Also, do you <em>dare</em> ask why this is useful in the grand scheme of multimedia hacking? Seriously? Have you not learned by now? While it may be true that absolutely no one likes Real or their formats, there is still a huge legacy of media in the wild encoded in their formats, media that will need to be manipulated for many years to come."</p>
<p>One other thing that got fixed in MPlayer that naturally only I and very few others are going to care about, is that mplayer dumpstream now supports ending chapters again.  It was removed a while back and <a href="http://thread.gmane.org/gmane.comp.video.mplayer.cvs/11196">readded recently</a>.  It was pretty much the only reason the 1.0_rc2_p24929-r4 ebuild is still in the tree.  A specific example would be that you can do something like this: mplayer dvd:// -dumpstream -dumpfile movie.vob -chapter 2-5</p>
<p>Seems like there was something else that changed.  Can't remember now, oh well.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/12/02/mplayer-real-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>weekend multimedia notes</title>
		<link>http://wonkabar.org/2008/10/05/weekend-multimedia-notes/</link>
		<comments>http://wonkabar.org/2008/10/05/weekend-multimedia-notes/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 01:50:51 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[MythTV]]></category>

		<guid isPermaLink="false">http://wonkabar.org/?p=474</guid>
		<description><![CDATA[I've been spending part of the weekend working out small annoyances in my myth setup, trying to get it inching closer to my "perfect" setup.  I'm actually really close now, minor stuff is all that's left.
Here's a few things I want to remember as a point of reference, that took me a bit of research [...]]]></description>
			<content:encoded><![CDATA[<p>I've been spending part of the weekend working out small annoyances in my myth setup, trying to get it inching closer to my "perfect" setup.  I'm actually really close now, minor stuff is all that's left.</p>
<p>Here's a few things I want to remember as a point of reference, that took me a bit of research to figure out:</p>
<p>Printing options in MPlayer:</p>
<p>mplayer -list-options &lt;command line arguments&gt;</p>
<p>mplayer -input cmdlist &lt;slave mode commands&gt;</p>
<p>mplayer -input keylist &lt;events&gt;</p>
<p>Mapping Page Up and Page Down with my remote in MythTV:</p>
<p>begin<br />
prog = mythtv<br />
button = ch+<br />
repeat = 3<br />
config = PgUp<br />
end</p>
<p>begin<br />
prog = mythtv<br />
button = ch-<br />
repeat = 3<br />
config = PgDown<br />
end</p>
<p>Finally, I hit some snag with MPlayer and VobSubs (subtitles that originally come with DVDs).  I've got some movies in Matroska format, and with recent (SVN r27719) revisions, it will forcibly display the subtitles on playback, and I have no idea why.  I swear I remember reading something about this on the mailing list a while ago, but I haven't had much luck finding anything.  Best option so far, go back to an earlier revision (r25993).  Not ideal, but it works.  Every sub, force and vobsub option I've tried does nothing.  I'm not passing anything by default like -slang or -sid to mplayer.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://spaceparanoids.org/img/mplayer_forced_subs_matroska_vobsub.jpg" alt="" width="512" height="288" /></p>
<p style="text-align: left;">
<p style="text-align: left;">Another thing I've been working on (I'm really bored) is finding posters for the cover images in my movies folder.  Which got me looking at UK quad posters.  If you haven't ever seen the posters from across the pond, they are so much better than our American counterparts.  They are a horizontal landscape, which allows for, in my opinion, a much more dramatic picture.  Check out this Star Wars one, for example.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://spaceparanoids.org/img/star_wars_quad_poster.jpg" alt="" width="425" height="316" /></p>
<p style="text-align: left;">It just looks so much better, in my opinion.  I gotta get some movie posters up on my wall (only two so far: Tron and The Adventures of Milo in the Phantom Tollbooth), and I'd love to hunt down some quads.  The old school Disney ones look even awesomer.</p>
<p style="text-align: left;">Speaking of cover images for Myth, I have a new patch I cranked out last night, which has an interesting story to it.  I'll post details later, though.  I'm not in the mood for details right now.  I'm more about hunting down stupid bugs that don't require too much brain power.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/10/05/weekend-multimedia-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mplayer + dvdnav + dvdread svn ebuilds</title>
		<link>http://wonkabar.org/2008/08/15/mplayer-dvdnav-dvdread-svn-ebuilds/</link>
		<comments>http://wonkabar.org/2008/08/15/mplayer-dvdnav-dvdread-svn-ebuilds/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 03:13:56 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/456</guid>
		<description><![CDATA[I updated the mplayer and dvdnav ebuilds in my small overlay, and added one for dvdread now, which has been split into a separate package.  I haven't had time in the past while to keep an eye on what's been going on, but I do know that the heavy flurry of development has stopped, and [...]]]></description>
			<content:encoded><![CDATA[<p>I updated the mplayer and dvdnav ebuilds in my <a href="http://overlays.gentoo.org/dev/beandog/browser">small overlay</a>, and added one for dvdread now, which has been split into a separate package.  I haven't had time in the past while to keep an eye on what's been going on, but I do know that the heavy flurry of development has stopped, and that the installer works better.  Plus, the software works fine for me. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My overlay isn't in layman right now, so if you want to check it out, here's the skinny:</p>
<blockquote><p>svn co http://overlays.gentoo.org/svn/dev/beandog/</p></blockquote>
<p>Have fun and <a href="http://wonkabar.org/contact-me">lemme know</a> if there's any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/08/15/mplayer-dvdnav-dvdread-svn-ebuilds/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mplayer and transcode fixes</title>
		<link>http://wonkabar.org/2008/07/17/mplayer-and-transcode-fixes/</link>
		<comments>http://wonkabar.org/2008/07/17/mplayer-and-transcode-fixes/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 16:28:30 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Transcode]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/448</guid>
		<description><![CDATA[Since things are finally starting to settle down (hey, I've had Internet for a week now, cool), I've started getting back to poking at stuff, slowly.  Today I cleaned up some mplayer and transcode stuff in the portage tree, and I just thought I'd mention what's new.
First of all, mplayer.  The latest revision [...]]]></description>
			<content:encoded><![CDATA[<p>Since things are finally starting to settle down (hey, I've had Internet for a week now, cool), I've started getting back to poking at stuff, slowly.  Today I cleaned up some mplayer and transcode stuff in the portage tree, and I just thought I'd mention what's new.</p>
<p>First of all, mplayer.  The latest revision is 1.0_rc2_p27120.  The snapshot itself is about a month old, and I don't know of anything particularly major that's in there (I haven't had time to follow development for the past month anyway).  It's been masked for testing, not because upstream has done anything funky, but because there are some new use flags, which have helped me to go back and clean up some stuff that I should have done a long time ago.  I haven't heard a peep from anyone on bugzilla so either no one's tried it, or it works great.</p>
<p>The big changes that I can think of off the top of my head are this: first of all, there's an ewarn added if you enable the cpudetection flag.  It finally dawned on me that this one might not make sense.  Here's what it *doesn't* do -- magically make the build detect and build for your CPU architecture.  The build system already automatically detects and installs with the correct instruction set by default, using stuff like MMX, SSE, and friends.  The only reason (that I can think of) that you would use that, is if you were deploying the binary package on another computer, since it is a runtime feature, not a buildtime one.  So, you'll get a little warning if you enable it, because, in general, desktop users don't need it.   I also fixed the use.local.desc to be a bit more specific as well.</p>
<p>Secondly, there's a new use flag: custom-cpuopts which should finally solve the long-standing dance of trying to outwit users who always break their system but still allow real tweakers to do exactly what they want.  Here's how it works. MPlayer's build system, again, by default, will automatically detect the CPU optimizations that are supportd for your platform (MMX, SSE, again, etc.).  That means that, again, if you leave everything by default -- it should work fine.</p>
<p>Originally the problem we would have is that people would have their CPU optimization use flags turned off (like mmx), which would normally break the build.  The ebuild is written to only disable them if they are turned off, so my solution for a long time was to tell people to just turn them all on and let MPlayer *not* disable them, therefore, revert back to autodetection.  This would then cause problems, though, for those few who were building MPlayer for some other box, and they wanted specific CPU opts on or off.  This use flag will fix just that.</p>
<p>What custom-cpuopts will do, when enabled, is forcibly enable or disable the actual CPU optimization use flags you set.  This will help out those on certain profiles and setups who need to tweak their build for whatever reason.  For normal desktop users, you don't need to enable it -- if it's turned off, the ebuild will completely ignore the other use flags (for CPU optimizations) and just use the default checks ... which work great.  It also means that your build will be optimized the best it can, yay!</p>
<p>I know I really went into depth on that one, but it's been an issue with the build and users for a long time and I'm glad I finally got a cleaner solution working.  Now everyone has the options to do whatever they want, but by default, everything should build and be optimized wonderfully.</p>
<p>Oh yes, one last thing -- if someone wants to fix <a href="https://bugs.gentoo.org/show_bug.cgi?id=228799">bug 228799</a>, and submit a patch upstream, I'd be extremely grateful.  That would clean up the LINGUAS hack in our ebuild, which I've heard breaks on paludis anyway.</p>
<p>As far as transcode -- I've been out of the loop, and the media-video team has been taking things over and cleaning up (I don't even know who, sorry guys, haven't taken the time to look into that either -- I know loki_val fixed up some imagemagick / ffmpeg dep crap that I didn't want to touch, thanks man!).  1.0.5 is back in the tree, and should be the next stable candidate.  I also added another rc for 1.0.6, and I have to add the 1.10 beta sometime.</p>
<p>That's about it for now.  Have fun.  Go break your box. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/07/17/mplayer-and-transcode-fixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>what i&#8217;m working on</title>
		<link>http://wonkabar.org/2008/05/23/what-im-working-on-2/</link>
		<comments>http://wonkabar.org/2008/05/23/what-im-working-on-2/#comments</comments>
		<pubDate>Sat, 24 May 2008 04:42:56 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Transcode]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/433</guid>
		<description><![CDATA[Just another update on what I've been poking at lately.
I've mostly been cleaning up really small stuff, small bugfixes that have been annoying me for a while.
GPNL / Packages
For the packages website, I finally fixed it so that you can search by just package name again.  It's still messed up where it searches way [...]]]></description>
			<content:encoded><![CDATA[<p>Just another update on what I've been poking at lately.</p>
<p>I've mostly been cleaning up really small stuff, small bugfixes that have been annoying me for a while.</p>
<p><strong>GPNL / Packages</strong></p>
<p>For the <a href="http://packages.larrythecow.org/">packages</a> website, I finally fixed it so that you can search by just package name again.  It's still messed up where it searches way too much stuff by default, but that'll be fixed soon.  It was originally searching by atom and description, so stuff like package$ would break.</p>
<p>I did, however, put the basic search I want to add to the packages website into <a href="http://gpnl.larrythecow.org/">GPNL</a>: search by atom, package, category, description or all.  I need to add changelog to that list.  It's not much, I know, but it's a start on the long road to getting an advanced search going.  I also cleaned up the front page a bit, and added a link to <a href="http://gpnl.larrythecow.org/db/">the nightly database dumps</a>.</p>
<p>I also cleaned up <a href="http://spaceparanoids.org/svn/get_data.sh?root=gpnl&amp;view=markup">the bash script to import the data</a>.  It actually has the beginnings of some error checking now, so you shouldn't be seeing blank pages anymore.  And the database is vacuumed correctly, and on a regularly basis, so things should be slightly snappier.  I'm also importing the entire portage tree 3x daily now instead of twice.  The import script is actually a nice cleanup for me, because if something breaks, I can run parts of it partially, instead of having to manually fix it.  It's much nicer.</p>
<p>My next big thing is getting RDEPEND searchable.  In the database, it's combined with the DEPEND variable, so I have to separate the two out.  Once that's done, we can finally dynamically query the tree to see where ebuilds need to be fixed for binary packages.</p>
<p><strong>MPlayer / Transcode</strong></p>
<p>Looking better, closed like eight bugs the other day for mplayer.  Finally fixed some asinine bugs of mine for transcode, have one more to go.</p>
<p>Took out the masked libdvdnav because it will conflict and break libdvdread.  I already wrote about how I put it in my <a href="http://overlays.gentoo.org/dev/beandog/browser">overlay</a> so if someone wants to use it, they can.</p>
<p><strong>Sword ebuilds</strong></p>
<p>I finally got pretty much all the main ones in the tree that I wanted to get in.  There's still two LDS ones that I have to make myself.  Shouldn't be too hard.  I hope.  In all, there are <a href="http://packages.larrythecow.org/?v=search&amp;s=app-dicts%2Fsword">150 sword ebuilds</a> in the tree.  Freak.  That reminds me of something else I fixed on the packages website: it lists the number of results.  That's something else that's been annoying me for a while.</p>
<p>I still need to remove the old sword-modules ebuild and add a new virtual-type one that will pull in all of the ones based on which language they are written in.  Not hard to do, just slightly tedious.  Should be done soon.</p>
<p><strong>lds-scriptures 3.0</strong></p>
<p>Believe it or not, I'm actually planning on getting <a href="http://scriptures.nephi.org/">this</a> finished this week.  The actual data has been finished for a very, very long time... it's writing the documentation that I am extremely particular about because I plan on this being the final release.</p>
<p>That's about it for now, that I can remember.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/05/23/what-im-working-on-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>mplayer + dvdnav svn ebuilds</title>
		<link>http://wonkabar.org/2008/05/01/mplayer-dvdnav-svn-ebuilds/</link>
		<comments>http://wonkabar.org/2008/05/01/mplayer-dvdnav-svn-ebuilds/#comments</comments>
		<pubDate>Thu, 01 May 2008 16:57:30 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/424</guid>
		<description><![CDATA[There has been some recent activity again on the libdvdnav front, and so I've been playing around with it again.  I finally created an SVN ebuild for MPlayer which I can use myself instead of just manually updating and reconfiguring the repo myself.
Generally speaking, I don't like the idea of ebuilds that hit upstream's SVN [...]]]></description>
			<content:encoded><![CDATA[<p>There has been some recent activity again on the <a href="http://dir.gmane.org/gmane.comp.video.dvdnav.general">libdvdnav</a> front, and so I've been playing around with it again.  I finally created an SVN ebuild for MPlayer which I can use myself instead of just manually updating and reconfiguring the repo myself.</p>
<p>Generally speaking, I don't like the idea of ebuilds that hit upstream's SVN servers directly, so please be kind and don't do anything asinine like upgrade every single day or something.</p>
<p>So now I have live subversion <a href="http://overlays.gentoo.org/dev/beandog/browser">ebuilds for both libdvdnav and mplayer</a>.  This is the important thing to know about the libdvdnav ebuild: it has some changes to libdvdread so you will have to unmerge the one that is already uninstalled.  On top of that, since it is a new API version, everything you previously compiled against libdvdread (k3b, etc.) will have to be re-emerged ... and even then, there are zero guarantees that it will work at all.</p>
<p>In short, these ebuilds are only designed for a select few: those people who are using mplayer exclusively and want to have dvdnav support at the risk of breaking anything else that needs DVD access.  Obviously, that scenario fits for someone with a media frontend, but doesn't make sense for general desktop usage.</p>
<p>Also worth noting is that these are the only two ebuilds that will work together.  Previously, the mplayer in the tree would have detected and worked with the libdvdnav ebuild, but that's not the case anymore.  It's these two in the overlay, or the mplayer in the tree.  Pick one set and choose.</p>
<p>If you have problems with the ebuilds, let me know.  I'm still not an expert at layman so I can't go about giving you instructions on how to install this stuff directly.  Have fun, though.</p>
<p>Oh, and last but not least -- I tested them, and it works for me. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Just emerge libdvdread first, then mplayer.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/05/01/mplayer-dvdnav-svn-ebuilds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mplayer + dvdnav support &#8230; kinda</title>
		<link>http://wonkabar.org/2008/02/28/mplayer-dvdnav-support-kinda/</link>
		<comments>http://wonkabar.org/2008/02/28/mplayer-dvdnav-support-kinda/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 16:14:02 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/405</guid>
		<description><![CDATA[If you're looking for mplayer + dvdnav support, there's two ways to get it right now.  Depending on how much support you want is going to change which ebuilds you'll have to use right now, though.
If you just want simple playback support (no menu navigation), then use portage's tree.  Just unmask and emerge [...]]]></description>
			<content:encoded><![CDATA[<p>If you're looking for mplayer + dvdnav support, there's two ways to get it right now.  Depending on how much support you want is going to change which ebuilds you'll have to use right now, though.</p>
<p>If you just want simple playback support (no menu navigation), then use portage's tree.  Just unmask and emerge media-libs/libdvdnav, then re-emerge media-video/mplayer.  That will build against the older, original dvdread library, but it should be enough to get you around the Sony ARccOS DRM.   Hint: mplayer dvdnav://[track_number]</p>
<p>If you want the full playback + navigation support, you're going to have to use an overlay (specifically, mine).  I, personally, am against the idea of using overlays since I think it splits the tree, only asks for problems, and reminds me of using Mandrake back in the day when I had to have all these third-party mirrors just to get software I want.  So, I'm really against the idea and wouldn't be doing this unless there were an easier, simpler way.</p>
<p>Ranting aside, my overlay is at <a href="http://overlays.gentoo.org/dev/beandog">http://overlays.gentoo.org/dev/beandog</a>  Browse the ebuilds <a href="http://overlays.gentoo.org/dev/beandog/browser">here</a>.  I would give some slick instructions on how to add it using layman, but since I never use overlays, I can't tell you how, and I assume that the people who really know what they're doing don't need instructions anyway.</p>
<p>There are very few differences in my ebuilds.  libdvdnav will use the newer version of libdvdread, so the one from the portage tree will show up as a blocker (and possibly break all your other packages that use it).  After it's installed,  you'll have to use my mplayer ebuild as well, since it's configured to use the external dvdread library as well.  After that, you can use dvdnav:// as you normally would.  Hint: mplayer dvdnav://</p>
<p>I know it's a bit of work, but until the forked libdvdnav can also work as a replacement or secondary slot to libdvdread in the tree, either option which would require testing, that's how its gotta be.  The plus side though is, it works. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="center"><img src="http://spaceparanoids.org/img/voyager_dvdnav.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/02/28/mplayer-dvdnav-support-kinda/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>mplayer snapshot bump</title>
		<link>http://wonkabar.org/2008/02/13/mplayer-snapshot-bump/</link>
		<comments>http://wonkabar.org/2008/02/13/mplayer-snapshot-bump/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 01:48:21 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/399</guid>
		<description><![CDATA[I normally don't post info about version bumps, but since the last MPlayer one was a while ago, and since I've been way too busy lately to work on anything Gentoo related, I thought I'd make mention of this one.
Not much to say, though, really ... there's a new snapshot in town (media-video/mplayer-1.0_rc2_p25993).  It fixes [...]]]></description>
			<content:encoded><![CDATA[<p>I normally don't post info about version bumps, but since the last MPlayer one was a while ago, and since I've been way too busy lately to work on anything Gentoo related, I thought I'd make mention of this one.</p>
<p>Not much to say, though, really ... there's a new snapshot in town (media-video/mplayer-1.0_rc2_p25993).  It fixes some security issues in older versions, which was the reason for the bump.  I've tried to change my approach of bumping the package every month or so and instead just focus on getting one release working really well and as many bugs fleshed out as possible in that release.  So far the approach has worked well.</p>
<p>Normally I'd have a good idea of what's changed between releases, but since I haven't had time to keep an eye on mplayer-dev either, I couldn't really say.  I think there's a few DVD fixes, but I'm not sure.  Sorry. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, as usual, let us know if you have any issues.  Should hit the tree shortly.  Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/02/13/mplayer-snapshot-bump/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mplayer-resume-1.5</title>
		<link>http://wonkabar.org/2008/01/12/mplayer-resume-15/</link>
		<comments>http://wonkabar.org/2008/01/12/mplayer-resume-15/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 05:17:17 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[MythTV]]></category>
		<category><![CDATA[bend / dvd2mkv]]></category>

		<guid isPermaLink="false">http://wonkabar.org/archives/387</guid>
		<description><![CDATA[A bug in MythVideo inspired me to work on fixing mplayer-resume tonight, so that it can properly handle movies with filenames.  I don't know why I didn't think about this before, but it's simple if the file is properly escaped or quoted.  And so, mplayer-resume v1.5 is released, with support for spaces in filenames, finally, [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://cvs.mythtv.org/trac/ticket/4463">bug in MythVideo</a> inspired me to work on fixing <a href="http://www.spaceparanoids.org/trac/bend/wiki/mplayer-resume">mplayer-resume</a> tonight, so that it can properly handle movies with filenames.  I don't know why I didn't think about this before, but it's simple if the file is properly escaped or quoted.  And so, mplayer-resume v1.5 is released, with support for spaces in filenames, finally, and also one other cool little thing: it works with playlists now, to a degree.</p>
<p>The playlists thing is kind of hard to explain, and it'd be easier to point you to <a href="http://spaceparanoids.org/downloads/mplayer-resume/readme.txt">the documentation</a> that I've already written.  Instead, I'll just describe what it is I'm going to use it for.</p>
<p>One thing I've been wanting to add to my MythVideo setup is some playlists so that I can randomly play something.  I have a lot of cartoons and videos and movies, and sometimes I don't feel like picking something myself -- one of the nice things about TV in general is you are genuinely surprised when you're channel surfing and something cool just happens to crop up.  That's kinda what I like, and what I wanted to do.  But, I wanted to take it a step further.  If I started playing $random_episode, then if I quit, I want to be able to resume playback of that same show.  Up until now, mplayer-resume wouldn't work that way, since if you're randomly picking something from a playlist file, there's no real way to seek back to the same one.</p>
<p>That's fixed now.  The script will read the filename of the movie you are playing when you exit (once you setup .lircrc correctly), and checks to see if that's the same file you started playing.  So if I play random.pls and it plays Tarzan.mkv, and I exit, then when I go back to watch Tarzan, it will resume in the same place.  Basically, it saves the file position for Tarzan instead of the playlist file.  Pretty cool. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, there you go.  I'll put it in portage shortly as well.  Enjoy. <img src='http://wonkabar.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wonkabar.org/2008/01/12/mplayer-resume-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
