• Jack

    (@jack1132132)


    Hello,

    I’ve set videopack to automaticly generate thumbnails, but unfortuanly with certain videos the thumbnail isn’t generated. The file for the thumbnail is created at 0 Byte size.

    I get the following errors from debug.log:

    [20-Jun-2022 13:04:53 UTC] PHP Notice:  getimagesize(): Error reading from /opt/bitnami/wordpress/wp-content/uploads/2022/06/asdasd-3_thumb2.jpg! in /opt/bitnami/wordpress/wp-includes/media.php on line 5189
    [20-Jun-2022 13:04:53 UTC] PHP Notice:  exif_imagetype(): Error reading from /opt/bitnami/wordpress/wp-content/uploads/2022/06/asdasd-3_thumb2.jpg! in /opt/bitnami/wordpress/wp-includes/functions.php on line 3265

    but these errors are simply because the thumbnail file is being saved with 0 Byte size.

    How can debug this?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    Does that happen consistently with the same videos? If you delete and re-upload a video do you get the same error? Could you give me a link to one of the videos you’ve had a problem with?

    Thread Starter Jack

    (@jack1132132)

    It was fixed when I set to generate 1 thumbnail from 0% of the way through the video.

    But while we’re at it, I’m trying to generate a thumbnail for uploaded images as well as videos, and I found out that if I create an attachement for the image with the post_mime_type set as ‘video/png’ videopack actually generates the thumbnail of the image and sets the watermark, but if the image is a jpg it doesn’t work which is strange.

    Plugin Author Kyle Gilman

    (@kylegilman)

    Setting it to 0% is a good idea. It’s possible FFMPEG is having trouble seeking through those videos.

    I never thought of using Videopack to add watermarks to images, which is why you have to do workarounds like changing the mime type. I think there are probably better solutions out there for images. Easy Watermark seems like a popular choice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sometimes the thumbnail isn’t generated properly!’ is closed to new replies.