try {
in = mkin.getInputStream();
out = mkout.getOutputStream();
if (modifier != null && modifier.isH264AnnexB()) {
in = new H264AnnexBInputStream(in, modifier.getHeader());
} else if (modifier != null && modifier.isEncodedAudioPassthrough()) {
out = new IEC61937AudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
} else if (modifier != null && modifier.isDtsEmbed()) {
out = new DTSAudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
} else if (modifier != null && modifier.isPcm()) {