Skip to content

Tag Archives: PS

Limit number of instances of a specific process and user

22-Jul-10

I’m using this to limit the number of processes that Ampache spawns. Sometimes, it goes hay-wire. [cc_bash] #!/bin/sh cmd=”$1″ lim=”$2″ user=”$3″ || “www” numprocs=ps -U www | grep “$cmd” | wc -l echo “Found $numprocs comparing to $lim” if [ “$numprocs” -gt “$lim” ]; then echo “found $numprocs processes” killall aacplusenc fi [/cc_bash] Be the […]

Setting up aacplusenc with Ampache

01-May-10

AAC+ (also called HE-AAC) is a method to lower the bit rate of AAC (LC-AAC) while maintaining the audio fidelity. There’s a really good paper from the makers of AAC+ here. Seeing how I just set up ampache, and I have low upstream bandwidth, I decided to get AAC+ going. It was a little bit […]