Conversation
Introduce TikTak feature: add TikTakHandler command (/tiktak, /tt) and responses, register the handler in sending_videos exports and subscribed permission factory, and add ClipType.TIKTAK enum. Implement TikTakProcessor to probe videos, read per-episode detection JSONs, compute person-centered 9:16 crop trajectories, and run ffmpeg (NVENC then libx264 fallback) to produce vertical clips. Persist TikTak outputs as the last clip and log success. Also add TIKTAK_DETECTION_DIR setting to configure detection file location.
Enrich EPISODE semantic search results with clip start/end times so UI can show a short preview. Added SemanticSegmentsFinder.fetch_first_dialogue_times to query Elasticsearch for the earliest start_time per episode (using a per-episode agg + top_hits). SemanticSearchHandler now calls that helper for EPISODE mode, sets SegmentKeys.START_TIME and END_TIME (END_TIME = START_TIME + SENSODCINEK_PREVIEW_DURATION_SEC), and then persists the enriched segments. The episode response formatter was updated to display a "klip od M:SS" snippet when start time is available. Also added SENSODCINEK_PREVIEW_DURATION_SEC (default 30s) to settings and adjusted imports accordingly.
Replace dual-path NVENC/software encoding logic with a single, configurable FFmpeg pipeline. Introduces codec-related constants (_CODEC, _PRESET, _CRF, _PROFILE, _LEVEL, _PIX_FMT), adjusts the crop filter (removed eval=frame), and builds one ffmpeg command with explicit video profile/level/pix_fmt options. On failure the process now raises an FFMpegException with the ffmpeg stderr snippet instead of attempting fallbacks or per-codec logging. This simplifies processing, reduces dependency on NVENC, and produces a consistent output format.
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.
Description
Testing
Remember to run the tests when your changes are ready. Workflows can be started from here. Use your branch.
Also, deploy and tests will automatically begin upon PR approval.