1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-30 04:19:16 +01:00
magnaluna/convert.php
2023-08-14 21:22:49 +02:00

14 lines
338 B
PHP

<?php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
use danog\MadelineProto\LocalFile;
if ($argc < 3) {
die("Usage: {$argv[0]} input output.ogg".PHP_EOL);
}
\danog\MadelineProto\Ogg::convert(new LocalFile($argv[1]), new LocalFile($argv[2]));