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

Demo output not getting created in demo/demo_vis #32

Open
adityagupta-9900 opened this issue Sep 21, 2021 · 1 comment
Open

Demo output not getting created in demo/demo_vis #32

adityagupta-9900 opened this issue Sep 21, 2021 · 1 comment

Comments

@adityagupta-9900
Copy link

adityagupta-9900 commented Sep 21, 2021

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
Copy link

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

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