video-inference icon indicating copy to clipboard operation
video-inference copied to clipboard

No JPEG data found in image

Open Jacobsolawetz opened this issue 3 years ago • 2 comments

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

Jacobsolawetz avatar Sep 15 '21 00:09 Jacobsolawetz

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

kevinlinvxd avatar Dec 01 '22 04:12 kevinlinvxd

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.

jkitching avatar Aug 14 '23 13:08 jkitching