Whoops! Putting the original muxdemux code back as my changes stopped the example app from working. Note: All this code will be going shortly as change the implementation