By: Michael Lynch <git@mtlynch.io>
Make convert package fully stream-based writeConvertedFile mixed two representations of the same data: the source was both an io.Reader and a srcPath, and the destination both an io.Writer and a dstPath. Replace it with runFFmpeg, which confines all temp-file and path handling to one internal helper. Callers and per-format converters now deal only in io.Reader/io.Writer. ffmpeg still needs real seekable files (its AVIF muxer rejects non-seekable output), so runFFmpeg does the stream-to-temp-file bookkeeping and supplies the input (-i), output path, and output format (-f). The per-format converters supply only path-free codec args. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>