graph TD A[Start] --> B[Load MP4 Video File] B --> C[Initialize Transcription Service] C --> D[Begin Audio Processing] D --> E{Audio Quality Check} E -->|Pass| F[Process Audio Stream] E -->|Fail| G[Error: Poor Audio] G --> H[End - Error] F --> I[Generate Raw Transcription] I --> J[Add Timestamps] J --> K[Format Transcription] K --> L[Save to Text File] L --> M[Validate Output] M -->|Valid| N[Return video-transcription] M -->|Invalid| O[Error: Invalid Format] O --> H N --> P[End - Success] subgraph TranscriptionGenerator B C D E F G I J K L M end