Monthly Archives: September 2012

Message-based Client-Server

Server#include #include #include #include #include #include #include #include #include “msgdefs.h”#define OK      0#define LOG_ERROR(msg) { printf(“%s:%u: %s %s\n”, \                __FUNCTION__, __LINE__, msg, \                strerror(errno)); }int … Continue reading

Posted in Uncategorized | Leave a comment

Ripping VCD to Various Formats

Using VCDXRIPTo convert to MPEG: $ vcdxripUSING MENCODER mencoder [options] file [file|URL|-] [-o file | file://file | smb://[user:pass@]host/filepath]$ mencoder vcd//:2 -oac lavc -ovc lavc -o filename.avi ($ sign is the terminal prompt)                  -oac lavc     … Continue reading

Posted in Uncategorized | 2 Comments

Script to convert series of WAV files

Assume there are wav files named as “disc_1.wav”, “disc_2.wav” so on.There is also a cover file (a JPEG format file) to be used as cover album embedded into each encoded MP3 file. If we want to convert them all into … Continue reading

Posted in Uncategorized | Leave a comment

Youtube Video to MP3

Download script youtube-dl from  http://rg3.github.com/youtube-dl/ Make sure we have ffmpeg installed Write a small script with content as below: youtube-dl –extract-audio –audio-format mp3 -v -t “$1” For example, to download and extract the audio and save it as MP3 (assuming … Continue reading

Posted in Uncategorized | Leave a comment