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

multi-threaded encoder generates different output than single-threaded #24

Open
shekh opened this issue Dec 13, 2017 · 1 comment
Open

Comments

@shekh
Copy link

shekh commented Dec 13, 2017

I noticed some pattern, therefore looks suspicious.
Encoding constant input (repeated still frame)
single-threaded encoder output:
A,B,C,C,C,...
multi-threaded (2 threads):
A,A,B,B,C,C,C,...
multi-threaded (4 threads):
A,A,A,A,B,B,B,B,C,C,C,...
So is the output affected by some internal state in CSampleEncoder? Should this happen? Should this state be shared in encoders pool?
Decoded differences are somewhere 1-bit high.

@dnewman-gpsw
Copy link
Collaborator

Only the metadata should be slightly different per frame (timecode and frame number -- both used for Active Metadata.) Nothing else should be changing. Could be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants