Skip to content

Error: invalid value encountered in true_divide L_norm = L/np.max(L) #1

Description

@NuMetalz

Hey I'm getting this error when running this script on the attached video.

Trying to sync my elgato game capture footage to my microphone.

video-file.mp4

My series of errors includes this:

E:/hate5sync.py:30: RuntimeWarning: invalid value encountered in true_divide
L_norm = L/np.max(L)
Traceback (most recent call last):
File "E:/hate5sync.py", line 78, in
peak_audio = compute_audio_peak(video_f

ile, fps)
File "E:/hate5sync.py", line 52, in compute_audio_peak
ffmpeg.input(video_file).output(audio_stream).run()
AttributeError: module 'ffmpeg' has no attribute 'input'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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