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

__init__.py error #841

Open
asapbg opened this issue Jul 14, 2024 · 0 comments
Open

__init__.py error #841

asapbg opened this issue Jul 14, 2024 · 0 comments

Comments

@asapbg
Copy link

asapbg commented Jul 14, 2024

Hello,

There is a bug on line 678 of __init__py.

output_video = cv2.VideoWriter(output_video_filepath, cv2.VideoWriter_fourcc(*"MP4V"), frames_per_second, (frame_width, frame_height))

Should be

output_video = cv2.VideoWriter(output_video_filepath, cv2.VideoWriter_fourcc(*"mp4v"), frames_per_second, (frame_width, frame_height))

Note the case of mp4v. Without the fix, it produces a warning:

OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'

I hope it will be patched in the next version.

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

1 participant