Unknown encoder 'webp' error from filter-media video thumbnail generation

14 views
Skip to first unread message

alex buckley

unread,
Sep 17, 2025, 12:20:04 AM (5 days ago) Sep 17
to DSpace Technical Support
Hi DSpace community,

We have a partner library running DSpace 7.6.3 on a RedHat server.

Now the backend DSpace server has ImageMagick installed, and we are able to successfully manually test ImageMagick webp conversion.

However, when we manually run the filter-media script on an item the video thumbnail generation fails with  org.im4java.core.CommandException: Unknown encoder 'webp' - see below output:

---

[dspace]# bin/dspace filter-media -v -i '10292/19016'
The script has started
The following MediaFilters are enabled:
Full Filter Name: org.dspace.app.mediafilter.ImageMagickVideoThumbnailFilter
org.dspace.app.mediafilter.ImageMagickVideoThumbnailFilter
PROCESSING: bitstream XXX (item: 10292/19016)
File: Black and Pink Minimalist Welcome To My Channel YouTube Video (1).mp4.jpg
IM Thumbnail Param: -auto-orient VIDEO:/tmp/imthumb8300761135230282362.tmp[100] -thumbnail 257x350 /tmp/imthumb8300761135230282362.tmp.jpg
ERROR filtering, skipping bitstream:
Item Handle: 10292/19016 Bundle Name: ORIGINAL File Size: 460491 Checksum: XXX (MD5) Asset Store: 0 Internal ID: XXX
org.im4java.core.CommandException: Unknown encoder 'webp'
Caused by: org.im4java.core.CommandException Unknown encoder 'webp'
The script has completed
[dspace]#

---


Has anyone else in the DSpace community encountered this error before and if so how did you approach fixing it?

Thanks,
Alex

Abel Gómez

unread,
Sep 17, 2025, 7:19:47 AM (5 days ago) Sep 17
to dspac...@googlegroups.com

Hi Alex,

do you mind sharing the problematic file with me? (I'm the one who contributed the ImageMagickVideoThumbnailFilter).

Cheers,

Abel

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/2638f0a3-8f18-427f-9fe3-2e76603d0412n%40googlegroups.com.
-- 
Abel Gómez Llana, PhD

ab...@gomez.llana.me
https://abel.gomez.llana.me

alex buckley

unread,
Sep 18, 2025, 8:50:38 PM (3 days ago) Sep 18
to DSpace Technical Support
Many thanks for your reply Abel!

I've got a different example we can use and the file itself can be fetched from https://openrepositorydev.aut.ac.nz/bitstreams/9f8c8a76-9675-4ca4-9f54-86043d021a27/download

bin/dspace filter-media -v -i '10292/18369'

The script has started
The following MediaFilters are enabled:
Full Filter Name: org.dspace.app.mediafilter.JPEGFilter
org.dspace.app.mediafilter.JPEGFilter
Full Filter Name: org.dspace.app.mediafilter.TikaTextExtractionFilter
org.dspace.app.mediafilter.TikaTextExtractionFilter

Full Filter Name: org.dspace.app.mediafilter.ImageMagickVideoThumbnailFilter
org.dspace.app.mediafilter.ImageMagickVideoThumbnailFilter
Full Filter Name: org.dspace.app.mediafilter.PDFBoxThumbnail
org.dspace.app.mediafilter.PDFBoxThumbnail
PROCESSING: bitstream XXX (item: 10292/18369)
File: TAKE THE TIME -  New Zealand Tourism For All.mp4.jpg
IM Thumbnail Param: -auto-orient VIDEO:/tmp/imthumb5373020262128477920.tmp[100] -thumbnail 275x350 /tmp/imthumb5373020262128477920.tmp.jpg
ERROR filtering, skipping bitstream:
Item Handle: 10292/18369 Bundle Name: ORIGINAL File Size: 54520644 Checksum: XXX (MD5) Asset Store: 0 Internal ID: XXXX

org.im4java.core.CommandException: Unknown encoder 'webp'
Caused by:  org.im4java.core.CommandException Unknown encoder 'webp'
The script has completed


But it is not just this video bitstream that the video thumbnail won't generate for, it is any mp4 bitstream.
Reply all
Reply to author
Forward
0 new messages