Repository navigation
Conversation
|
Thanks @Rasmus257 — this is in the community fork frinsen/claude-video as of v0.3.0: adapted in part — the crash when yt-dlp hands back only the mp3 is fixed (the run finishes transcript-only with a clear Frames line). The gallery-dl slideshow support is deferred, listed in the CHANGELOG as a candidate. You're credited in AUTHORS.md, and the whole set is offered back here in #237. |
Verohomie
added a commit
to Verohomie/claude-video
that referenced
this pull request
Sep 25, 2026
Two independent fixes, together because both touch frames.py and watch.py in the same places and splitting them would mean staging half-edited files. WATCH_MAX_FPS. The 2 fps ceiling was a module constant, so a sub-second or fast-action clip yielded one or two frames of the moment that mattered with no way to ask for more. It now resolves through get_config() exactly like WATCH_DETAIL and WATCH_QUALITY: environment first, then ~/.config/watch/.env, then the default, with an unusable value falling back rather than raising -- a typo must not take down a run that already paid for a download. Deliberately not the upstream shape, which read os.environ once at import and so was the one setting that could not live in the config file. Rejecting non-finite values is not hypothetical tidiness: "1e400" parses to infinity and compares greater than zero, which would have left --fps unclamped entirely. A test caught it. --fps above the ceiling now says so and names the setting, instead of being silently reduced. Audio-only sources. get_metadata reported has_audio but never has_video, so a local .mp3 at default detail reached the extractors and died on a raw "ffmpeg scene extraction failed" -- after the download had been paid for. test_the_extractors_really_do_fail_on_audio pins that as the counterfactual. watch.py now detects it, says so once, and continues transcript-only. The audio still goes to Whisper: clearing video_path skips the frame engines, so the transcription call takes a separate audio_source. Getting that wrong would have turned a crash into a silently empty transcript, which is worse. Cover art is handled: ffprobe reports an MP3's embedded JPEG as a video stream, so presence alone is not enough -- the attached_pic disposition and a single-frame count both rule it out. Verified end to end: a 6s tone file exits 0 with "0 selected" and no bogus Resolution line. Issue bradautomates#37 for the ceiling; from PR bradautomates#220 by @Rasmus257 for the audio-only half. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…jects /photo/ URLs and returns only the soundtrack for /video/ ones, which crashed frame extraction
Rasmus257
force-pushed
the
feat/tiktok-slideshows
branch
from
November 10, 2026 15:49
64edc2d to
eec9da0
Compare
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.
Why
/watchcan't read TikTok photo slideshows, and the slides are the whole content of those posts. yt-dlp rejects/photo/URLs asUnsupported URL. On/video/URLs it downloads only the soundtrack mp3, and frame extraction then crashes withffmpeg scene extraction failed: Input #0, mp3.What changed
download.pyfalls back togallery-dlif it's on PATH. It returns the slide images, soundtrack and caption, or the video file for posts yt-dlp couldn't fetch. It's optional: without gallery-dl, behavior matches today apart from the crash fix below.slide N, with the post caption as Title. A 9-slide post is about 4k image tokens at the default width.mainand pass here; the full suite passes (80). Also checked by hand on real slideshow and video URLs, with and without yt-dlp browser impersonation.