All work

Tessact · Case study

From a long broadcast to postable news clips.

At Tessact, I built a seven-stage asynchronous news pipeline that turns long-form broadcasts into standalone vertical clips with their own thumbnails, captions, and metadata. It connects transcription, editorial analysis, computer vision, and rendering while keeping producers in control of the final output.

Role
Software Engineer Intern
Context
February–May 2026 · Bengaluru

The problem: the same editing loop, every broadcast

A producer scrubs a 45-minute recording for strong moments, crops each one to vertical, writes captions, chooses a thumbnail, and exports several deliverables. The next broadcast starts the same loop again. I built the news pipeline to assist with that work while keeping human review possible where it mattered.

A landscape news broadcast branches through filmstrips into three vertical clips, each with captions, a thumbnail, and metadata.
One broadcast becomes several standalone clips, each prepared for publishing.
Before
One editor, one clip: manual scrubbing, cropping, captions, and thumbnails, with extra work to package recaps or analysis.
After
One editor per story: transcript-driven selection, word-boundary cuts, vertical framing, and reusable outputs, with the producer reviewing the result.

Pipeline capabilities

  • Long-form to short-form
  • Transcript-aware selection
  • Chapter segmentation
  • Hook detection
  • Word-boundary cuts
  • Vertical reframing
  • Thumbnail generation
  • Caption styling
  • Compilation formats

My contribution

My internship focused on the news pipeline, from Python/FastAPI ingestion and Celery orchestration to transcript intelligence, computer vision, and render preparation.

  • Pipeline design: separate jobs for ingestion, transcription, analysis, vision, and rendering, with explicit handoffs.
  • Asynchronous orchestration: responsive uploads, parallel chapter analysis and per-clip work, job-state handling, retries, idempotency checks, and recovery.
  • Transcript intelligence: chaptering, completeness checks, hooks, boundary fitting, and candidate scoring over word-level transcripts.
  • Vision and rendering: containerized MediaPipe tracking on Cloud Run, stable crop tracks, and structured Remotion inputs.
  • Editorial formats and review: standalone clips and compilation modes, plus dashboard upload, progress, preview, metadata regeneration, subtitle styles, rendering, and download.

Seven stages, asynchronous by default

The Next.js dashboard sends source media and configuration to FastAPI, which returns a task ID immediately. Celery and Redis coordinate the expensive background work. The dashboard polls for stage-level progress while chapters and clips fan out into parallel work.

An uploaded news video receives a task acknowledgment, then a queue branches into background media jobs and finished portrait clips.
Upload acknowledgment is separate from queued media work and collected clip outputs. The seven stages below describe the execution flow.
  1. Upload. Accept the source and dispatch a background job.
  2. Transcribe. Normalize media, remove long pauses, extract audio, and produce a word-level transcript.
  3. LLM analysis. Segment stories, reject incomplete material, find hooks, and rank candidates.
  4. Clip preparation. Fit cuts to word boundaries and prepare per-clip artifacts.
  5. Face tracking. Detect the speaker and generate smoothed focal points for vertical framing.
  6. Render. Feed source media, captions, tracking, and style into Remotion compositions.
  7. Output assembly. Wait for renders to resolve and collect the finished deliverables.

Each stage has its own status and failure handling. The ingest, analysis, vision, and render layers can evolve without rewriting the whole flow.

Ingestion: consistent media, consistent timing

Every later stage depends on the ingest contract. FFmpeg normalizes the source to H.264/AAC, strips long silences, and extracts clean audio. Local Whisper produces word-level timing, which is handed to transcript analysis. Cuts, captions, and tracking use the timeline of the processed source.

The dashboard reports transcoding, pause removal, audio extraction, transcription, transcript analysis, and clip rendering as discrete states, so a long job is more than an opaque loading indicator.

Transcript intelligence: a hook needs a complete story

An exciting sentence is not always a standalone clip. Instead of one giant prompt, the pipeline runs narrow passes with structured outputs and explicit failure handling. Weak or incomplete candidates are filtered before expensive media work.

A selected news chapter highlights a continuous audio passage and matching word tokens, with cut markers aligned to token edges and a resulting clip preview.
Choose a coherent story, then fit the clip to the transcript's word boundaries.
  1. Chapter split: divide the timestamped transcript into news stories.
  2. Completeness check: drop setup-only or ending-only chapters.
  3. Hook detection: identify a strong opening within each eligible chapter.
  4. Boundary fitting: snap proposed starts and ends to nearby word boundaries with safe padding.
  5. Candidate scoring: rank hook strength, context, story arc, ending, and publishability.

For example, a proposed cut at 0:14.21–0:18.40 can be adjusted to word edges at 0:14.07–0:18.62. This is an illustrative timing example: the transcript supplies deterministic boundaries instead of relying on an LLM timestamp alone.

Vertical framing: news is more than a talking head

News frames mix anchors, B-roll, split screens, lower-thirds, tickers, and transitions. The vision work explored face, person, motion, and scene signals to choose useful framing. MediaPipe with heuristic boundary detection gave the best balance of speed and accuracy in my experiments.

I containerized the face-tracking service on Cloud Run. It extracts per-frame horizontal focal points for Remotion. Median smoothing, a dead zone, and a step limiter reduce jitter so the crop follows the speaker without constantly jumping.

Three landscape-to-portrait layout cases: anchor and B-roll side by side become stacked panels; an anchor-only frame becomes an anchor crop; a B-roll-only frame becomes a B-roll crop.
Layout exploration, recreated from my original sketch: preserve both anchor and B-roll when they share a frame, and use a single crop for anchor-only or B-roll-only scenes. The full stacked anchor/B-roll layout was paused pending accuracy improvements; this illustration shows the intended behavior.

What shipped: two visual output formats

A focus rectangle selects the anchor from a wide news frame; beside it, one portrait output follows the speaker and another presents a city image in a news template.
The two shipped formats: a speaker-focused vertical crop and an image-led news template.
Speaker focus
MediaPipe face tracking drives a vertical crop that follows the anchor.
Standard layout
SerpAPI supplies a relevant image for a branded Remotion news template.

Both formats use channel branding, generated titles and captions, LLM scoring, and asynchronous rendering through Celery. Complex anchor/B-roll boundaries remained an open accuracy problem at the end of the internship.

Experiments that shaped the implementation

For Hindi and English news hook detection, I compared Sarvam AI, Claude, OpenAI, and Gemini. Gemini offered the best accuracy and reliability in those trials and became the chosen model. That was a decision for this pipeline and its material, rather than a general model benchmark.

For reframing, YOLO was too compute-heavy in my tests, an open-source tracker was unreliable, and a Google AutoFlip approach was dropped. Vision-model bounding boxes lacked accuracy, masking tickers with EAST did not improve results, and SAM 3 addressed object segmentation rather than the layout-zone problem. MediaPipe plus heuristics was the practical choice, with edge cases still requiring work.

Editorial formats: one pipeline, several lenses

Standalone clipping is the default. The same transcript, selection, and rendering primitives also support recap, political, and analysis compilation modes. These change the editorial question: which clips belong to a developing story, what sequence provides context, and what is a factual update, reaction, or analysis.

These editorial modes are separate from the two visual layouts. Producers can review clip previews, regenerate metadata, choose subtitle styles, trigger the final render, and download the output.

A producer approves a vertical news clip surrounded by thumbnail choices, metadata, subtitle-style samples, and an export control.
Producers review the clip, choose its presentation, and approve the final output.

Render-ready manifests and reusable artifacts

The worker writes structured Remotion props per clip: source URL, duration, timed captions, tracking data, frame features, and subtitle style. Rendering consumes that contract instead of repeating transcript analysis or vision work.

Pre-cut clips, vertical variants, word timings, crop tracks, thumbnails, and metadata are stored as discrete artifacts. Previews and final renders reuse completed work, and the same source can produce several deliverables.

Reliability: the work between stages matters

  • Stage-level progress: human-readable state and errors make stalled jobs easier to locate.
  • Retryable work: scoped stages, idempotency checks, and recovery keep a failure from invalidating the entire run.
  • Parallel analysis: chapters fan out instead of forcing every story through one serial pass.
  • AI-output safeguards: malformed JSON is handled through fallback parsing and retries, with structural filters and score thresholds.
  • Length safeguards: cap very long candidates and skip very short ones before rendering.
  • Render completion: output assembly polls until all render outputs resolve, preventing the pipeline from finishing ahead of its renders.
  • Artifact lifecycle: reuse completed outputs and clean up extracted audio, transcoded intermediates, and temporary render props after processing.

Outcome and lessons

I delivered a foundation for turning long broadcasts into short-form news assets, with two visual output formats and a producer review workflow. Transcription, LLM reasoning, computer vision, and rendering run as observable, replaceable stages, while producers retain control of metadata, style, and the final render.

The biggest lesson was how much of an AI media pipeline is systems engineering: cold-start latency, container image size, cross-service job polling, malformed responses, tracking stability, and waiting for every render to finish. Improved split-screen accuracy, tighter clip durations and hooks, more visual variety, and live-stream integration remained future work.

Privacy and scope

This case study is sanitized for the portfolio. It omits company code, proprietary prompts and scoring logic, internal repository paths, customer identifiers, credentials, and deployment topology. Source media and generated artifacts use controlled storage in production. The focus here is the architecture and engineering patterns; no measured throughput or time-saving figures are claimed.

Technologies & references

  • Python
  • FastAPI
  • Celery
  • Redis
  • Docker
  • Google Cloud Run
  • Whisper
  • OpenCV
  • MediaPipe
  • Gemini
  • FFmpeg
  • Remotion
  • Next.js
  • SerpAPI

Let’s talk

Building something useful?

I’m interested in software engineering opportunities across backend systems and AI. If that sounds like your team, I’d like to hear from you.

Email me