setDuration(header.getFileHeader().getDurationInSeconds());
// The average bit rate of the video is as hard to gather as the FPS.
// However in this case there is a recommended chunk in ASF files
// which contains this information.
StreamBitratePropertiesChunk propertiesChunk = header.getStreamBitratePropertiesChunk();
if (propertiesChunk != null)
setVideoBitRate((int) propertiesChunk.getAvgBitrate(video.getStreamNumber()));
// The audio part of the video. (optional)
if (header.getAudioStreamChunk() != null) {
setAudioCodec(header.getAudioStreamChunk().getCodecDescription());
setAudioRate((int) header.getAudioStreamChunk().getSamplingRate());