vitrivr / cineast

Cineast is a multi-feature content-based mulitmedia retrieval engine. It is capable of retrieving images, audio- and video sequences as well as 3d models based on edge or color sketches, textual descriptions and example objects.
MIT License
56 stars 51 forks source link

Could not find appropriate writer for thumbnail "…", attempting conversion. #388

Open Lanceeeelot opened 3 months ago

Lanceeeelot commented 3 months ago

My extraction config currently has the default setup (except paths) after switching to a new more powerful linux PC. Now Cineast CLI always displays that "ShotThumbnailsExporter" warning mentioned in the title. Other than that, the extraction works normally.

sauterl commented 3 months ago

Do you get a follow-up error with Could not find appropriate writer for thumbnail "...", even after conversion! ?

If not, then you are somewhat fine, as apparently (based on your context) the default format for thumbnails does not work anymore on this specific JDK / OS / hardware configuration. The default should be JPG, but may you changed something somewhere. For further information on the issue, see ImageIO.write for OpenJDK 21.

If so, then you are somewhat restricted, as no thumbnails have been created.

See https://github.com/vitrivr/cineast/blob/main/cineast-core/src/main/java/org/vitrivr/cineast/core/features/exporter/ShotThumbnailsExporter.java#L85

In such cases, it would be very helpful to have the following information:

Lanceeeelot commented 3 months ago

Thankfully i don’t get a follow-up error. All the thumbnails were generated and Vitrivr-NG is able to find them. I’m using OpenJDK Version 21.0.3, Ubuntu 24.04 LTS and the latest Cineast version from the main branch.

I noticed a comment in your linked script that says that the thumbnail output format defaults to PNG. All my generated Thumbnails are JPG though, like you said.

See https://github.com/vitrivr/cineast/blob/main/cineast-core/src/main/java/org/vitrivr/cineast/core/features/exporter/ShotThumbnailsExporter.java#L32

I also didn’t change anything in the extraction_config regarding the exporter settings:

"exporters":[
     {
         "name": "ShotThumbnailsExporter",
         "properties": {
             "destination":"thumbnails/"
         }
     }
    ],