Muxing Audio- and Video-Container together

ffmpeg -i video.ts -i audio.ts -c:v copy -c:a aac output.mp4

Benchmarks:
3,2 GHz 6-Core Intel Core i7
frame=36438 fps=1348 q=-1.0 size= 413952kB time=00:24:17.47 bitrate=2326.7kbits/s speed=53.9x
2,5 GHz 8-Core Apple M2
frame=166781 fps=2123 q=-1.0 Lsize= 1730859kB time=01:51:11.25 bitrate=2125.4kbits/s speed=84.9x
3,3 GHz 10-Core Apple M2 Pro
frame=13229 fps=2204 qfframe=201471 fps=2310 q=-1.0 Lsize= 2117942kB time=02:14:19.06 bitrate=2152.9kbits/s speed=92.4x

PiShrink (Linux)


PiShrink is a bash script that automatically shrink a pi image that will then resize to the max size of the SD card on boot. This will make putting the image back onto the SD card faster and the shrunk images will compress better. In addition the shrunk image can be compressed with gzip and xz to create an even smaller image. Parallel compression of the image using multiple cores is supported.
https://github.com/Drewsif/PiShrink/