Recherche avancée

Médias (91)

Autres articles (32)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (7090)

  • ffmpeg - how can I scale the video while perserving the total frames in it ?

    14 juin 2018, par choz

    I have a video with a size of 515 x 755, that I would like to resize proportionally to 206 x 302 (so, factor is 2.5).

    In this video, I have the total of 588 frames, and I use ffmpeg to scale it, with this command.

    ffmpeg -i video.mp4 -vf scale=206:-1 xRotation_206.mp4

    And I use this to check how many frames are there in the video, based on this answer.

    ffmpeg -i video.mp4 -map 0:v:0 -c copy -f null - 2>&1 | awk '/frame=/ {print $2}'

    The original video frames is good (588 frames). But, after resizing with the command above, my converted video now has 604 frames.

    The question is, how can I resize the video by preserving the total frames in it ? It doesn’t really have to be ffmpeg approach, and any suggestion is appreciated.

    Here’s the sample video that I use : Link

  • Efficient command line to crop a video, overlay another crop from it and scale the result with ffmpeg

    26 mai 2018, par Witek

    I need to convert many videos in such a way that I take 2 different crops from each frame of a single video, stack them one over the other and scale down the result, creating a new smaller video.
    I want to convert this fullHD frame (two crop areas are marked red) to this small stacked frame.

    Right now I use the following code :

    ffmpeg  -i "video.mkv" -filter:v "crop=560:416:0:0" out1.mp4
    ffmpeg  -i "video.mkv" -filter:v "crop=560:384:1060:128" out2.mp4
    ffmpeg  -i out1.mp4 -vf "movie=out2.mp4[inner]; [in][inner] overlay=0:32,scale=280:208[out]"  -c:v libx264 -preset veryfast -crf 30 result.mp4

    It works but it is very inefficient and requires temporary files (out1 and out2). And the problem is I have over 100.000 of such videos (they are big and stored on a NAS and not directly on my computer’s HDD). Converting all of them with a Windows batch script (for loop) will take...48 days. Can you help me to optimize the script ?

  • Why am I unable to scale a 4-second 60 fps clip down to exactly 1 second ?

    20 mai 2018, par joeycato

    I’m currently using the setpts filter to speed up or slow down different clips and accuracy is very important to me ( context : I’m concatenating these into a final clip that needs to be perfectly in sync with a separate video.) I’ve been using this as a general approach :

    setpts=(targetDuration/totalFrameCount)*N/TB" -r targetDuration/totalFrameCount

    While it’s fairly accurate most of the time, I’m wondering if I can get better results. For example, if I attempt to scale a 4-second 60fps clip down to exactly 1 second, i.e. :

    ffmpeg -y -i clip_4sec.avi -filter:v "setpts=(1/240)*N/TB" -r 240/1 clip_4sec_scaled_to_1sec.avi

    I actually end up with a 992ms clip. Does anyone know why this happening ? From my understanding, as long as the target duration is a multiple of frame duration ( 1/60 seconds ) this shouldn’t be an issue, correct ?

    Is there a better approach I can take to improve the accuracy ?

    Note : FWIW I already double-checked that the input clip has an actual frame count of 240