# video.Record

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/video.Record
- **Çeviri tarihi:** 2025-09-08

```lua
IVideoWriter, string video.Record( table config )
```

## Açıklama

Bir [IVideoWriter](https://gmod.tr/wiki/IVideoWriter) oluşturmayı dener.

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **config**: Video yapılandırması. [VideoData yapısı](https://gmod.tr/wiki/Structures/VideoData) sayfasına bakınız.

## Dönen Değerler

1. [IVideoWriter](https://gmod.tr/wiki/IVideoWriter): Video nesnesi (bir hata varsa **false** döner)
2. [string](https://gmod.tr/wiki/string): Eğer bir hata varsa, hata metni

### Örnek

Basit bir IVideoWriter nasıl oluşturulur ve nasıl kullanılır

```lua
local config = {
	container = "webm",
	video = "vp8",
	audio = "vorbis",
	quality = 50,
	bitrate = 200,
	fps = 30,
	lockfps = true,
	name = "Test",
	width = 1280,
	height = 720
}
local iVideoWriter = video.Record( config )
iVideoWriter:SetRecordSound( true )

local function Record()
	iVideoWriter:AddFrame( FrameTime(), true )
end

function StartRecording()
	hook.Add( "DrawOverlay", "Record", Record )
end

function StopRecording()
	hook.Remove( "DrawOverlay", "Record" )
	iVideoWriter:Finish()
end
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/video.Record
