Showing posts with label mplayer. Show all posts
Showing posts with label mplayer. Show all posts

Friday, February 26, 2010

Ripping Audio With Mplayer

The first step for creating audio description for movies is to extract the audio content. We can do this quickly using little bit of mplayer command line kung fu.

mplayer -novideo -quiet -vc null -vo null -ao pcm videofile [ OR ] mplayer -novideo -quiet -vc null -vo null -ao pcm:file=audio.wav videofile

You can easily join the extracted audio with the audio description track using the Mencoder (MPlayer's Movie Encoder). Right now I haven't completed audio description for a feature length movie yet. My Gnome accessibility works takes a large chunk of my time. If you are interesting in working something like that, get in touch with me.

Thursday, January 31, 2008

Wake up to the music

Using cron/mplayer and some shell glue you can create your own musical alarm clock to wake you up everyday. Ever since the Cron-MP3 alarm clock was published some years ago, it never ceases to dazzle me what you can do with little creativity.

Debian and mplayer FAQ

This is just my attempt to explain the current situation. Please contact Andrea Mennucci directly with package questions. The latest version of this FAQ (or a pointer to it) should be at http://people.debian.org/~mjr/mplayer.html It was announced to debian-legal on 2005-04-20 .

Is mplayer in debian?

No.

Why not?

There were problems with copyright and patents (according to this summary of the history ).

What were the problems and how have they been resolved?

  1. code without copyright notices: mplayer team did a licence audit and noted which files have what copyright
  2. CSS code: mplayer uses libmpdvdkit2 which includes libdvdcss and libdvdread. The debian package doesn’t have that, but is linked against the libdvdread3 package and uses libdvdcss if you happen to have it installed (according to Diego Biurrun)
  3. libfaad2 code: this is almost identical to libfaad code in xine-lib (from Apr 2005)
  4. remaining questionable-licence code in the upstream tarball is removed to make the debian orig tarball by debian/rules
(from debian-legal Feb 2005 threads unless marked) And what about patent problems? It looks like – at worst – mplayer as packaged now would introduce no new patent problems to debian. If you know otherwise, or can work on the patent problems shared by other packages, please act!

What is the current situation?

A fresh copy has been uploaded and awaits ftpmaster review in the NEW queue. Jeroen van Wolffelaar reviewed it on debian-devel .

What is ftpmaster review and how long does it take?

See Matthew Garrett’s description of ftpmastering . The NEW queue summary suggests it could take up to 3 months.

If mplayer is so free, so why is it sooooo darn difficult to have it in Debian???

One theory: mplayer.deb seems to be a “tinderbox” – Anyone who has prolongued exposure to it gets frustrated by the legal grey areas and its history, so they start flaming innocent bystanders for being wary. This writes new chapters of bad history and “dries the tinder” more. Users and other developers are wary of mplayer because of this history, so probably treat it differently to other packages, increasing the frustration of the developer and thereby helping to start the flames. Sometimes they try to be kind while being wary, which makes the flames hurt more. (From this list post )

How can I help?

Work on software patents if you can. Please review the package if you have time, especially looking for problems like those which stopped it before. Please watch debian-devel-announce or debian-devel-changes for developments. Please don’t flame anyone.

Where can I download the current package for review?

Direct from the packager at his mplayer download area .

Where should I send comments and questions about the package?

Ask the packager first, or debian-legal for licensing questions if you prefer.

Where should I send improvements for this page?

Email me with comments or patches to the bare html, please.

19 January 2006, MJR

So far, some patches from Ken

Sunday, October 28, 2007

Ripping Radio Streams With Mplayer

Here is my response to the shane's great post introducing streamripper.

Nay, Do I need to use another tool just to rip a radio stream, when I can do it with my favorite mplayer itself.

/usr/bin/mplayer -dumpstream -playlist http://www.bbc.co.uk/worldservice/meta/tx/nb/live_news_au_nb.ram

There, you see it action ripping BBC Live News realmedia stream with mplayers's -dumpstream option. The mplayer merely dumps the radio stream to a file named "stream.dump" in the current directory.

Popular Posts