* start to add v4l2m2m accel * add v4l2m2m pipeline * add encoders * fix decoders and encoders * output software frames from decoders * more buffers * hide v4l2m2m from ui
22 lines
551 B
C#
22 lines
551 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg.Encoder.V4l2m2m;
|
|
|
|
public class EncoderH264V4l2m2m : EncoderBase
|
|
{
|
|
public override string Name => "h264_v4l2m2m";
|
|
public override StreamKind Kind => StreamKind.Video;
|
|
|
|
public override string[] OutputOptions =>
|
|
[
|
|
"-c:v", Name,
|
|
"-num_capture_buffers", "16"
|
|
];
|
|
|
|
public override FrameState NextState(FrameState currentState) => currentState with
|
|
{
|
|
VideoFormat = VideoFormat.H264,
|
|
FrameDataLocation = FrameDataLocation.Hardware
|
|
};
|
|
}
|