You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importargparsefromnorfairimportVideofromnorfair.drawing.drawerimportDrawerdefrun():
parser=argparse.ArgumentParser(description="Track objects in a video.")
parser.add_argument("files", type=str, nargs="+", help="Video files to process")
args=parser.parse_args()
forpathinargs.files:
video=Video(input_path=path)
counter=0forframeinvideo:
frame=Drawer.text(frame, str(counter), (20,20))
counter+=1video.write(frame)
if__name__=="__main__":
run()
Play the output video on any player and you will see that the videos are no longer synchronized.
Also notice that the loading bar when processing the video doesn't reach 100% on any video, this indicates that some frames are being skipped.
Expected behavior
The videos should still be synchronized after processing.
Screenshots or videos
Environment (please complete the following information):
OS: macos
Python version: 3.8.18
Norfair version: master
Additional context
I transformed the videos to mp4 using ffmpeg and the problem is fixed
The text was updated successfully, but these errors were encountered:
Describe the bug
Norfair seems to be skipping frames on
.avi
videosTo Reproduce
Using this 2 videos as examples:
https://drive.google.com/file/d/10HPhUDNDbZ7tA9309-id8d2n4BX80gZb/view?usp=drive_link
https://drive.google.com/file/d/1aJh1TjPRySPerdUsTo0A8tRnbKLU7ZBm/view?usp=drive_link
and this very simple script:
Play the output video on any player and you will see that the videos are no longer synchronized.
Also notice that the loading bar when processing the video doesn't reach 100% on any video, this indicates that some frames are being skipped.
Expected behavior
The videos should still be synchronized after processing.
Screenshots or videos
Environment (please complete the following information):
Additional context
I transformed the videos to mp4 using ffmpeg and the problem is fixed
The text was updated successfully, but these errors were encountered: