1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-26 11:34:39 +01:00
magnaluna/convert.php
2023-08-20 18:14:41 +02:00

15 lines
364 B
PHP

<?php declare(strict_types=1);
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]));