]> _ Git - fluidbook_tools.git/commitdiff
wait #4790 @0:15
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 13:32:36 +0000 (15:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 14 Oct 2021 13:32:36 +0000 (15:32 +0200)
src/Video.php [new file with mode: 0644]

diff --git a/src/Video.php b/src/Video.php
new file mode 100644 (file)
index 0000000..03b8cf2
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+
+namespace Fluidbook\Tools;
+
+class Video
+{
+    public static function convert($input, $dest)
+    {
+        `/usr/bin/ffmpeg -i $input -y -acodec aac -vcodec libx264 -b 384k -ab 64k -mbd 2 -cmp 256 -subcmp 2 -subq 6 -strict experimental -vf scale="640:trunc(320/a)*2" -coder 0 -trellis 0 -bf 0 -refs 5 -flags +loop+mv4 -partitions +parti4x4+parti8x8+partp4x4+partp8x8 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -ac 2 -ar 44100 -r 13 $dest`;
+    }
+}