BUG: Replacing a video at the same path retains stale AI analysis
I maintainer di solito rispondono entro 3 giorni
@swastiksharma45 ci sta già lavorando.
Dal 21/11/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
No files are named; start from the folder-sync path that upserts video records by filesystem path, then trace how processing flags, keyframes, frame embeddings, tags and face data are keyed to the video id. Reproduce by adding a video, letting processing finish, replacing the file at the same path and triggering sync. Done means the replacement is reset to unprocessed, stale analysis is cleared or regenerated, the thumbnail refreshes, and a regression test covers same-path replacement.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
What happened?
When an existing video is replaced with different content at the same filesystem path, PictoPy may retain AI-generated metadata and processing state associated with the original video.
The synchronization logic appears to update the existing database record without fully invalidating the old video analysis. As a result, the replacement video may retain old keyframes, embeddings, tags, face-related data, or processing flags, potentially preventing the new content from being processed correctly.
Steps to Reproduce
- Add a video to PictoPy.
- Allow video keyframe extraction and AI processing to complete.
- Record the existing video's AI tags and processing state.
- Replace the video file with a completely different video while keeping the same filename and filesystem path.
- Trigger folder synchronization.
- Inspect the updated video record, keyframes, embeddings, tags, and processing state.
- Verify whether the replacement video receives fresh AI processing.
Expected Behavior
When PictoPy detects that video content has changed:
- Previous content-dependent AI analysis should not remain associated with the replacement video.
- Relevant processing flags should be reset.
- Old keyframes and frame embeddings should be invalidated or regenerated.
- Old video tags and semantic metadata should be cleared or updated.
- Face-related analysis should be refreshed where applicable.
- The replacement video should be scheduled for fresh AI processing.
- The generated thumbnail should represent the replacement content.
Actual Behavior
The database upsert appears to preserve the existing video identity and processing state when a video with the same path already exists.
If the previous video has already been tagged or processed, its existing processing flags and associated AI data may remain after the content is replaced.
This may prevent the replacement video from entering normal processing queues while old keyframes, tags, embeddings, or other analysis remain associated with the existing video record.
Consequently, video gallery metadata and AI-powered search may continue to reflect the previous content rather than the replacement video.
Impact
- Stale AI tags may remain attached to replaced videos.
- Keyframes may represent the previous video.
- Frame embeddings may represent outdated content.
- Semantic search may return results based on the original video.
- Face-related video analysis may be stale.
- Replacement videos may be skipped by processing queues if their old flags indicate that processing is complete.
Suggested Fix
When a same-path video replacement is detected:
- Invalidate content-dependent AI analysis.
- Reset video processing flags so the replacement is reprocessed.
- Remove or regenerate old keyframes and their associated embeddings.
- Clear or regenerate old video tags and semantic metadata.
- Refresh face-related analysis where applicable.
- Regenerate the thumbnail.
- Add regression tests for replacing a previously processed video with different content at the same path.
Record
- I agree to follow this project's Code of Conduct
- Lingua principale
- Python
- Stelle
- 322
- Fork
- 793
- Merge medio
- 6g 10h
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/PictoPy
-
bug enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
AOSSIE-Org/PictoPy#1802 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: XMP metadata export permanently overwrites file modification timestamp (mtime), destroying photo datesForse già presa @swastiksharma45 l’ha presa 2 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1788 · 6 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
AOSSIE-Org/PictoPy#1786 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)Forse già presa @omkar-suryavanshi l’ha presa 3 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/PictoPy#1780 · 5 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workForse già presa @ManyaJain111 l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/PictoPy#1779 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di AOSSIE-Org/PictoPy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Forse già presa @cestercian l’ha presa oggi. Apertacomp/cli P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NousResearch/hermes-agent#162259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[request] gRpc/1.86.0Apertaupstream update
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
conan-io/conan-center-index#31597 ·
I maintainer di solito rispondono entro 1 giorno
-
community-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-NeMo/Run#727 ·
I maintainer di solito rispondono entro 1 giorno
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
pytorch/pytorch#207247 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno