Sunday, October 4, 2009

Enable mp3 ringtones on Motorola W490/W510

Just in case you have one of those pesky Motorola W490 or W510 mobile phones that can't use an mp3 file as a ringtone because your network provider doesn't want to let you do that, well, you can. And you won't have to reflash your phone just to do that, a simple seem edit is enough to do the trick. I won't go over the whole theory of seem editing, if you're not familiar with that, there are plenty of forums and websites on which the process is explained.
The seem in question is 0032_0001, at offset 0xC7 you will find a 0x00 value (or at least that was the value in the particular firmware version that my phone had). All you have to do is a little bit manipulation and enable bit 2. The new value is 0X04, and it did the trick for me. If you're using XVI32 to edit the file, it should go like this:

XVI32 editing seem 0032_0001


I couldn't find this particular seem modification documented anywhere, so I hope it might be useful for someone. Happy modding!

Later Edit: The initial values might differ, but I have confirmed that bit 2 needs to be enabled for MP3's to be applied as ringtones.

Read the rest of this post.

Thursday, June 25, 2009

Mp3 To Mp4plus script update

This is just an update to the script I posted a while ago over here.
It works the same, has the same requirements, it's just a bit more user friendly.
Refer to the original post for details, grab the script below.
#!/bin/sh
if [ $# -lt 3 ]
then
    echo Usage: $0 \<infile\> \<outfile\> \<bitrate\>
else
    mplayer -quiet -vo null -vc null -ao pcm:waveheader:file="/tmp/$$.wav" -af resample=48000:0:1 "$1"
    normalize-audio --peak "/tmp/$$.wav"
    aacplusenc "/tmp/$$.wav" /tmp/$$.aac "$3"
    MP4Box -new -no-sys -sbrx -add /tmp/$$.aac "$2"
    rm -f /tmp/$$.aac /tmp/$$.wav
fi

Read the rest of this post.

Tuesday, June 23, 2009

Linux, Alsa, Skype and audio capture

Although I'm not a regular Skype user, I still employ it from time to time to do my share of VoIP. But it happens quite often that I don't get any audio from my microphone, although incoming sound works just fine and all the alsamixer switches and gains are set properly. But, on both of my Intel HD Audio equipped laptops this trick seems to solve the audio capture problem just fine:

First, open a terminal and do a
sudo alsactl store

Then open /var/lib/alsa/asound.state in an editor (you'll need super-user privileges, a sudo nano /var/lib/alsa/asound.state in the same terminal you used for the last step will do) and look for something like:
        control.12 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Capture Switch'
value.0 false
value.1 false
}


The numbers might differ, but the name 'Capture Switch' line is a clear indicator that you've found the right control. Once you find it, change the two value lines to true, so you end up with
                value.0 true
value.1 true


Then, Ctrl-O to save your file and then Ctrl-X to exit nano (just save the file if you're using a different editor).

Back to the console for a final command:
sudo alsactl restore

Now you're free to ring up echo123 and test out your new settings. Hope it helps!

Read the rest of this post.

Monday, May 18, 2009

A storm's aftermath

Yeah I know this is way overdue, but here I go.
Să încerci să fotografiezi fulgere în timpul unei furtuni e al naibii de dificil. Stau mărturile în sensul ăsta cele ~80 de imagini bune de aruncat, față de alte 2 care merită cât de cât să fie aruncate în ochiul critic al lumii.
Anyhow, I don't like to babble too much, cele 2 poze bune de văzut sunt mai jos, iar dacă vreți să vă amuzați cu grămezile de pixeli negri sau mai știu eu cum, hit the read link ;)
Failure_small

Read the rest of this post.

Wednesday, May 13, 2009

Plugging the holes

Oops! SHA1 has holes in it's back end!
Adică o șansă în 252 variante nu mai e ceva dincolo de resursele rezonabile ale unei terțe părți. So, lo and behold, PGP users are possibly left with their back ends naked as a result. :D
În cazul ăsta (și mai ales că schimbarea nu prea îl costă pe end-user mai nimic) se impune schimbarea cheilor PGP cu unele (mult) mai sigure. Ceea ce am făcut și eu:
Cu ocazia asta cheia
pub 1024D/F0376EC6 2008-09-26
Key fingerprint = 821A EE98 A193 EB32 5384 F553 4885 D6F7 F037 6EC6

spune la revedere, iar în locul ei vine mult mai supărata (encryption-wise, desigur :P )
pub 4096R/C08D56C9 2009-05-13
Key fingerprint = A5B4 4F64 D8E4 0AF7 F004 2DCC 1557 AC3E C08D 56C9


Okay, enough chatter (yeah I know I've been a lazyass in posting over here.
BTW, dacă nu știți cu ce se papă cheile astea PGP dar vreți și voi una nouă găsiți instrucțiuni în post-ul ăsta.

Read the rest of this post.

Sunday, April 19, 2009

Libre.fm

Libre.fm e un exemplu excelent al modului în care lucrează comunitatea open-source. S-a pornit de la o idee de bază, consecință a unei nevoi ce trebuia "scărpinată", și în jur de 2 săptămâni exista deja un prototip funcțional.
Motivul e destul de simplu: acum aproape o lună last.fm a anunțat că serviciul său de streaming, gratuit până în acel moment, nu mai va rămâne așa decât în Germania, Marea Britanie și Statele Unite. Comunitatea globală nu mai era atât de globală. Well, comunitatea a luat problema în propriile mâini.
Și cum încerc să dau și eu o mână de ajutor, să vedem ce a făcut comunitatea până acum:
Invitația (deocamdată serviciul nu e deschis tuturor fiindcă e în faza de dezvoltare inițială, nu prea e capabil să se scaleze maselor) am primit-o în aproximativ o zi, dar cum deja avusesem ceva contribuții pe wiki și bugtracker, no guarantees are made that this is the standard waiting time.
Există deja o suită de script-uri care permit mutarea datelor de pe un profil de last.fm pe cel de libre.fm, dar mutarea e făcută de utilizator, nu de server. Cu mici sughițuri pe ici-colo, dar până la urmă am mutat mai mult sau mai puțin tot istoricul profilului de pe last.fm.
Aspectul paginilor e destul de simplu, dar multe funcționalități încă nu au fost implementate. Scrobbleing-ul (gobbleing în libre.fm) funcționează din orice client last.fm (winamp, foobar, you name it), cu o mică modificare pentru a redirecționa traficul către serverul libre.fm.
Photobucket
Există pagini personale, în care îți poți vedea istoricul, ai și un tag cloud cu trupele ascultate, coperțile albumelor încep să fie adăugate (funcționalitatea e implementată), avatarele funcționează prin gravatar... nice going.
Photobucket
Care-s planurile de viitor: păi, mai tot ce se dorea de la last.fm dar nu se obosea nimeni să implementeze și orice altceva în plus... Streaming audio de la Jamendo probabil, parteneriate cu magazine de muzică on-line drm-free, integrare cu servicii de microblogging precum laconi.ca (identi.ca), id-uri MusicBrainz...

Well, Libre.fm promite multe și, on the long run, o să se țină de cuvânt. Feeling like helping? Wiki-ul pentru idei, bugtracker-ul, grupul de pe identi.ca, mailing list-ul, toate sunt deschise. Și dacă vă comportați frumos, puteți primi și un cont, așa că nu aveți nici o scuză să nu dați o mână de ajutor, dacă vă e la îndemână.

Dacă cineva e destul de interesat, profilul meu pe libre.fm e aici. Enjoy!

Read the rest of this post.

Sunday, March 15, 2009

Quick audio conversion script

Wow, I haven't been here in a while.
Anyhow, since I'm playing quite alot with mobile phones, I needed a way to convert my podcasts to a less space consuming format. And since all of them support HE-AAC, I wrote a small wrapper script that can convert almost any format accepted by mplayer to m4a (aac audio in am mp4 container). Grab it below!

#!/bin/sh
mplayer -quiet -vo null -vc null -ao pcm:waveheader:file="/tmp/$$.wav" -af resample=48000:0:1 "$1"
normalize-audio --peak "/tmp/$$.wav"
aacplusenc "/tmp/$$.wav" /tmp/$$.aac "$3"
MP4Box -new -no-sys -sbrx -add /tmp/$$.aac "$2"
rm -f /tmp/$$.aac /tmp/$$.wav


In Ubuntu you will need to get the following packages:
  • mplayer (of course)
  • aacplusenc from medibuntu
  • normalize-audio
  • gpac (for MP4Box)

Also, as you can see, I had mplayer convert the audio to a 48kHz sampling rate - that's because aacplusenc would convert the audio to that sampling rate anyways, and I trust mplayer's conversions to be more accurate.
I could probably use pipes between the programs so less temporary data is written to disk, but it works pretty fast this way and I'm pretty lazy...

Let's get to usage: just copy the stuff above to a file, let's say tomp4.sh, then open a terminal and do a chmod +x ./tomp4.sh. To use it simply call it from a terminal like this: ./tomp4.sh infile.mp3 outfile.m4a bitrate. I mostly use a bitrate of 24 kbps for podcasts and 48kbps for music.

Enjoy!

Read the rest of this post.