
Recherche avancée
Autres articles (27)
-
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (4813)
-
FFMPEG show encoding progress
18 janvier 2016, par Mick JackI am using ffmpeg to convert a video file large files take a long time to get encode. i will like to show a progress bar with a percentage/time remaining
i saw and tried this example example but progress bar is not showing
FFMPEG script and autorefresh both in upload.php
<?php
shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -y -i ".$target_file." -c:v libx264 -s:v 854x480 -c:a copy \"{$newFileName}\" > logfile.txt 2>&1");
?>
<code class="echappe-js"><script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script><script><br />
$(document).ready(function(){<br />
setInterval(function(){<br />
$("#screen").load('progress.php')<br />
}, 10000);<br />
});<br />
</script>Progress.php
<?php
$content = @file_get_contents('logfile.txt');
if($content){
//get duration of source
preg_match("/Duration: (.*?), start:/", $content, $matches);
$rawDuration = $matches[1];
//rawDuration is in 00:00:00.00 format. This converts it to seconds.
$ar = array_reverse(explode(":", $rawDuration));
$duration = floatval($ar[0]);
if (!empty($ar[1])) $duration += intval($ar[1]) * 60;
if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60;
//get the time in the file that is already encoded
preg_match_all("/time=(.*?) bitrate/", $content, $matches);
$rawTime = array_pop($matches);
//this is needed if there is more than one match
if (is_array($rawTime)){$rawTime = array_pop($rawTime);}
//rawTime is in 00:00:00.00 format. This converts it to seconds.
$ar = array_reverse(explode(":", $rawTime));
$time = floatval($ar[0]);
if (!empty($ar[1])) $time += intval($ar[1]) * 60;
if (!empty($ar[2])) $time += intval($ar[2]) * 60 * 60;
//calculate the progress
$progress = round(($time/$duration) * 100);
echo "Duration: " . $duration . "<br />";
echo "Current Time: " . $time . "<br />";
echo "Progress: " . $progress . "%";
}
?>ffmpeg
shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -y -i ".$target_file." -c:v libx264 -s:v 854x480 -c:a copy \"{$newFileName}\" > logfile.txt 2>&1");
-
Explicit deinitialization of progress listeners.
14 octobre 2018, par blueimpExplicit deinitialization of progress listeners. This addresses a memory leak with Microsoft Edge. Thanks @butonic for the report, investigation and fix. Closes #3508
-
The progress bar preview of an MP4 video becomes a scary image
4 juillet 2021, par treblezWhen I opened the video progress bar at 1:00 last night, the preview looked like this
I used the ffmpeg -I command to extract the video frame by frame and did not find this image
The progress bar preview returned to normal this morning, and the system time changed after the network was cut off was still normal until 1:00 a.m
I have no experience in video processing. How can I find this image ?