1.2 KiB
Executable File
1.2 KiB
Executable File
Phase 3 Implementation Plan
Overview
Phase 3 focuses on:
- Adding CLI flags for all new features
- Implementing remaining features (downmix, subtitle extraction)
- Refactoring code to use structured options
- Testing and validation
Implementation Steps
Step 1: Refactor encodeFile() to use EncodingOptions struct
- Create EncodingOptions struct
- Update function signature
- Update all callers
Step 2: Add CLI flag parsing
- Parse AV1 advanced flags
- Parse audio flags
- Parse stream operation flags
- Parse force-transcode flag
Step 3: Integrate flags into encoding
- Pass options to encodeFile()
- Apply AV1 options
- Apply audio options
- Apply stream options
Step 4: Implement remaining features
- Downmix track creation
- Subtitle extraction
- Remove subtitles after extract
Step 5: Update help text
- Document all new flags
- Add usage examples
Priority Order
- ✅ Refactor to EncodingOptions (in progress)
- ⏳ Add --force-transcode flag
- ⏳ Add AV1 advanced flags (preset, CRF, tune, maxrate)
- ⏳ Add audio quality preset flag
- ⏳ Add stream operation flags
- ⏳ Implement downmix creation
- ⏳ Implement subtitle extraction