mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
task "convert" takes a very long time to sort through the already encoded files #2039
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#2039
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EuPhobos on GitHub (Mar 2, 2024).
For example in start i have no problem, but now i have lots of video files, and even if only one video has been added to the library. the "convert" command lasted forever, for some reason, photoprism goes through the already converted videos, up to 10 seconds pass from video to video, after which it writes in the log "does not require transcoding" and moves on to the next one, throughout the already transcoded library, several tens of hours pass until it finds a new single added file.
1. What is not working as documented?
All work, but very slow.
2. How can we reproduce it?
Steps to reproduce the behavior:
3. What behavior do you expect?
Indexing of images takes place instantly, photoprism already knows which ones have been added and which ones are new. The same behavior would be ideal for videos.
4. What could be the cause of your problem?
I think there is no record of which video has already been transcoded and which is new.
5. Can you provide us with example files for testing, error logs, or screenshots?
6. Which software versions do you use?
Build [231128-f48ff16ef] AMD64
11.2.2-MariaDB
Linux Debian 12
7. On what kind of device is PhotoPrism installed?
Intel(R) Pentium(R) Silver N6005 @ 2.00GHz
16Gb RAM
Photoprism and MariaDB: SSD M.2-NVMe
Media library: HDD 7200 rpm
All in 1 machine
8. Do you use a Reverse Proxy, Firewall, VPN, or CDN?
Yes nginx as proxy, but he does not participate in transcoding problem.
@andrewlow commented on GitHub (Mar 22, 2024):
I was hitting exactly this problem myself just today - and searched for a matching issue :)
You can get help from the convert command
It would be wonderful to add an additional filter command. I would suggest
--sinceIdeally the
sinceflag would take input in easy to input human terms--since 7dwould calculate todays date, minus 7 days, and then exclude any movie file in the library which was older than that.It would still require that the library be scanned entirely, but would likely speed up the checking if there is an existing encoding or not. (I'm guessing.. )
For very large libraries (100,000 files) - you still need to scan each of those, and determine if they are a movie file - then do a date check.
However, right now - for each of those movie files - the system needs to probe to see if there is an optimized version of that file.
It should be much faster to scan every file - ignoring any older than the date.
Then check to see if it is a movie file
Then if there is an optimized version.
@EuPhobos commented on GitHub (May 5, 2024):
Maybe I don't understand something. But at the moment I have 30k files from the bottom 4000 videos. And at the moment, it is no longer possible to use the photo album.
For example, when adding another 5 new video files, it should take a day before I can share new videos, because convert starts going through all 4000 files in search of new videos to convert.
And the strangest thing is, why does it take about 10 seconds from file to file to understand that the video does not need to be converted? What exactly does photoprism do at the same time, where does it take so much time?
Why not just run convert on new video files when indexing? After all, indexing works correctly.