
Recherche avancée
Médias (9)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (96)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (6970)
-
How to get estimate time in FFmpeg using php ?
4 février 2019, par Pooja JadavI’m using FFmpeg for in my project to overlay a video using php.
I have been included a queue for command execute. So, sometimes many requests in queue, and take a long time to execute.
That’s why, I have to show the progress bar for user identifies, how many time will take for creates it video. For this scenario, I have to take estimate time.
Maybe it’s possible to calculate it by other params that are shown in the output such as fps, bitrate or speed.
Any ideas ?
//DownloadJob.php;
public function __construct($video,$transparent_img,$output_file)
{
$this->video=$video;
$this->transparent_img = $transparent_img;
$this->output_file = $output_file;
$create_at = date('Y-m-d H:i:s');
$this->status =0;
$this->download_id = base64_encode($video);
DB::beginTransaction();
DB::insert('INSERT INTO jobs_download(download_id,image,video,status,output_video,create_time)
VALUES(?,?,?,?,?,?)',[$this->download_id,$this->video,$this->transparent_img,$this->status,$this->output_file,$create_at]);
DB::commit();
}
public function handle()
{
$video=$this->video;
$transparent_img=$this->transparent_img;
$output_file=$this->output_file;
$ready=1;
$failed=2;
$input_video = $video;
$transparent_img = $transparent_img;
try{
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$cmd = $ffmpeg . " -i " . $input_video . " -i " . $transparent_img . " -filter_complex 'overlay' " . $output_file;
//Log::info($cmd);
exec($cmd, $output);
if(file_exists($output_file)){
DB::beginTransaction();
DB::update('UPDATE jobs_download SET status=? WHERE download_id =?',[$ready,$this->download_id]);
$this->status = 1;
DB::commit();
if(file_exists($input_video)){
unlink($input_video);
}
if(file_exists($transparent_img)){
unlink($transparent_img);
}
}else{
Log::error('DownloadJob.php failed()',['download_id'=>$this->download_id]);
DB::beginTransaction();
DB::update('UPDATE jobs_download SET status=? WHERE download_id =? ',[$failed,$this->download_id]);
$this->status = 3;
DB::commit();
}
}catch (\Exception $e){
Log::error('DownloadJob.php failed()',['download_id'=>$this->download_id]);
DB::beginTransaction();
DB::update('UPDATE jobs_download SET status=? WHERE download_id =? ',[$failed,$this->download_id]);
$this->status = 3;
DB::commit();
}
}
public function failed()
{
$failed = 2;
Log::error('DownloadJob.php failed()',['download_id'=>$this->download_id]);
DB::beginTransaction();
DB::update('UPDATE jobs_download SET status=? WHERE download_id =? ',[$failed,$this->download_id]);
$this->status = 3;
DB::commit();
}
public function getResponse()
{
return ['download_id' => $this->download_id,'eta_time_sec' => $eta_time_sec];
}//FFmpegController.php
public function generateVideo(Request $request_body)
{
//Overlay file
$transparent_img=Input::file('transparent_img');
//Main file
$video=Input::file('video');
$output_file = $video_name;
//Send in queue for ffmpeg overlay
$job = new DownloadJob($video_name,$image,$output_file);
$data = $this->dispatch($job);
$dl_url = $job->getResponse();//Get response download_id and estimate time in second
print_r($dl_url);}
Output
I want to this answer in my output result.
[
'download_id':'NWM1ODAwNDU3NzkxOV92aWRlb19maWxlXzE1NDkyNzExMDkubXA0',
'eta_time_sec':5
]How can I get estimation time in seconds from fps, bitrate or speed but I have no clue..
-
ffmpeg cut a video starting at n frames before a specific time ?
1er septembre 2018, par hl037_I would like to cut a video (with ffmpeg) starting at
n
frames before a specific time, say 100 frames exactly before 00:08:05.042, is it possible ?(even if I don’t need it, is there a possibility to also specify a frame offset for the end ?)
-
ffmpeg concat takes too much time
7 juillet 2021, par DavidBTrying to concatenate large mp4 files. Before 48000 if it takes about 500ms to be done, then after 48000 time increases dramatically to 10000ms. What I am missing ?


ffmpeg -f concat -safe 0 -i cn.txt -c copy concated.mp4

$cn_txt = 
"ffconcat version 1.0
file t.mp4
outpoint 48000
file ad.mp4";
 // outputs in 500ms

$cn_txt = 
"ffconcat version 1.0
file t.mp4
outpoint 49000
file ad.mp4";
 // outputs in 10000ms