bd4db25e

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Make convert package fully stream-based (#291)

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>

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/291
configuredeploy:deploy-to-flydevShellbackendbackend-devcheck-bashcheck-frontendcheck-go-formattingcheck-go-test-packagescheck-trailing-newlinecheck-trailing-whitespacedeploy-to-flydiagramdocker-imagee2e-testsgo-testsimport-from-tinybeanslint-sqllittle-momentslittle-moments-devx86_64-linux