1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-12-02 09:17:49 +01:00
magnaluna/convert.php

15 lines
364 B
PHP
Raw Normal View History

2023-08-20 18:14:41 +02:00
<?php declare(strict_types=1);
2023-08-14 21:22:49 +02:00
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);
}
2023-08-20 18:14:41 +02:00
\danog\MadelineProto\Ogg::convert(new LocalFile($argv[1]), new LocalFile($argv[2]));