mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
Updated RawVideoPipeSource.cs
This commit is contained in:
parent
6f8c7915f8
commit
9a4d200483
1 changed files with 4 additions and 4 deletions
|
@ -31,11 +31,11 @@ public string GetFormat()
|
||||||
{
|
{
|
||||||
if (!framesEnumerator.MoveNext())
|
if (!framesEnumerator.MoveNext())
|
||||||
throw new InvalidOperationException("Enumerator is empty, unable to get frame");
|
throw new InvalidOperationException("Enumerator is empty, unable to get frame");
|
||||||
|
}
|
||||||
StreamFormat = framesEnumerator.Current.Format;
|
StreamFormat = framesEnumerator.Current.Format;
|
||||||
Width = framesEnumerator.Current.Width;
|
Width = framesEnumerator.Current.Width;
|
||||||
Height = framesEnumerator.Current.Height;
|
Height = framesEnumerator.Current.Height;
|
||||||
}
|
|
||||||
|
|
||||||
return $"-f rawvideo -r {FrameRate} -pix_fmt {StreamFormat} -s {Width}x{Height}";
|
return $"-f rawvideo -r {FrameRate} -pix_fmt {StreamFormat} -s {Width}x{Height}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue