Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenerateVideoThumbnail failed #8814

Closed
tastytea opened this issue Jun 11, 2022 · 4 comments · Fixed by #8820 or #8825
Closed

GenerateVideoThumbnail failed #8814

tastytea opened this issue Jun 11, 2022 · 4 comments · Fixed by #8820 or #8825
Labels
⚠️bug? This might be a bug

Comments

@tastytea
Copy link

💡 Summary

Video thumbnails are not generated since upgrading to 12.111.0. It worked with 12.110.1 after applying #8696.

🥰 Expected Behavior

Video thumbnails are generated.

🤬 Actual Behavior

Video thumbnails are not generated. I get this in the log:

INFO 1  [drive register]        {"size":11388127,"md5":"ca3a79307344819607654b1ba7d6eb62","type":{"mime":"video/mp4","ext":"mp4"},"warnings":[]}
WARN 1  [drive register]        GenerateVideoThumbnail failed: Error: Unsupported input '498' of type number
DONE 1  [drive register]        drive file has been created 91dwpocd5l

This is the answer from the API:

{
	"id": "91dwwbi765",
	"createdAt": "2022-06-11T20:46:15.103Z",
	"name": "file.mp4",
	"type": "video/mp4",
	"md5": "ca3a79307344819607654b1ba7d6eb62",
	"size": 11388127,
	"isSensitive": false,
	"blurhash": null,
	"properties": {},
	"url": "https://very.tastytea.de/files/de0cac52-e843-423c-aa7d-83c3a4e6a2e4",
	"thumbnailUrl": null,
	"comment": null,
	"folderId": null,
	"folder": null,
	"userId": null,
	"user": null
}

📝 Steps to Reproduce

  1. Upload video
  2. No thumbnail

📌 Environment

Misskey version: 12.111.0
Your OS: Gentoo Linux
Your browser: Firefox 91.10.0esr

@tastytea tastytea added the ⚠️bug? This might be a bug label Jun 11, 2022
@tastytea
Copy link
Author

The patch in #8820 fixed that error, but now i get “Input file contains unsupported image format”. I also tested it with a video/mp4. I'm pretty sure these videos created with SimpleScreenRecorder worked before, although i can't find proof at the moment. ffmpeg -i test.mp4 -frames:v 1 thumbnail.jpeg works with the file.

INFO 1  [drive register]        {"size":52443,"md5":"2bac934d1fb15522facb5ffb4691114c","type":{"mime":"video/webm","ext":"webm"},"warnings":[]}
WARN 1  [drive register]        GenerateVideoThumbnail failed: Error: Input file contains unsupported image format
DONE 1  [drive register]        drive file has been created 91f0ea0r35

test file: https://user-images.githubusercontent.com/3681516/173239960-1720cf37-abd5-48bb-b873-903192f49fbb.mp4

@mei23
Copy link
Contributor

mei23 commented Jun 12, 2022

Perhaps temp filename must have a .png extension.

@tastytea
Copy link
Author

Thanks, the patch in #8825 works for me. 💖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants