I'm currently writing PHP using a web gui for MakeMKVcon (including FFmpeg).
And have a question.
Is there an easy way to read title info (audio, subs, size, length)?
Perfect would be an array.
Thanks in advance.
Currently, I read the saved file line by line:
Code: Select all
$minlength=$_POST["minlength"];
if (file_exists($disc_progress)) {unlink('disc_progress');}
if (file_exists($DISC_Info)) {unlink('DISC_Info');}
echo $DVD_Info=shell_exec("sudo makemkvcon -r --minlength=$minlength info disc:0 > DISC_Info");
/// get title
$lines = file('DISC_Info');
$searchstr = 'CINFO:2,0,';
foreach ($lines as $line)
{if(strpos($line, $searchstr) !== false){$title[] = $line;}}