amazon-science / siam-mot

SiamMOT: Siamese Multi-Object Tracking
Apache License 2.0
478 stars 61 forks source link

Demo output not getting created in demo/demo_vis #32

Open adityagupta-9900 opened 3 years ago

adityagupta-9900 commented 3 years ago

Getting the following error when "python3 demos/demo.py --demo-video data/person_car.mp4 --track-class person --dump-video True" is ran, "Unrecognized option 'crf'. Error splitting the argument list: Option not found" Also the output files are not getting created in demos/demos_vis

Screenshot from 2021-09-21 23-43-27

We also tried uninstalling and installing again ffmpeg package. It doesn't work

YaoMufeng commented 3 years ago

you can comment these lines in function "close_video_writer" in siam-mot/demos/utils/vis_writer.py

just like this ` def close_video_writer(self): assert (self._video_writer is not None) self._video_writer.release()

    # compress the videos
    '''
    comp_video_path = self._video_path.replace(".mp4", "_comp.mp4")
    subprocess.run(["ffmpeg", "-i",
                    str(self._video_path),
                    "-vcodec", "libx264",
                    "-crf", "26",
                    str(comp_video_path)])
    subprocess.run(["rm", str(self._video_path)])
    subprocess.run(["mv", str(comp_video_path), self._video_path])
    '''

`

after commenting these lines, I see the results