Skip to content

fix: auto-fallback to visual description for videos without audio#12

Merged
Mapleeeeeeeeeee merged 2 commits into
mainfrom
fix/no-audio-stream-fallback
Jul 3, 2026
Merged

fix: auto-fallback to visual description for videos without audio#12
Mapleeeeeeeeeee merged 2 commits into
mainfrom
fix/no-audio-stream-fallback

Conversation

@Mapleeeeeeeeeee

Copy link
Copy Markdown
Owner

Summary

  • X/Twitter 的某些影片只有 video stream 沒有 audio stream,ffmpeg 提取音訊時 crash
  • 新增 has_audio 偵測(yt-dlp info dict + ffprobe 兩條路徑)
  • Pipeline 偵測到無音軌時自動切換成 visual description 模式,而非 crash

Test plan

🤖 Generated with Claude Code

Mapleeeeeeeeeee and others added 2 commits May 4, 2026 10:26
Videos from X/Twitter sometimes have no audio stream, causing ffmpeg to
crash with "Output file does not contain any stream" during audio
extraction. Detect audio presence in metadata and auto-switch to visual
description mode when no audio is found.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…allback

# Conflicts:
#	src/bilingualsub/core/downloader.py
@Mapleeeeeeeeeee Mapleeeeeeeeeee merged commit 09ecefe into main Jul 3, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant