The TRIP
Pictures
Photography
More Photos
Creative Writing
Artwork
HDL_DUMP
OSX rescan SCSI
YUV video
Ford Probe
Subaru WRP10
Favourite Music
Jyhad guide
Helpdesk humour
The TRIP is the mental projection of my digital self. Including all areas of digital work I have been involved with, including Music, video, photography...
All good web pages must have the collection of absolutely useless pictures. Designed for no purpose other than to consume kilobits. And hopefully show off some of my Photographic skills. Web design skills, and uses one php script to drive the whole index. Also see the Photography section of the Silicontrip Website.
The Creative section of the TRIP is my imagination trying to run free. I have a fascination with sexual, spiritual and meta physical abilities, and these stories show it.
Part of the images directory contains some of my digital artwork. These images have been created or enhanced by myself, with the help of the 1s and 0s machine.
Creativity even leads into more concrete things such as programming. I've written code or hacks for PS2 HDL_DUMP
Hacks for rescanning the SCSI bus under Mac OS X. Only works with Adaptec SCSI cards however.
Code for YUV video stream processing, This code extends code from the MJPEG tools. If you have difficulty compiling these contact me.
What pisses me off... I could call this a rant
I've been involved with Sprint Days at Winton Raceway. And other technical car stuff. But all I have are articles on the car I drive. Maybe more later. This is my new car.
These are some of the musical artists that I like.
Jyhad (Vampire) Card game quick reference guide.
Some collection of humour helpdesk issues, while working for an ISP.
I found some documentation about getting OSX to convert a jad and a jar to a cod file suitable for downloading on Blackberry
So here is a hello world application for blackberry. I will hope to expand this into something useful...
Although there is lots of information on how to get midlets working on Xcode. Xcode version 3.0 has some changes that makes those instructions fail. Hopefully this will correct those failures.
download the project template @ http://haikusoftware.com/midletdev/xcodetemplate.zip uncompress it & put the "Ant-based MIDlet Jar" folder into: /Developer/Library/Xcode/Project Templates/Java/ Most of the documentation says that /Library/Application Support/Apple/Developer Tools/Project Templates/Java/ is the location.
As this is used by the mpp property value in the build it's simplest to create that directory and install the mpp-sdk there. download mpowerplayer sdk @ http://mpowerplayer.com/ Remember to register and login to download the sdk
Edit /Developer/Library/Xcode/Project Templates/Java/Ant-based MIDlet Jar/RunJar.xcode/project.pbxproj
Change the builtToolPath to this:
buildToolPath = /usr/bin/ant;
Something with the current version of Java doesn't like preverify. I don't
know what, I just know that changing to version 1.4.2 solves the issue
Edit: /Developer/Library/Xcode/Project Templates/Java/Ant-based MIDlet Jar/build.xml
Change:
<property name="java.classes.jar" value="/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar" />
to:
<property name="java.classes.jar" value="/System/Library/Frameworks/JavaVM.framework /Versions/1.4.2/Classes/classes.jar" />
Hopefully your midlet class will build now! Now I just need to edit my web server config so I can do OTA installs to my Blackberry...
I have added some features to libav2yuv.
Aspect ratio constants. Since I can never remember the true square aspect ratio for NTSC. I've added PAL, PAL_WIDE, NTSC and NTSC_WIDE. Suitable for MPEG2 and MPEG1 DVD and VCD content. This can be selected with the -A command, along with numerical aspect ratios.
Auto video track select. By default libav2yuv would choose track 0, however if there was no video on track 0, as is the case with the majority of ASF files, nothing would be output. Athough the video track could be selected with the -s option, this became annoying enough for me to write some code to automatically pick the first available video track if no video is on track 0.
Force format option. I came across an mpeg file the other day that libav2yuv said was an ac3 and would decode no video. This can be overriden with the -f option. I do not know what values this can take, as it is passed directly to libav. I do know that "mpeg" is used for an mpeg file.
As always check out my lavtools for the latest version.
Still trying to work out the best way to build mjpegutils as a universal library? These are some more detailed instructions.
I would recommend against doing this as the mjpegutil configure scripts detect CPU options, such as g4/g5 optimisations and Alitvec/MMX optimisations. These optimisations must be left out for a universal build. Ideally the best way would be to build for each platform individually and then use lipo to join them together. I'll look at doing this later...
I have access to a g4, g5, core duo and core 2 duo machines I should be able to find out the ideal flags for each of these builds. However as the configure script detects cpu optimsations automatically and then generates make files for all sub projects. Finding out how to trick configure into using tunings for each Apple architecture might be difficult
Make sure universal libjpeg is built and installed, this is not optional. If you have libpng installed make sure it's universal or use the --disable-libpng configure option. And same with all other support libraries, make sure they are universal or disable them.
replace cpuinfo.sh with the following script:
#!/bin/sh echo "-arch ppc -arch i386"
configure mjpegutils. include the opposite architectures build flags Don't forget your --prefix flag if you are installing in places other than /usr/local
./configure --enable-shared --enable-static --disable-dependency-tracking --build=i386-apple-darwin
Use --build=ppc-apple-darwin for i386 machines
hack libtool, adding the LDFLAGS to the archive_cmds variable, there are two places for archive_cmds
archive_cmds="\$CC -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring" archive_cmds="\$CC -Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -dynamiclib -single_module \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring"
Hack config.h removing CPU specific options.
/* Inline PPC Altivec primitives available */ /* #undef HAVE_ALTIVEC */ /* Inline MMX assembly accepted by C compiler */ /* #undef HAVE_ASM_MMX */ /* Compiling for PowerPC CPU */ /* #undef HAVE_PPCCPU */ /* Compiling for x86-64 architecture CPU */ /* #undef HAVE_X86CPU */
Fortunately it appears that no code makes use of WORDS_BIGENDIAN
Now you must build each sub directory seperately
For Libraries use:
make CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" LDFLAGS="-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
and Use the following for executables:
make CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386" LDFLAGS="-Wl,-syslibroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
mjpeg utils is made up of several packages.
utils mpeg2enc lavtools aenc mplex yuvcorrect yuvscaler yuvdenoise yuvfilters yuvdeinterlace y4mdenoise y4munsharp y4mutils
mpeg2enc is the mpeg2 encoder binary. I highly recommend building this with
optimisations as it makes heavy use of SIMD/MMX or Altivec instructions.
mpeg2enc is written in c++ and makes use of the CXXFLAGS although it
appears we can ignore this.
Build with Library make command first.
When you see the error:
unrecognized option '-syslibroot'
use the executable make command
aenc is the mpeg audio layer 2 encoder. Builds cleanly with the execute make command
mplex is the mpeg program stream multiplexer, it builds libmpeg first, so start with the library make command then switch to the executable build.
Lavtools uses libpng (I haven't yet built a universal libpng)
yuvcorrect builds an executable, use the executable make only.
yuvscaler builds an executable, use the executable make only.
yuvdenoise builds an executable, use the executable make only.
y4munsharp builds an executable, use the executable make only.
y4mutils builds several executables, use the executable make only.
You should be now ready to install.
if you see the error: /usr/bin/libtool: can't open file: 2 (No such file or directory) Means you should switch to the Library make command.
It's only taken me how long? But now I've written a small perl script that generates an xml file in the form of an rss feed. So everytime I write a new article, I can run the script and generate a new feed.
Soon I'll write generators for some of my other frequently updated pages (lavtools and macosxcommand line)
oh and the link? It should be available in your browser now.
12 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Next page