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

How to suppress FFMPEG warning for BluRay files? #1071

Open
jsakkos-curio opened this issue Mar 20, 2024 · 1 comment
Open

How to suppress FFMPEG warning for BluRay files? #1071

jsakkos-curio opened this issue Mar 20, 2024 · 1 comment

Comments

@jsakkos-curio
Copy link

When processing .mkv files from BluRay rips, I get the following warning repeatedly:

Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

From what I can tell, this warning isn't cause for concern, I just want to suppress it, as I'm getting spammed. It happens both with the pyav and ffmpeg plugins.

@Pandede
Copy link
Contributor

Pandede commented Apr 3, 2024

The plugin ffmpeg is implemented based on imageio-ffmpeg.
You may transfer the issue to this repository.

Update:
@jsakkos-curio You may pass ffpmeg_params=['-loglevel', 'error'] towards imread to bypass the warning message of FFMPEG:

import imageio.v3 as iio
image = iio.imread('myvideo.mp4', plugin='FFMPEG', ffmpeg_params=['-loglevel', 'error'])

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