feat(library): video and image media entries + Library Video tab#23
Merged
Conversation
Adds first-class video/image support to the disk-backed library, the
foundation for the VJ video library (cue persistence + overlays).
Backend:
- backend/modules/library/media.py: ffprobe/Pillow probing for
dimensions, duration, and alpha (overlay-capable detection), plus
poster-thumbnail rendering. Degrades gracefully when ffmpeg/ffprobe
are absent (import still succeeds, no thumbnail).
- store: LibraryRecord carries kind/media_url/thumb_url/width/height/
has_alpha; import_media() stores the original untouched, probes it,
and renders thumb.jpg. list_entries(kinds=...) filters by kind.
- router: GET /entries?kind=audio|video|image|media|all (default audio,
so the audio library is unchanged), POST /import-media, GET /media/{id}
(Range-capable), GET /media/{id}/thumb.
- 11 new tests (real PIL + ffmpeg fixtures); existing library suite green.
Frontend:
- LibraryEntry gains kind/mediaUrl/thumbUrl/width/height/hasAlpha.
- lib/mediaLibrary.ts: typed list/import/delete client for the media
endpoints, kept separate from the audio StorageProvider abstraction.
- LibraryView: a Video sub-tab with a thumbnail grid (poster, duration,
Alpha badge), multi-file Import button, drag-out with a stable URL,
and remove. Audio tabs are untouched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds first-class video/image support to the disk-backed library, the foundation for the VJ video library (cue persistence + overlays).
Backend:
Frontend: