pub async fn encode( job: EncodeJob, progress_tx: Option<Sender<Progress>>, ) -> Result<EncodeResult>
Runs an FFmpeg encode job. Progress updates are sent on the channel if provided.