<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d23884446\x26blogName\x3dJust+Another+Tech+Blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://justanothertechblog.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://justanothertechblog.blogspot.com/\x26vt\x3d-484221019928432923', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Just Another Tech Blog

Anything and everything having to do with technology, computers, science, and most of all... Linux! The documentation of my Linux endeavor.



Easily Create Playlists for Mplayer!

Sunday, January 07, 2007

Here's a really simple way to add add all the files in a giving directory to a playlist that mplayer likes:

$ find [/path/to/directory/] -name "*.mp3" -print > playlist.txt
Change the "*.mp3" to whatever file extension matchs your media. Do not forget the "*". This denotes that everything with .mp3 at the end of the filename, should located and added to the playlist. You can leave off the path to the directory if you are already in the directory where the media is located. After that, simply issue the mplayer command with a -playlist extension, followed by the name of your playlist:

$ mplayer -playlist playlist.txt
It's as easy as that! Enjoy!
posted by linnerd40, Sunday, January 07, 2007


0 Comments:

Add a comment