public void Copyto(MediaInfo mInfo,bool videoOnly)
{
mInfo.ClearTracks();
foreach(var track in Tracks)
{
if ((videoOnly==false) || ((track.TrackType =="Video")) )
{
var tr = new TrackInfo();
track.CopyTo(tr);
mInfo.Tracks.Add(tr);
}
}
mInfo.TargetVideoCodec = TargetVideoCodec;
mInfo.TargetContainer = TargetContainer;
mInfo.FileName = FileName;
mInfo.FileSize = FileSize;
mInfo.EditAspect = EditAspect;
mInfo.EditBitRate = EditBitRate;
mInfo.EditFrameRate = EditFrameRate;
mInfo.EditResolution = EditResolution;
mInfo.EditRotation = EditRotation;
}