Rewrite MP4/MOV binaries to be faststart
authorhref <href@random.sh>
Fri, 28 Aug 2020 19:14:28 +0000 (21:14 +0200)
committerhref <href@random.sh>
Fri, 28 Aug 2020 19:14:28 +0000 (21:14 +0200)
commitdfceb03cf47374fdeab60784476b2e266208a4bb
tree7b0e5e98eff21f68b6cebd5030cc8ac4c7af6004
parent5b4d483f522f470b9d2cdb7f43d98dde427a1241
Rewrite MP4/MOV binaries to be faststart

In some cases, MP4/MOV files can have the data _before_ the meta-data.

Thus, ffmpeg (and all similar tools) cannot really process the input if
it's given over stdin/streaming/pipes.

BUT I REALLY DON'T WANT TO MAKE TEMPORARY FILES

so here we go, an implementation of qtfaststart in elixir.
lib/pleroma/helpers/media_helper.ex
lib/pleroma/helpers/qt_fast_start.ex [new file with mode: 0644]