Skip to content

Video freez when i use overlay while recording #355

@waleedterhana

Description

@waleedterhana

Hi sskodje. Hope doing well.

When I capture YouTube videos with ScreenRecorderLib with the overlay option, it halts or freezes the capturing video. But when I click anywhere on my screen, the video capturing becomes smooth. Below is my sample C# code to use the overlay option.

string WatermarkPath10 = Path.Combine(AppContext.BaseDirectory, "Resources", "Watermark10.png");

if (!File.Exists(WatermarkPath10))
{
MessageBox.Show("Overlay image not found!");
return;
}
var overlays = new List();
overlays.Add(new ImageOverlay
{
AnchorPoint = Anchor.BottomLeft,
SourcePath = safeWatermark,
Offset = new ScreenSize(0, 0),
Size = new ScreenSize(320, 25),
Stretch = StretchMode.UniformToFill,

});

var opts = new RecorderOptions
{

SourceOptions = new SourceOptions
{
    RecordingSources = CreateSelectedRecordingSources()

} ,
OverlayOptions = new OverLayOptions()
{
    Overlays = overlays,
}

Regards
Terhana

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions