mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: 3785179a87
This commit is contained in:
commit
40f22de444
3 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,7 @@ public void Probe_Success()
|
|||
Assert.AreEqual(6, info.PrimaryAudioStream.Channels);
|
||||
Assert.AreEqual("AAC (Advanced Audio Coding)", info.PrimaryAudioStream.CodecLongName);
|
||||
Assert.AreEqual("aac", info.PrimaryAudioStream.CodecName);
|
||||
Assert.AreEqual("LC", info.PrimaryAudioStream.Profile);
|
||||
Assert.AreEqual(381988, info.PrimaryAudioStream.BitRate);
|
||||
Assert.AreEqual(48000, info.PrimaryAudioStream.SampleRateHz);
|
||||
|
||||
|
|
|
@ -5,5 +5,6 @@ public class AudioStream : MediaStream
|
|||
public int Channels { get; internal set; }
|
||||
public string ChannelLayout { get; internal set; } = null!;
|
||||
public int SampleRateHz { get; internal set; }
|
||||
public string Profile { get; internal set; } = null!;
|
||||
}
|
||||
}
|
|
@ -94,6 +94,7 @@ private AudioStream ParseAudioStream(FFProbeStream stream)
|
|||
ChannelLayout = stream.ChannelLayout,
|
||||
Duration = ParseDuration(stream),
|
||||
SampleRateHz = !string.IsNullOrEmpty(stream.SampleRate) ? ParseIntInvariant(stream.SampleRate) : default,
|
||||
Profile = stream.Profile,
|
||||
Language = stream.Tags?.Language
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue