private Pair toMpeg(VideoInput vi) throws PageException, IOException {
VideoInfo info = getInfo(vi);
//Struct sct = _doActionInfo(vi);
if("mpeg1video".equals(info.getVideoCodec()))
return new Pair(vi.getResource(),toStruct(info));
VideoOutput tmp = new VideoOutputImpl(pageContext.getConfig().getTempDirectory().getRealResource("tmp-"+new Random().nextInt()+".mpg"));
try {
doActionConvert(vi,tmp,null,null,NAMECONFLICT_ERROR);