    @Test
    public void testMuxing() throws Exception {

        H264AnnexBTrack b = new H264AnnexBTrack(StandardMp4WriterTest.class.getResourceAsStream("/org/mp4parser/streaming/input/h264/tos.h264"));
        OutputStream baos = new FileOutputStream("output.mp4");
        StandardMp4Writer writer = new StandardMp4Writer(Collections.<StreamingTrack>singletonList(b), Channels.newChannel(baos));
        //MultiTrackFragmentedMp4Writer writer = new MultiTrackFragmentedMp4Writer(new StreamingTrack[]{b}, new ByteArrayOutputStream());
        b.call();
        writer.close();

        //Walk.through(isoFile);
        //List<Sample> s = new Mp4SampleList(1, isoFile, new InMemRandomAccessSourceImpl(baos.toByteArray()));
        //for (Sample sample : s) {
//            System.err.println("s: " + sample.getSize());
        //          sample.asByteBuffer();
        //    }
    }