Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (63)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (11248)

  • FFmpeg Image to Video command consuming 100% CPU

    23 décembre 2023, par Dishan Verma

    I 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.

    


  • 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


    


  • How check the file is corrupted before concatenate them with FFmpeg ?

    17 février 2021, par Ali Esmailpor

    I'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 and 1 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 ?