Skip to content

ffmpeg-hud.py fails to start, invalid syntax. #38

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

Closed
bwookieeeee opened this issue Mar 14, 2019 · 6 comments
Closed

ffmpeg-hud.py fails to start, invalid syntax. #38

bwookieeeee opened this issue Mar 14, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@bwookieeeee
Copy link
Collaborator

bwookieeeee commented Mar 14, 2019

using ffmpeg-hud.py spits out the following traceback

    File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
        self.run()
    File "/usr/lib/python2.7/threading.py", line 754, in run
        self.__target(*self.__args, **self.__kwargs)
    File "/home/pi/letsrobot/video/ffmpeg-hud.py", line 90, in startVideoCapture
        HUD = drawBaseHud()
    File "/home/pi/letsrobot/video/ffmpeg-hud.py", line 163, in drawBaseHUD
        image = Image.new("RGBA", (x_rex, y_res), color = (0,0,0,0))
    File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2063, in new
        return Image().__new(core.fill(mode, size, color))
TypeError: an integer is required```
@bwookieeeee bwookieeeee added the bug Something isn't working label Mar 14, 2019
@Nocturnal42
Copy link
Collaborator

That’s new. I’m assuming this is on a Pi. Is it a fresh install or an old image? Is this a newly created robot or an old one?

@bwookieeeee
Copy link
Collaborator Author

bwookieeeee commented Mar 15, 2019

LED bot with a fresh image. Pre-reqs are installed. I've confirmed with other people as well that ffmpeg-hud.py doesn't work for them either.

@Nocturnal42
Copy link
Collaborator

Have you set a resolution for LED bot through the site, or just left the default?

@bwookieeeee
Copy link
Collaborator Author

It's set on the site.

@Nocturnal42
Copy link
Collaborator

That rules out pretty much everything obvious. I’ll see if I can fish out a webcam and setup a test bed to take a look.

@bwookieeeee
Copy link
Collaborator Author

I can also set up LED bot on RSSH if you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants