KitwareMedical / ITKPOCUS

An open source library for streaming and preprocessing point-of-care ultrasound video.
Other
19 stars 5 forks source link

BUG: fixed error attempting to read too many frames #32

Closed brad-t-moore closed 2 years ago

brad-t-moore commented 2 years ago

Added the -vsync 0 option to ffmpeg. This prevents it from attempting to resample the output video according to a framerate. The rare bug was causing some butterfly videos with odd frames to error out as the code attempted to read more frames than ffmpeg was outputing.

brad-t-moore commented 2 years ago

@tao558 If you could review and then try using this with your current fix to the Butterfly preprocessing (e.g., using the mean over frames for the cropping). If both look good I'll make a bug fix release.