OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reader
/
videoAI
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/04/2025 08:32:49 AM
rwxr-xr-x
📄
export.php
1.63 KB
05/19/2025 10:07:13 AM
rw-r--r--
📁
files
-
03/03/2025 08:30:35 AM
rwxr-xr-x
📄
index.html
3.99 KB
03/03/2025 08:18:55 AM
rw-r--r--
📄
script.js
5.78 KB
03/03/2025 08:18:55 AM
rw-r--r--
📄
styles.css
929 bytes
03/03/2025 08:18:55 AM
rw-r--r--
📄
video_process.php
10.29 KB
05/19/2025 10:07:13 AM
rw-r--r--
Editing: export.php
Close
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['video']) && isset($_POST['audio'])) { $videoPath = $_SERVER['DOCUMENT_ROOT'] . escapeshellarg($_POST['video']); $audioPath = $_SERVER['DOCUMENT_ROOT'] . escapeshellarg($_POST['audio']); $timestamp = time(); // $outputPath = $_SERVER['DOCUMENT_ROOT'] . '/cream/export/' . $timestamp . 'output.mp4'; // Path for the output video file //localhost $outputPath = $_SERVER['DOCUMENT_ROOT'] . '/videoAI/files/export/' . $timestamp . 'output.mp4'; // Path for the output video file //Server // Command to merge audio and video using FFmpeg $command = "ffmpeg -i $videoPath -i $audioPath -c:v copy -c:a aac -strict experimental $outputPath 2>&1"; // Execute the command and capture output exec($command, $output, $returnVar); // // Print output for debugging // echo "<pre>"; // echo "Return Code: " . $returnVar . "\n"; // print_r($output); // echo "</pre>"; if ($returnVar === 0) { echo "Video and audio merged successfully. Output file: $outputPath"; ?> <video id="videoPreview" width="640" height="360" controls> <source src="<?= '/cream/export/' . $timestamp . 'output.mp4' ?>" type="video/mp4"> Your browser does not support the video tag. </video> <? } else { echo "Error merging audio and video."; } } else { echo "Please provide both video and audio paths."; } } else { echo "Invalid request method."; } ?>