Archive

Posts Tagged ‘audacious’

Audacious failed to play

January 26th, 2009

Ever been in a case when your Audacious failed to play when you hit the “Play” button? It just silent and show no response at all except for the close button. I did just now, and when I check from the console (yes! That what’s make linux cool, you could see the log from console of almost everything that stuck on it’s execution time, and search for the solution using some part of the log), it says:

MADPlug-Message: failed to open audio output: XMMS reverse compatibility output plugin

After one click of google, found the solution here. The problem seems happened after I re-install audacious using custom build. So the solution is simple, just get rid of every configuration and cache of Audacious on your home directory, just like this:

alvonsius@alvonsius-notebook:~$ rm .config/audacious/ -rf
alvonsius@alvonsius-notebook:~$ rm .cache/audacious/ -rf
alvonsius@alvonsius-notebook:~$ rm .local/share/audacious/ -rf

Well … only one drawback … I lost all the custom settings and equalizer presets I created before. Ah well, as long I could create a new one it’s ok then ^^

Ubuntu Talk, Written in English ,

Another playlist extract-and-copy

October 17th, 2008

Yesterday I read Arief Bayu’s blog about his php script to extract the content of Amarok’s playlist and copy the files to another directory. At first I didn’t pay attention too much on it, since I thought I won’t use it. But this afternoon I found out that I need it. I have a playlist, consisting lot of mp3s that scattered on my harddisk, and I want copy all of it’s contents to my cellphone (yay! I just love Sony Ericsson, they created great phone and music player). The problem is, it’s an Audacious’ playlist, not Amarok’s … Why I use Audacious? Let’s talk about it on another session …

So, with some knowledge from Arief Bayu’s script, I create (actually modified his script) a new php script to get the filenames from Audacious’ playlist, and copy them to some directory. Here are the script, let’s just name it auda-playlist-copier.php

<?php
$playlist_file = $argv[1];
$output_dir = $argv[2];

$lines = array_map(”trim”, file($playlist_file));

if(!is_dir($output_dir)) mkdir($output_dir);

foreach($lines as $line)
{
if(strstr($line,”location”)){
$line = str_replace(array(”<location>”,”</location>”,”file://”),”",$line);
$line = urldecode($line);
$line = html_entity_decode($line);
$filename = basename($line);
echo “Copying $filename to $output_dir/$filename … “;
if(copy($line, $output_dir.”/”.$filename)){
echo “OK\r\n”;
}else{
echo “FAIL\r\n”;
}
}
}
?>

And to use it, just type ( i assumed that the playlist file is some_playlist.xpf and the target directory is /media/PHONE CARD/MP3/West):

php auda-playlist-copier.php some_playlist.xspf /media/PHONE\ CARD/MP3/West

and there you go ^^ …

Credit goes to Arief Bayu for the idea … ^^

Daily Blog, Tech Update, Ubuntu Talk, Written in English , , ,