Using Mac Homebrew to install ffmpeg
Posted At : January 31, 2012 11:40 PM
0 Comments
To install ffmpeg via homebrew you need to specify which compiler to use on 10.7 at least:
Cheers, Mark
Posted At : January 31, 2012 11:40 PM
0 Comments
To install ffmpeg via homebrew you need to specify which compiler to use on 10.7 at least:
Cheers, Mark
Posted At : August 11, 2011 9:41 AM
2 Comments
I've been updaging our existing documentation which was written in AsciiDoc and also creating new documentation recently.
Our normal process is to update the source text file, commit to our SVN and the run the documentation build script from the deployment server to create the HTML and PDF versions of the document.
This works fine from our server but to speed things up while I was writing the documents and make sure I had the formatting correct I thought I'd install AsciiDoc on my laptop and 'build' the document locally before committing to SVN, building and checking.
Installing AsciiDoc is simple enough using MacPorts:
Creating a html version of your AsciiDoc is simple at this point:
That will output a file called sample.html in the same directory as the source file. No worries ...
To create a PDF or an ePub, it's recommended that you use the a2x command instead of asciidoc though.
According to the AsciiDoc website "a2x is A toolchain manager for AsciiDoc (converts Asciidoc text files to other file formats)"
So I gave this a try:
It generated the following error though!
It took a bit of Googling (sp?) but I found the core of my solution in this post:Fixing the ePub problem with Docbook-XSL/A2X/Asciidoc
The only 'tricky' part was finding my catalogue.xml, which ended up being in /opt/local/share/xsl/docbook-xsl ... and I modified the contents to be:
Once I had done that, everything generated fine :)
The next thing I need to work on is getting the default XSLT template cleaned up :)
HTH
A.J.
Posted At : December 29, 2010 5:13 AM
5 Comments
Initial attempts using ffmpeg were making it re-encode the entire video which would take ages and result in a larger file or worse quality.
A bit of googling and reading the man pages later I discovered
This tells ffmpeg to copy the video and audio without re-encoding.
So insted of this
This worked a treat for all except one file - which gave the following error.
By using the "-an" and "-vn" flags to skip the video and audio encoding in turn I narrowed it down to a problem in the audio codec timestream.
To try to get ffmpeg to fix the problem I got it to reencode the audio but copy the video codec with the following:
Worked a treat. I love ffmpeg :-)
Final code to fix it using aac with audio quality quite high 200 (range is 0-255)
Posted At : October 20, 2010 4:36 AM
Learnosity are creating the next generation of language and assessment technology for use in schools and education worldwide. The current product portfolio includes:
This is a full time role and you will be working in a casual workplace with flexible hours in the Sydney CBD. Salary commensurate with experience.
If this sounds like the job for you, email a covering letter explaining why you'll be great and your resume to mark@learnosity.com - no agencies please.
Posted At : May 18, 2009 11:47 AM
This simple find command shows the offending files:
A quickie but a goodie.
Cheers, Mark
Posted At : March 27, 2009 3:45 AM
8 Comments
extract content:
Move Tomcat to a more secure place:
extract and move into Tomcat lib directory:
Make Tomcat and Railo work together by modifying the web config file:
add the following inside the <web-app> element:
add the following inside <welcome-file-list> element:
Next you need to compile the source so that the resulting binary file is compatible with your Intel Mac architecture. I got this from Eric Rank's blog
cd into tomcat source:
Edit the apache-2.0/Makefile.apxs.in file.
Replace
with:
configure the build files:
now go into apache-2.0 directory and build:
Finally install
Now specify the connection between Apache and Tomcat. To do this you need to create workers.properties file. I created mine in /etc/apache2.
Paste the following:
Now we need to modify the Apache httpd.conf file:
Enable The Apache Tomcat Connector:
Underneath that tell Apache where your workers.properties file is located and add some logging info (could be useful):
One last thing, to start your Tomcat server type in this command:
shut down
My assumption is that the above steps would be very similar on other operating systems as long as you use the correct file paths.
Good luck :-)
Marko
Posted At : September 8, 2008 3:30 AM
However, you need to do a tiny bit of setup work before you can use the functions. You need to load the timezone info from your system into the mysql db.
Thankfully, the MySQL Developers have included a very handy script that will do just that from a zoneinfo files which are used on Linux and on Mac's.
Obviously change the mysql params or add a -p if you have a password or are connecting to a remote server.
Check out the MySQL developer site for full details on MySQL timezone support
Cheers, Mark
Posted At : June 22, 2008 10:13 PM
A quick google later and I found the solution, a program called 'tr', posting here for next time:
Obviously you could convert from Unix to Mac by reversing it.
Cheers, Mark
Posted At : May 16, 2008 3:21 PM
4 Comments
It does exactly what is says on the tin and makes it very easy to copy dvd's. Initially I used it from my Mac and it worked flawlessly.
I also tried the Linux version on Ubuntu Hardy (8.04) which has no GUI but it is pretty simple when you get the hang of it.
Here's a typical command line:
This reads from /dev/cdrom and uses the handy "iPod Low-Rez" preset which fixes it all up nicely for the iPod.
And here's one that takes the second title:
The wiki has more information on command line usage.
Happy iPodding.
Cheers, Mark
Posted At : March 24, 2008 8:32 PM
Prism is a cut down version of Mozilla which is designed to run single sites from icon - what's the use of that you may ask? Well it allows you to have an icon on your desktop for Gmail or Google Calendar or docs or analytics and get to it nice and quickly.
It also free's up some much needed screen real-estate as all the other toolbars relevant for a web-developers browser can get in the way and are not used when you are using you email and calendar.
Additionally - as web developer I tend to restart firefox more often than some - and having my email seperated from that is nice.
Give it a try and see if you like it. On Ubuntu Hardy you can do the following to install it:
On other platforms (windows,mac or other linux versions) you can go to the Prism site and download it.
For the different applications check out the Bundles section or the User contributed bundles section.
Obviously this shares a lot of similarities with the adobe AIR platform albeit not as full featured. It will be interesting to see what further development plans there are for the prism platform.
Cheers, Mark