QR Code

Published today in Blogosphere by muhgatus

Nahmd,

QR codes are something great and now to admire here. Here there is the software for the mobile phone to read them!

New version xmlrpc.js

Published on 24 March 2010 in computers , programming of muhgatus

Nahmd,

here comes a new version of xmlrpc.js. Thanks to a note from Stephan Tetzel , I was able to remove a bug.

In addition, the following libraries are required:

Navit on the Pre

Published on 14 March 2010 in Blogosphere , computer by muhgatus

Nahmd,
finally it has come. The next holiday is coming. As you can see Precentral the forum, several people just carry the program Navit to the Pre. Precentral read in the forum .

debian.r4w.de (updated)

Published on 8 March 2010 in Computer , Linux by muhgatus

Nahmd,

again new packages :)

  • libzmq0_2.0 ~ beta2-1_amd64.deb
  • libzmq-dbg_2.0 ~ beta2-1_amd64.deb
  • libzmq-dev_2.0 ~ beta2-1_amd64.deb
  • zeromq-utils_2.0 ~ beta2-1_amd64.deb
  • libzmq0_2.0 ~ beta2-1_i386.deb
  • libzmq-dbg_2.0 ~ beta2-1_i386.deb
  • libzmq-dev_2.0 ~ beta2-1_i386.deb
  • zeromq-utils_2.0 ~ beta2-1_i386.deb

WMA to OGG converting stream stream

Published on 7 March 2010 in Computer , Linux , PHP , programming of muhgatus

Nahmd,
I needed a solution to a WMA stream "on the fly to make it an OGG stream.

The script in a path for executable programs place to grab the php script in the web server and the mount in the Icecast2 Add Configuration. The different paths must be adapted Maybe.

Unfortunately, currently only listen to one Internerradio that stream. Actually, it can create as many, but unfortunately ended the first, which no longer receives the stream, converting ;)

What is needed is the following:

  • mplayer
  • icecast2
  • oggenc
  • oggfwd
  • php

The script to convert

  1. # / Bin / sh
  2. $PATH :/usr/ local /bin export PATH = $ PATH: / usr / local / bin
  3. STREAM = "mms: / / your.radio.fm / stream.wma"
  4. set-e
  5. CLIENT = 0
  6. "$2" != "" ] ; then if ["$ 2"! = ""] then
  7. CLIENT = $ 2
  8. fi
  9. "$3" != "" ] if ["$ 3"! = ""]
  10. then
  11. STREAM = $ 3
  12. fi
  13. echo $STREAM | md5sum | cut -d ' ' -f1 ) MD5 = $ (echo $ STREAM | md5sum | cut-d ''-f1)
  14. TEMP = / tmp / chumbybridge / $ MD5
  15. ] || mkdir -p $TEMP [-D $ TEMP] | | mkdir-p $ TEMP
  16. /mplayer.fifo FIFO_MPLAYER = $ TEMP / mplayer.fifo
  17. # FIFO_OGGENC = $ TEMP / oggenc.fifo
  18. /mplayer.log LOG_MPLAYER = $ TEMP / mplayer.log
  19. /oggenc.log LOG_OGGENC = $ TEMP / oggenc.log
  20. /oggfwd.log LOG_OGGFWD = $ TEMP / oggfwd.log
  21. /mplayer.pid PID_MPLAYER = $ TEMP / mplayer.pid
  22. /oggfwd.pid PID_OGGFWD = $ TEMP / oggfwd.pid
  23. "$1" = "start" ] if ["$ 1" = "start"]
  24. then
  25. >> $LOG_MPLAYER echo "connected $ CLIENT">> $ LOG_MPLAYER
  26. ] && echo "Run $0 stop first!" && exit [-E $ FIFO_MPLAYER] & & echo "Run $ 0 stop first!" & & Exit
  27. || exit 1 mkfifo $ FIFO_MPLAYER | | exit 1
  28. "$FIFO_MPLAYER" >> $LOG_MPLAYER 2 >& 1 < /dev/null & mplayer-nocache $ STREAM-quiet-ao pcm: file = "$ FIFO_MPLAYER">> $ LOG_MPLAYER 2> & 1 </ dev / null &
  29. echo $! > $ PID_MPLAYER
  30. sleep 0.3
  31. -o – 2 >> $LOG_OGGENC | oggfwd localhost 8000 hackme /radio1.ogg >> $LOG_OGGFWD 2 >& 1 & oggenc-Q-q $ 1 FIFO_MPLAYER-o - 2>> $ LOG_OGGENC | oggfwd localhost 8000 hackme / radio1.ogg>> $ LOG_OGGFWD 2> & 1 &
  32. echo $! > $ PID_OGGFWD
  33. sleep 0.2
  34. "$1" = "stop" ] elif ["$ 1" = "stop"]
  35. then
  36. echo ">>> Stopping chumstream player <<<"
  37. cat $PID_MPLAYER ) 2 > /dev/null && \ kill $ (cat $ PID_MPLAYER) 2> / dev / null & & \
  38. cat $PID_OGGFWD ) 2 > /dev/null && \ kill $ (cat $ PID_OGGFWD) 2> / dev / null & & \
  39. || \ rm-rf $ TEMP | | \
  40. echo "Can not stop all processes, please look into $ TEMP and fix it manually"
  41. else
  42. echo "Usage:"
  43. echo "$ 0 start [client_id] [URL]"
  44. echo "$ 0 stop"
  45. fi

The icecast configuration

  1. <mount>
  2. <mount-name> / radio.ogg </ mount-name>
  3. <max-listeners> 10 </ max-listeners>
  4. <burst-size> 65 536 </ burst-size>
  5. <hidden> 0 </ hidden>
  6. > <authentication type = "url">
  7. value = "http://localhost/radio.php" /> <option name = value = "mount_add" /> "http://localhost/radio.php"
  8. value = "http://localhost/radio.php" /> <option name = value = "mount_remove" /> "http://localhost/radio.php"
  9. value = "http://localhost/radio.php" /> <option name = value = "listener_add" /> "http://localhost/radio.php"
  10. value = "http://localhost/radio.php" /> <option name = value = "listener_remove" /> "http://localhost/radio.php"
  11. </ Authentication>
  12. <Mount />

The Php Start / Stop Part

  1. Php
  2. $_POST [ "action" ] == 'listener_add' ) { if ($ _POST ["action"] == 'listener_add') (
  3. ( "/usr/local/bin/chumstream.sh start " . $_POST [ "client" ] , $result ) ; $ Tmp = exec ("/ usr / local / bin / start chumstream.sh. $ _POST [" client "], $ result);
  4. ( $_POST [ "action" ] == 'listener_remove' ) { ) Else if ($ _POST ["action"] == 'listener_remove') (
  5. ( "/usr/local/bin/chumstream.sh stop " . $_POST [ "client" ] , $result ) ; $ Tmp = exec ("/ usr / local / bin / chumstream.sh stop". $ _POST ["client"], $ result);
  6. )
  7. 'icecast-auth-user: 1′ ) ; header ('icecast-auth-user: 1');
  8. 'icecast-auth-message: OK' ) ; header ('icecast-auth-message: OK');
  9. ?>

debian.r4w.de (updated)

Published on 7 March 2010 in Computer , Linux , PHP , Programming , Python by muhgatus

Nahmd,

again new packages :)

  • libming1_0.4.3-1_amd64.deb
  • libming-dev_0.4.3-1_amd64.deb
  • libming-util_0.4.3-1_amd64.deb
  • php5-ming_0.4.3-1_amd64.deb
  • python-ming_0.4.3-1_amd64.deb
  • libming1_0.4.3-1_i386.deb
  • libming-dev_0.4.3-1_i386.deb
  • libming-util_0.4.3-1_i386.deb
  • php5-ming_0.4.3-1_i386.deb
  • python-ming_0.4.3-1_i386.deb
  • ming-fonts-dejavu_0.4.3-1_all.deb
  • ming-fonts-opensymbol_0.4.3-1_all.deb

debian.r4w.de (updated)

Published on 25 February 2010 in Computer , Linux by muhgatus

Nahmd,

new packages:

  • python-yaml_3.09-1_i386.deb
  • python-yaml-dbg_3.09-1_i386.deb
  • libyaml-dev_0.1.3-1_i386.deb
  • libyaml-0-2_0.1.3-1_i386.deb

New versions of pyyaml involved.

debian.r4w.de updates

Published on 23 February 2010 in Computer , Linux by muhgatus

Nahmd,
I have played in a couple of new packages.

  • memcachefs 0.5
  • memcached 1.4.4
Next Page »