stash icon indicating copy to clipboard operation
stash copied to clipboard

[Bug Report] gif thumbnail requests return empty 200 responses, resulting broken gif thumbnails

Open waffle2028 opened this issue 2 years ago • 3 comments

Describe the bug Gif thumbnails requests return empty 200 responses, with no error log from Stash, resulting broken gif thumbnails. Downgrading ffmpeg from 6.0 to 5.1.2 fixed the issue - thumbnails are showing up. However, stderr: pipe:: I/O error errors are occuring instead.

To Reproduce Steps to reproduce the behavior:

  1. Install ffmpeg 6.0 (which is installed by stash-win.exe)
  2. Add a new gif by scanning it
  3. Browse the newly added gif's thumbnail. It should be broken.
  4. Downgrade ffmpeg to 5.1.2
  5. Browse the newly added gif's thumbnail after clearing browser cache. It should be shown.
  6. Go to Settings > Logs. There should be error logs regarding to the gif file like this
ERORR     stderr: pipe:: I/O error
ERROR     error generating thumbnail for [FULL_FILEPATH].gif: error running ffmpeg command <-hide_banner -v error -y -i - -vf

Expected behavior

  • When using ffmpeg 6.0: The newly added gif's thumbnail should be visible
  • When using ffmpeg 5.1.2: There should be no stderr: pipe:: I/O error log message

Stash Version v0.22.1

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome 116.0.5845.188

Additional context

  • Found the cause by generating thumbnails for images. The generated jpg file size was 0 kB.
  • It seems the thumbnail after downgrading ffmpeg to 5.1.2 is the original gif

waffle2028 avatar Sep 17 '23 17:09 waffle2028

I get the following:

error generating thumbnail for (file location): error running ffmpeg command <-hide_banner -v error -y -i - -vf scale=640:640:force_original_aspect_ratio=decrease -c:v mjpeg -frames:v 1 -q:v 5 -f image2pipe - -f mjpeg>: exit status 0xbebbb1b7

UrTerrible avatar Jun 27 '24 02:06 UrTerrible

I noticed a similar error when generating thumbnails for video files that will show up in the image sections. I get the following error: error generating thumbnail for /data/folder/video.mov: error running ffmpeg command <-hide_banner -v error -y -i - -vf scale=640:640:force_original_aspect_ratio=decrease -c:v mjpeg -frames:v 1 -q:v 5 -f image2pipe - -f mjpeg>: exit status 1

Is this error related to this ticket?

StarryExplorer89 avatar Jul 13 '24 10:07 StarryExplorer89