
Recherche avancée
Autres articles (50)
-
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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (7838)
-
How check the file is corrupted before concatenate them with FFmpeg ?
17 février 2021, par Ali EsmailporI'm using
child_process
package in NodeJS to run FFmpeg for concatenating some videos. The command that I use for concatenating is :

ffmpeg -f concat -i list_file.txt -c copy final.mp4



that
list_file.txt
is the list of videos file and it contains :

file '700010023590099933_1612945401707.mp4'
file '700010023590099933_1612945439023.mp4'
.
.



I want to check every video before concatenate them because if one of them be corrupted it stops the process and throws an error. So it makes the final video corrupted too.


In addition, I can check if a video file is OK or not with this command :


ffmpeg -i input.mp4 -c copy -f null -; echo $?



that returns
0
if file is OK and1
if not.

I want to check all the video files and if all of them are OK then concatenate them. And if each one was corrupted then exclude it and continue the process.
Is there a way to do this in one command ?


-
FFMPEG - Crop image so that height and width of image are equal
2 septembre 2020, par Sarmad S.Using ffmpeg, I want to be able to crop an image so that the dimensions become equal. For example if I have an input image that is 1600x1000, after cropping it should be 1000x1000 (because 1000 is the smallest amongst the two dimensions). When cropping the image, it should crop equally from both sides.


Some examples :
Input image : 1600x1000 -> crop 300px from the left and 300px from the right side. Final image 1000x1000.


Input image : 1100x1500 -> crop 200px from the top and 300px from the bottom. Final image 1100x1100.


I can use this the command below to crop left and right or bottom and top or both. But the problem is that I want to crop only the largest dimension. Is there any way to know the largest dimension ?


crop=in_w-in_h/2:in_h-in_w/2



-
FFmpeg Image to Video command consuming 100% CPU
23 décembre 2023, par Dishan VermaI am working on a project where I need to first extract all the frames of videos and after extracting the frames I need to stitch the frames back again showing 1 frame for exactly 1 seconds i.e I need to create a 1 FPS video from extracted frames.


I am successfully able to extract frames of video using ffmpeg without any issues.


But my FFmpeg command which I am using to convert frames to 1 FPS video is consuming 100% CPU, for example a 40 mb video input is consuming 8 GB of CPU. Below is how my FFmpeg command looks like.


final String ffmpegCommandFormat = "%s -framerate 1 -i %s -c:v libx264 -pix_fmt yuv420p -crf 18 -y %s";
final String ffmpegCommand = String.format(ffmpegCommandFormat, FFMPEG_EXEC_PATH, framesPathRegex, pathToStoreProcessedVideo);



I am creating a service which needs to support around 2 GB sized videos and with the current behaiviour it cannot even support 100 MB of video.


Can anyone please help me here to understand why FFmpeg is consuming too high CPU and how can i resolve this issue ?
Is there any alternate/better/fast/efficient command which I can use to created 1 FPS video wither from extracted frames or directly from input video ?


I am new to ffmpeg so not sure what else to explore.