video-inference
video-inference copied to clipboard
No JPEG data found in image
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
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
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 https://github.com/roboflow/video-inference/pull/4.
Might be worth adding a sanity check to ensure the returned data is actually a JPEG on the first API call.