How to get Title Audio Info (makemkvcon)?

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
Sub.S7v7n
Posts: 2
Joined: Thu May 16, 2019 7:03 pm
Contact:

How to get Title Audio Info (makemkvcon)?

Post by Sub.S7v7n »

Hey,
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;}}
Image
Post Reply