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

Use threading in dump-frames.rs example #222

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Architector4
Copy link

This significantly speeds up decoding with very little extra code. With the terse documentation, I think it's a good idea to expose that this is something one can do in an example.

Without this patch:

$ time cargo run -- vinny.mp4
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
     Running `/home/architector4/.cache/cargo-builds/cargo-builds/debug/ffmpeg-example vinny.mp4`

real	0m14.942s
user	0m6.685s
sys	0m8.095s

With it:

$ time cargo run -- vinny.mp4
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
     Running `/home/architector4/.cache/cargo-builds/cargo-builds/debug/ffmpeg-example vinny.mp4`

real	0m10.533s
user	0m9.327s
sys	0m8.823s

This significantly speeds up decoding at very little extra code.
@Architector4
Copy link
Author

oh oops left an extra newline lmao

no biggie i hope?

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

Successfully merging this pull request may close these issues.

1 participant