Update: After more testing, I can confirm that normal video
uploads work correctly – the intermediate web video file is
created during HLS transcoding but gets properly deleted
afterwards. Only HLS remains on S3.
However, videos imported from YouTube still leave the
intermediate web video file on S3 – it never gets cleaned up
after HLS transcoding is complete.
So the issue seems to be specifically in PeerTube's YouTube
import pipeline, not in the transcoding process itself.
This is likely an upstream PeerTube bug rather than a Cloudron
packaging issue.
I'll open a report on the PeerTube GitHub.
Thanks again for the quick fix of start.sh!