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