Skip to content

docs: add copy-pasteable usage examples (docs/EXAMPLES.md)#176

Open
seonghobae wants to merge 1 commit into
mainfrom
docs/usage-examples
Open

docs: add copy-pasteable usage examples (docs/EXAMPLES.md)#176
seonghobae wants to merge 1 commit into
mainfrom
docs/usage-examples

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

What

Adds docs/EXAMPLES.md — a tight, scenario-based examples doc for Codec Carver. New file only; no existing file (including README) is touched.

Why

The README documents the flags and one verified command, but new users still have to translate that into "how do I do my thing." This doc gives copy-pasteable recipes for the flows people actually hit.

Contents

  • Shrink a folder of lecture/meeting/podcast recordings (dry run → --execute)
  • Target a size for Discord / email (--target-bytes, in bytes) with a quick reference table
  • Force FLAC (--flac-all) vs. default FLAC-for-lossless / automatic Opus fallback
  • Recordings longer than 4h: silence-aware splitting (--max-duration-seconds, --silence-*)
  • Dry run vs. --execute
  • Useful extras: --over-limit-only, --size-limit-bytes, --exclude-dir-prefix, --workers/--ffmpeg-threads, --overwrite, --download-icloud
  • Troubleshooting: ffmpeg not installed, "has no audio stream", "contains video", too_large, and a report-status table

Accuracy

Every command was checked against the real flags and defaults in parse_args, and behaviors (FLAC→Opus fallback on size, video-stream rejection, too_large/too_long discards, dry-run default) were verified against the source.

Verification

  • python3 -m unittest discover -s tests — no new failures (only the 5 pre-existing macOS-only os.listxattr errors)
  • python3 -m interrogate -c pyproject.toml media_shrinker.py saas_web.py mcp_driver.py — PASSED (100%)
  • Docs-only change; no code modified

🤖 Generated with Claude Code

Add scenario-based, accuracy-verified examples covering the flows users
actually hit: shrinking a folder of recordings, targeting a size (Discord
25MB / email), forcing FLAC vs. letting Opus fall back, splitting >4h
recordings at silences, dry-run vs. --execute, and troubleshooting
(ffmpeg missing, "has no audio stream", "contains video", too_large).

Every command matches a real flag in parse_args; no README content is
duplicated and no existing file is modified.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CJRVbDrp1vGYkJgNHMGPpG
@seonghobae seonghobae enabled auto-merge (squash) July 6, 2026 14:25
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