MASON-INTEREST-L Archives

March 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Jose V. Trigueros" <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 13 Mar 2013 20:22:10 -0600
Content-Type:
multipart/mixed
Parts/Attachments:
text/plain (655 bytes) , text/html (935 bytes) , MovieEncoder.java.patch (646 bytes)
I have noticed that in mason.sim.util.media.MovieEncoder.java:302-303:

        // i think my hacking begins here (dan)
        // get formats with current framerate, which should not matter
        Format format =
(Format)(ImageToBuffer.createBuffer(i,frameRate).getFormat());
        source = new MovieEncoderDataSource(format, frameRate);

The format that is passed by the constructor is not being used here, thus
causing errors when not passing the same format as the one that is
automatically selected here. So, in contrary to the comment, I do believe
that the format given here does matter. I have attached a patch with the
proposed change.

Thanks,
Jose Trigueros


ATOM RSS1 RSS2