Skip to content

Commit

Permalink
Update fmtv-downloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MMagTech committed Jun 19, 2024
1 parent c0ee15e commit f3f08e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmtv-downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ def is_static_image_for_5_seconds_ffmpeg(video_path):
out, _ = (
ffmpeg
.input(video_path, ss=t, vframes=1)
.output('pipe:', vframes=1, format='image2', vcodec='rawvideo', pix_fmt='rgb24')
.output('pipe:', vframes=1, format='rawvideo', pix_fmt='rgb24')
.run(capture_stdout=True, capture_stderr=True)
)
frame = np.frombuffer(out, np.uint8).reshape([-1, 3])
frame = np.frombuffer(out, np.uint8)
frames.append(frame)

# Compare each frame with the first frame
Expand Down

0 comments on commit f3f08e9

Please sign in to comment.