Skip to content
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

Recording may start several seconds into arena games #26

Closed
aza547 opened this issue Aug 5, 2022 · 8 comments
Closed

Recording may start several seconds into arena games #26

aza547 opened this issue Aug 5, 2022 · 8 comments
Labels
enhancement New feature or request

Comments

@aza547
Copy link
Owner

aza547 commented Aug 5, 2022

Fundamental limitation of how we currently start a recording, due to the WoW combatlog not being written live. It gets flushed periodically (not sure how often/what triggers this). Usually this means recording starts when you get into combat, usually its OK but occasionally you can miss vital positioning moments in the first few seconds.

Only real idea for a fix is to move to a model where we are permanently recording, and then go back and clip videos to size after the arena match ends. The ARENA_MATCH_END event has the duration of the game in it so it's trivial to get this. Less trivial but surely possible to clip videos. Think this is what SquadOV does after discussion with @ericlytle.

@aza547 aza547 added the enhancement New feature or request label Aug 5, 2022
@aza547
Copy link
Owner Author

aza547 commented Aug 22, 2022

Should consider the implications of a fix against the instant replay of videos. The solution should not mean videos are not instantly viewable.

@ericlytle
Copy link
Contributor

i was thinking a little about this. Is the delay in combat log caused by the simplecombatlogger addon or does it do it when you manually start combat logs too? something im going to try to test around when i can

@aza547
Copy link
Owner Author

aza547 commented Aug 24, 2022

I suspect it's not caused by the addon, but happy to be proven wrong!

@aza547
Copy link
Owner Author

aza547 commented Aug 24, 2022

The addon pretty reliably seems to start logging as soon as I zone into arena from memory...

@aza547
Copy link
Owner Author

aza547 commented Aug 29, 2022

This is loads better now. But we can still do more.

The current recording strategy is:

  • Record screen whenever WoW is running.
  • Restart recording every 5 mins.
  • If an encounter/arena starts, cancel the restart and record till it completes.
  • Cut the video to size after the encounter ends using timestamps from the logs to calculate the duration.

This leaves a small window between the start of an encounter/arena that if the 5 minute restarts falls in we'll still have this problem. For example, if the gates open and 2 secs later the restart triggers, then 2 secs later the ARENA_MATCH_START event hits.

The fix to this is to add some logic to handle this scenario by stitching an old buffer video onto the new one. We only delete buffer recording files that are not the most recent, so it will always be available.

Might try tackle this in a few weeks but expect this to be drastically improved as of 2.5.0.

@aza547
Copy link
Owner Author

aza547 commented Aug 30, 2022

Discord request for some extra time at start of raid recording to grab pull timer.

@aza547
Copy link
Owner Author

aza547 commented Jun 20, 2023

Closing this as I think it's good enough as it is.

@aza547 aza547 closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants