update VP8/VP9 examples to decode/encode frames (#704)

This commit is contained in:
Alessandro Ros
2025-02-19 22:45:31 +01:00
committed by GitHub
parent a17e1f776e
commit 3829fef787
29 changed files with 1513 additions and 195 deletions

View File

@@ -67,8 +67,8 @@ func (d *av1Encoder) initialize() error {
C.av_opt_set(d.codecCtx.priv_data, key, val, 0)
d.codecCtx.pix_fmt = C.AV_PIX_FMT_YUV420P
d.codecCtx.width = (C.int)(d.Height)
d.codecCtx.height = (C.int)(d.Width)
d.codecCtx.width = (C.int)(d.Width)
d.codecCtx.height = (C.int)(d.Height)
d.codecCtx.time_base.num = 1
d.codecCtx.time_base.den = (C.int)(d.FPS)
d.codecCtx.gop_size = 10