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

Suppress ffmpeg output by default and add verbose argument to display it #12

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

alik-git
Copy link
Contributor

@alik-git alik-git commented Dec 3, 2024

This can be tested with the example script provided and any krec.mkv file

@hatomist hatomist merged commit 65e974e into master Dec 4, 2024
1 check passed
@hatomist hatomist deleted the extract_from_mkv_updates branch December 4, 2024 22:11
Comment on lines +64 to +67
print(f"krec_obj: {krec_obj}")
print(f"krec_obj.header: {krec_obj.header}")
print(f"num frames: {len(krec_obj)}")
print(f"succesfully loaded KRec file!")
Copy link
Member

Choose a reason for hiding this comment

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

don't use print statements

use logging

Copy link
Contributor

Choose a reason for hiding this comment

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

to be fair, not a library code but just an example script

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I did use logging in the library code, for example see here

info!("Starting extract_from_video");

but if we don't want print statements in the example files, I'm happy to change that as well.

Copy link
Member

Choose a reason for hiding this comment

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

we should use python logging everywhere

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.

3 participants