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

Broken webm previews. #174

Open
nashset opened this issue Feb 17, 2025 · 4 comments
Open

Broken webm previews. #174

nashset opened this issue Feb 17, 2025 · 4 comments

Comments

@nashset
Copy link

nashset commented Feb 17, 2025

they show up in the gallery,
but upon getting the webapp to try and preview them,
it just throws an error because no video preview of them seems to be in the cache directory.

"No video with supported format and MIME type found."

could've sworn ffmpeg supported these.

tried reading the docs and messing with stuff but i think i've dumped too much time into this by now.

so thought i'd bring it up and move onto something else.

@xemle
Copy link
Owner

xemle commented Feb 17, 2025

Hi @nashset

thank you for reaching out.

Do you have original webm file which you would like to import into HomeGallery or do you customize ffmpeg to produce webm preview videos?

@nashset
Copy link
Author

nashset commented Feb 20, 2025

@xemle gallery folder has a few webm files.
the program seems to recognize them as videos, just only jpg previews only seemed to be generated.
i think i just opted to get around this issue by making a bat file (on windows btw) that uses ffmpeg to create an mp4 copy of every webm file,
then just configure the program to ignore webms altogether.

@xemle
Copy link
Owner

xemle commented Feb 21, 2025

Hi @nashset

I've checked big-buck-bunny_trailer.webm from https://www.webmfiles.org/demo-files. The current implementation lacks on identifying the video duration and skips the video convertion (due eugeneware/ffprobe#6).

I've fixed HomeGallery to handle that case and will provide soon a public fix.

Could you check if your webm files have a duration in the format section when calling it via

ffprobe -v quiet -print_format json -show_format -show_streams video.webm
{
  streams: [{
    codec_type: 'video',
    duration: 23.200,
    ...
  }]
  ...
  format: {
    duration: "23.200",
    ...
  }
}

HomeGallery will convert your video when a video stream has a duration or if there is a video stream and the format has a duration.

Would that fit to your files?

@xemle
Copy link
Owner

xemle commented Feb 22, 2025

Please @nashset test your files with the new master builds. These include fixes for webm files

To work properly you have to remove all *-ffprobe.json files from your storage directory A new full import should fix your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants