Internet, UNIX, Video, Leisure…
OS X
Fuppes DLNA Server compilation os Os X Leopard
30/04/08

Fuppes is a « free » Upnp and DLNA server. It can work on almost any system, from Linux to Os X
While you will find some usefull help to install it on Leopard (check here), it may not be so easy.
First of all, install Macports.
Then, change your PATH environement variable so you have /opt/local/bin and /opt/local/sbin at the begining.
Then, port install some packages :
- autoconf
- automake
- ffmpeg (see my other post for compilation)
- ImageMagick
- simage
- taglib
- pcre
- pkgconfig
- SQLite3
- libxml2
- ossp-uuid
- lame
- flac
- vorbis
Other may be needed.
Then, download the latest CVS trunk and install it :
$ sudo svn co http://fuppes-svn.ulrich-voelkel.de/trunk fuppes
Password:
$ cd fuppes/
$ autoreconf -vfi
$ CFLAGS="-I/opt/local/include/libavformat -I/opt/local/include/libavcodec -I/opt/local/include -I/opt/local/include/libavutil -I/opt/local/include/libswscale" \
CPPFLAGS="-I/opt/local/include/libavformat -I/opt/local/include/libavcodec -I/opt/local/include -I/opt/local/include/libavutil -I/opt/local/include/libswscale" \
LDFLAGS="-L/opt/local/lib -R/opt/local/lib" \
./configure --prefix=/opt/fuppes --enable-video-transcoding
$ make
$ sudo make install
Then, start fuppes and go on the web interface :
/opt/fuppes/bin/fuppes
Or start it as a standalone daemon :
/opt/fuppes/bin/fuppesd
Then browse to your IP on port 50865.
Of course, if you have no time but got money, you can just buy the Eyeconnect software from Elgato…
Cheers
Building MacPorts Py-Mysql on Leopard
15/02/08
If you installed over your old Tiger or if you are new user, you may have experienced errors when trying to build py-mysql.Py-mysql is a Python module to connect to Mysql.I’m using it to have Django, the Python Web Framework, to connect to Mysql database. This is what I got when trying to install :
# port install py-mysql
---> Building py-mysql with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mysql/work/MySQL-python-1.2.2" && /opt/local/bin/python2.4 setup.py build " returned error 1
Command output: running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-ppc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/opt/local/include/mysql5/mysql -I/opt/local/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _mysql.c -o build/temp.macosx-10.3-ppc-2.4/_mysql.o
In file included from /opt/local/include/mysql5/mysql/mysql.h:47,
from _mysql.c:40:
/usr/include/sys/types.h:92: error: duplicate 'unsigned'
/usr/include/sys/types.h:92: error: two or more data types in declaration specifiers
error: command '/usr/bin/gcc-4.0' failed with exit status 1
Error: Status 1 encountered during processing.
I tried to upgrade MacPorts… but I already had the latest.
# port selfupdate
MacPorts base version 1.600 installed
Downloaded MacPorts base version 1.600
The MacPorts installation is not outdated and so was not updated
selfupdate done!
I finaly found the solution on http://rob.cogit8.org/blog/2007/Nov/14/installing-django-leopard-mac-os-105/
Using two usb/firewire external drive with oxford chip
28/12/07
As you may know I just get my new Sony PMW-EX1 camcorder last week. This camcorder use solid state SxS memory cards. I got it with 2x 8Gb cards. 16Gb is around 55 mins of recording.
Then the question is : how and where to store all that data ?
The SxS card is an expresscard card, so it can fit in the MacBook Pro slot. But the internal drive is slow and limited (160Gb for me). I was in need of something faster. Moreover, I was in need of something reliable.
I finaly found a small box for a 3.5″ drive, having e-Sata, Firewie 400, Firewire 800 and USB 2.


Transformer une photo en mosaic
28/12/07
Using ffmpeg to get movie out of PMW-EX1 camera
23/12/07

Sometimes you don’t want to use Final Cut to review your shoots, or simply you can’t : you are on Windows !
Even if VLC can read the mp4 file directly, you can also extract the mpeg2 file encapsulated inside the mp4.
Thanks to Mr Bolanski, FFmpeg is your friend :
EX1.mp4 to DV25 :
ffmpeg –i inputfile.mp4 –f dv –s 720x576 output.dv
EX1.mp4 to Mpeg2 and wav :
ffmpeg -y -i inputfile.mp4 -vcodec copy -f mpeg2video outputfile.m2v -acodec pcm_s16le outputfile.wav
Compiling ffmpeg on OsX Leopard
20/11/07
ffmpeg is a command line tool used to convert video format. It has so many option that most of the free video software around the place is based on it. I tried to install the Macport (port install ffmpeg) but I had an error. I finaly managed to compile it by hand.First of all, get the source, patch it and configure it using the ports :
port configure ffmpeg
Then go to the ffmpeg source tree :
cd /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/ffmpeg/work/trunk/
Then :
make libmake ffmpegmake allmake install
You now have a running ffmpeg in /opt/local/bin/ffmpeg.For the story, I don’t know why the port failled to compile, and I don’t have time to dig this out. Moreover, I’m also pissed of having to dig in every compilation I make. But eh, this is free software after all…
Next features of Mac OS X
7/06/07
Have a look there to see what next featrues will be, like new package system, ZFS… The whole blog is worth reading. Check this out : http://themachackers.com/2007/01/08/the-oracle-macworld-software-announcements/
