BBC Open Sources MHEG+ Toolkit
Some very good news for all the MHEG developers out there, the BBC have this week open sourced the MHEG+ toolkit and it can be downloaded over at the MHEG+ SourceForge page.
The release comes with little in the way of tutorials and so it might all seem a little daunting at first. But having used (and worked on) the toolkit for a couple of years I think it is worth the initial effort and recommend you give it a try.
I intend to write a full getting started guide to help new users over on the MHEG+ SourceForge forum, but for now here are some code examples and an ultra-quick guide to getting the toolkit up & running…
There is a simple “Hello World” MHEG+ application downloadable from the MHEG+ subversion repository.
Ultra-quick MHEG+ getting started guide
The toolkit contains a compiler and an emulator. Currently both are available for download as a separate Java .jar files. You will need Java installed to use them.
To use the emulator/debugger, download the file named MhegPlus.MhegPlayer-1.0.1.jar and issue the command:
java -jar MhegPlus.MhegPlayer-1.0.1.jar
This will launch the Mheg Player GUI.
To use the compiler first download the file named MhegPlus.Compiler-1.0.1.jar. The compiler can invoked with the following command, but you will need to pass command-line options to get anything meaningful out of it:
java -jar MhegPlus.Compiler-1.0.1.jar
You can get help on the various compiler options by passing –help, e.g.:
java -jar MhegPlus.Compiler-1.0.1.jar --help
-p,--output-app output application file? (optional)
-d,--output-dir output directory (optional)
-P,--output-app-sans-extension output application file as a or startup
-l,--log-level log level
-a,--asn1 select ASN.1 output (default)
-f,--application application file
-h,--help print this help
-t,--text select text output
-v,--version report version number