
Recherche avancée
Autres articles (95)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (8805)
-
ffmpeg merge video and audio + fade out
1er mai 2016, par jacky brownI have one video file and one audio file.
I want to merge them together that the final output video will be in the length of the video and will contain the audio in the background.i did :
ffmpeg -i output.avi -i bgmusic.mp3 -filter_complex " [1:0] apad " -shortest out.avi
but the background audio is cut in the end of the final merge movie.
i want it to fade out nicely.how can i do it ??
but the background audio is cut in the end of the final merge movie.
i want it to fade out nicely.how can i do it ??
thanks.
-
Clips from a Live Video
12 mai 2022, par Jorge Borreguero SanmartinI am doing a program in Python that gets clips from a live video. To do so, with opencv I get the currrrent_frame_position and with the fps I get the start and final time to run this command :


ffmpeg -i live_video.ts -ss 00:01:30 -to 00:02:00 -c:v copy output.ts


To improve, I want to start dumping the live_video on the new file once I know the starting time, and finish once I get the final time. My intention is to make this process faster and get the result file sooner. It is not necessary to use ffmpeg but it is the tool that I have been using. How can I do this ?


-
Thumbnail generation in Laravel with FFmpeg
28 mai 2023, par hehehheheheUsing FFmpeg video upload is successful in the database, but the file is not found in the storage directory. I want to make a thumbnail of the video that has just been uploaded using FFmpeg in Laravel. When viewed in the database it has been uploaded, but when viewed in the Laravel storage directory the file does not exist. What is the solution ?


$store = new Post();
$files = $request->file('file');
$ext = $files->getClientOriginalExtension();
if ($ext == 'mp4' || $ext == 'mkv' || $ext == 'webm') {
 $ext = $request->file('file')->extension();
 $final = 'video' . time() . '.' . $ext;
 $request->file('file')->move(storage_path('app/public/uploads/video/'), $final);
 $store->file = $final;

 // For Thumbnail
 $thumbnailName = 'thumbnail' . time() . '.jpg';
 $thumbnailPath = storage_path('app/public/uploads/video/thumbnails/') . $thumbnailName;

 $ffmpegCommand = "ffmpeg -i " . storage_path('app/public/uploads/video/') . $final . " -ss 00:00:01.00 -vframes 1 " . $thumbnailPath;
 exec($ffmpegCommand);

 $store->thumbnail = $thumbnailName;
}



I've looked and tried coding based on the latest documentation, but it still can't run.