Skip to content

max() arg issue #1

@que-vector

Description

@que-vector

Hi,
unfortunately I get the following output after using your script. The input files in the directory frames are .tif files with a size of 888x2056 px.
Any ideas?

(tif2video) PS C:\Users\robert.wendt\Desktop\tiff2video\tif2video\data> py .\create_video.py -v --img_dir C:\Users\robert.wendt\Desktop\tiff2video\tif2video\data\frames --fps 1 --video C:\Users\robert.wendt\Desktop\tiff2video\tif2video\data\testvid.avi --fourcc XVID

Output:
#. Create video file from images in directory: C:\Users\robert.wendt\Desktop\tiff2video\tif2video\data\frames
Traceback (most recent call last):
  File "C:\Users\robert.wendt\Desktop\tiff2video\tif2video\data\create_video.py", line 130, in <module>
    main()
  File "C:\Users\robert.wendt\Desktop\tiff2video\tif2video\data\create_video.py", line 109, in main
    max_frame_width = max(img_widths)
                      ^^^^^^^^^^^^^^^
ValueError: max() arg is an empty sequence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions