Files
ersatztv/ErsatzTV.FFmpeg/FrameState.cs
T
Jason DoveandGitHub 242a7ae382 add b-frames option to ffmpeg profile (#1726)
* add b-frames option to ffmpeg profile

* update dependencies

* cleanup
2024-05-24 08:50:11 -05:00

27 lines
767 B
C#

using ErsatzTV.FFmpeg.Format;
namespace ErsatzTV.FFmpeg;
public record FrameState(
bool Realtime,
bool InfiniteLoop,
string VideoFormat,
Option<string> VideoProfile,
Option<string> VideoPreset,
bool AllowBFrames,
Option<IPixelFormat> PixelFormat,
FrameSize ScaledSize,
FrameSize PaddedSize,
Option<FrameSize> CroppedSize,
bool IsAnamorphic,
Option<int> FrameRate,
Option<int> VideoBitrate,
Option<int> VideoBufferSize,
Option<int> VideoTrackTimeScale,
bool Deinterlaced,
FrameDataLocation FrameDataLocation = FrameDataLocation.Unknown)
{
public string FFmpegAspectRatio => PaddedSize.Width == 640 ? "4/3" : "16/9";
public int BitDepth => PixelFormat.Map(pf => pf.BitDepth).IfNone(8);
}