Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

No JPEG data found in image #2

Open
Jacobsolawetz opened this issue Sep 15, 2021 · 2 comments
Open

No JPEG data found in image #2

Jacobsolawetz opened this issue Sep 15, 2021 · 2 comments

Comments

@Jacobsolawetz
Copy link
Contributor

Full error

[mjpeg @ 0x7f9713809400] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished

If you get this error, you probably tried to infer against a model URL that doesn't exist.

We should surface this and not let the script try to compile the inference video without output frames

@kevinlinvxd
Copy link

kevinlinvxd commented Dec 1, 2022

I encountered this issue - for anyone that might be having this in the future:

As stated above, the script is inferring against a URL that doesn't exist.

  • First thing to change is the set the host to https://detect.roboflow.com (this seems to be the replacement to infer. You can change the default, or set --host)

  • Then, Search for "access_token" and change this to say "api_key' instead, to reflect the new parameter name

@jkitching
Copy link

I was getting the same error due to the detect.roboflow.com API returning slightly different error messages than those being checked in infer.sh, which I've fixed in PR #4.

Might be worth adding a sanity check to ensure the returned data is actually a JPEG on the first API call.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants