Skip to content

Commit

Permalink
Fixed issue with video file detection (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthivelj authored May 5, 2024
1 parent 708f237 commit fb04e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video2image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():

# Handle directory with multiple video files
elif os.path.isdir(args.input):
video_files = glob.glob(os.path.join(args.input, "*.mp4"))
video_files = glob.glob(os.path.join(args.input, "*.[mp4|mkv|avi|mov]")) # Updated line
if len(video_files) == 0:
print("No video files found in the input directory")
else:
Expand Down

0 comments on commit fb04e43

Please sign in to comment.