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

error on most recent build #54

Open
RaTheGod1 opened this issue Mar 31, 2023 · 1 comment
Open

error on most recent build #54

RaTheGod1 opened this issue Mar 31, 2023 · 1 comment

Comments

@RaTheGod1
Copy link

building output video 
Traceback (most recent call last):
  File "C:\Users\drewd\stammer-main\stammer.py", line 291, in <module>
    main()
  File "C:\Users\drewd\stammer-main\stammer.py", line 287, in main
    process(**vars(args))
  File "C:\Users\drewd\stammer-main\stammer.py", line 255, in process
    build_output_video(frames_dir, outframes_dir, matcher, real_frame_length, frame_length, carrier_framecount, output_path)
  File "C:\Users\drewd\stammer-main\stammer.py", line 117, in build_output_video
    shutil.copy(frames_dir / f'frame{carrier_video_frame+1:06d}.png', outframes_dir / f'frame{video_frame_i:06d}.png')
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Unknown format code 'd' for object of type 'float' 

this is seems to be in the same place where the program was trying to generate frames that were beyond the end of the video

@Firepal
Copy link
Collaborator

Firepal commented Apr 10, 2023

This is fixed in latest version, which casts carrier_video_frame to an int as Python expects.

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