-
Notifications
You must be signed in to change notification settings - Fork 163
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
Error and retry chunk if frame count mismatches #612
Error and retry chunk if frame count mismatches #612
Conversation
I think we also have to explicitly decrement the progress bar in the case of that type of failure. |
5cf32a1
to
ac5793d
Compare
av1an-core/src/broker.rs
Outdated
); | ||
} else { | ||
error!( | ||
"finished chunk: FRAME MISMATCH: chunk {}: {}/{} (actual/expected frames)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this should be a warning message instead of an error since we are still restarting the chunk? I think this might be confusing to some users, what do you think though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair, it looks like in the other places we warn unless it's at max retries and bails.
ac5793d
to
475d13e
Compare
I happened to have a file that got through the whole encode with one chunk with a significant frame mismatch. It muxed and happily deleted all of my temp files, and the resulting output had a significant desync after the broken chunk. So, just confirming that retrying after this and erroring after 3 failures is the correct approach. |
0a2af17
to
8bc241a
Compare
Looks much better without the code duplication, thanks! My only suggestion is to change line 250 of broker.rs to say "encoder failed" instead of "encoder crashed", to both match our warning message and to reflect our now more generic usage of |
8bc241a
to
3026017
Compare
I can't think of a situation where someone would want this issue to be ignored, so we should treat it as any other encoder error and perform 3 retries, then exit if it continues to fail. This probably indicates some kind of issue with decoding or applying filters to that chunk.
3026017
to
4e12f0f
Compare
I can't think of a situation where someone would want this issue to be
ignored, so we should treat it as any other encoder error and perform 3
retries, then exit if it continues to fail. This probably indicates some
kind of issue with decoding or applying filters to that chunk.