Showing posts with label sighttpd. Show all posts
Showing posts with label sighttpd. Show all posts

Monday, July 18, 2011

sighttpd ogg only

sighttpd is an excellent light weight streaming tool. Version 1.2 is the current master from git: https://github.com/kfish/sighttpd

One issue I had with this version is that it has a run-time dependency on shcodecs-record. The symptoms of noting having shcodecs-record available on the path is that sighttpd fails with:

execvp() failed: No such file or directory

I didn't need the stuff that shcodecs provides (MPEG-4 and H.264 encoding and decoding on SH-Mobile processor series.) To remove this dependency, a cheap hack was employed: comment out ./src/main.c:165 

// shrecord_run();

Then, recompile. I have a post on making a static sighttpd if you're interested in that.

UPDATE:
The shrecord dependency has been removed in the recent git master, so get that and ignore this.

Sunday, July 10, 2011

static build of sighttpd

sighttpd is a handy lightweight tool for streaming media over the internet. It is a lightweight alternative to icecast/shoutcast.

I need a static build of this tool, so I followed the instructions and added LDFLAGS="-all-static" to the make command. The compete build chain was:

   autoreconf -vif
   ./configure
   make LDFLAGS="-all-static"
   scp ./src/sighttpd richard@myserver:tools/

NOTE: you'll need to have shcodecs-record is in search path.