Processing Uploads

Experimental FFmpeg based mp4 to mp3 converter

Build v1.12 with FFmpeg build 12620a-win32-static OR ffmpeg.js if you run this on linux
WARNING! PLEASE BE PATIENT WHILE WAITING FOR THE CONVERSION
DO NOT CLOCSE THIS PAGE UNTIL THE PROCESS HAS BEEN FINISHED
If you are using linux, you will see below a list of convert pending files.
White Blocks are files that is waiting to convert.
Blue Blocks and yello blocks are both converting files. But blue blocks means it is converting in local and yelow means converting on server side.
Lastly, Green Blocks means it has been converted and ready to stream!
window.onload = function () { window.location.replace("ffmpeg_handler.php"); } '; $isWindows = true; }else{ //This is a raspberry pi, use client devices to convert mp4 into aac first and fix the aac with server processing power //echo ''; echo ''; echo '
Convert Pending Files
'; $convertTarget = []; $filenames = []; $count = 0; foreach (glob("uploads/*.mp4") as $filename) { array_push($convertTarget,$filename); array_push($filenames,basename($filename)); $ext = pathinfo($filename, PATHINFO_EXTENSION); if (ctype_xdigit(str_replace("inith","",$filename)) && strlen(str_replace("inith","",$filename)) % 2 == 0) { $realName = hex2bin(str_replace("inith","",basename($filename,"." . $ext))) . ".$ext"; }else{ $realName = basename($filename,"." . $ext).".$ext"; } echo '
   '.$realName.'
'; $count++; } echo '
'; } //FFMPEG JS sample command //input.mp4 need not to be changed as it is automaically mapped to the "filename" variable. // /ffmpegjs/?cmd=-i input.mp4 -vn -b:a 128K -strict -2 -y inithe381bbe38293e381a8e381afe381adefbca0e38199e3818ee38284e381bee38090e6ad8ce381a3e381a6e381bfe3819fe38091.aac&filename=../uploads/inithe381bbe38293e381a8e381afe381adefbca0e38199e3818ee38284e381bee38090e6ad8ce381a3e381a6e381bfe3819fe38091.mp4 ?>