We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ac044 commit 08d92bfCopy full SHA for 08d92bf
1 file changed
models/media_model.php
@@ -90,7 +90,11 @@ public function media_info($args = [])
90
shell_exec('mv ' . escapeshellarg($args['filename']) . '-header.webm ' . escapeshellarg($args['filename']));
91
shell_exec('rm ' . escapeshellarg($args['filename']) . 'webm');
92
93
- $mediainfo = json_decode(shell_exec('ffprobe -show_format -show_streams -of json ' . escapeshellarg($args['filename'])));
+ $mediainfoNew = json_decode(shell_exec('ffprobe -show_format -show_streams -of json ' . escapeshellarg($args['filename'])));
94
+ if (property_exists($mediainfoNew, 'format')) {
95
+ $mediainfo = $mediainfoNew;
96
+ }
97
+
98
$mediainfo->format->format_name = 'webm';
99
}
100
0 commit comments