Skip to content

chore(toxav): use realtime deadline for vp8 encoder #2898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Green-Sky
Copy link
Member

@Green-Sky Green-Sky commented Mar 27, 2025

Technically all this does is choose a quality based on frame duration, which we always set to 1, and as such is always realtime. (In same timebase as pts, which we use as a frame counter...)

Also no deadline for decoder. (documentation tells us it's ignored)

fixes #2770


This change is Reviewable

@Green-Sky Green-Sky added this to the v0.2.22 milestone Mar 27, 2025
@Green-Sky Green-Sky requested a review from zoff99 March 27, 2025 19:23
@github-actions github-actions bot added the chore Updating grunt tasks etc; no production code change label Mar 27, 2025
@Green-Sky Green-Sky marked this pull request as draft March 27, 2025 19:25
@Green-Sky Green-Sky added the toxav Audio/video label Mar 27, 2025
toxav/toxav.c Outdated
@@ -1086,8 +1075,11 @@ bool toxav_video_send_frame(ToxAV *av, uint32_t friend_number, uint16_t width, u
memcpy(img.planes[VPX_PLANE_U], u, (width / 2) * (height / 2));
memcpy(img.planes[VPX_PLANE_V], v, (width / 2) * (height / 2));

// TODO(zoff99): don't hardcode this, let the application choose it
const vpx_enc_deadline_t deadline = VPX_DL_REALTIME;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zoff99 should we just remove this line + the todo?

Technically all this does is choose a quality based on frame
duration, which we always set to 1, and as such is always realtime.
(In same timebase as pts, which we use as a frame counter...)

Also no deadline for decoder. (documentation tells us its ignored)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Updating grunt tasks etc; no production code change toxav Audio/video
Development

Successfully merging this pull request may close these issues.

chore(toxav): libvpx vpx_codec_decode() ignores deadline
2 participants