
Recherche avancée
Autres articles (47)
-
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 -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
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 (...)
Sur d’autres sites (7214)
-
How to scale video dimensions to a square format with maximum 640x640 using FFmpeg ? [closed]
8 février 2024, par Mukhtor RasulovI’m working with FFmpeg and need to scale video dimensions to a square format while ensuring that the maximum size is 640x640.


Here are my requirements :


- 

- If the original width and height of the video are greater than 640, I want to scale it down to 640x640.
- If the original width and height are both less than 640, I want to maintain the aspect ratio and set the dimensions to min(width, height) x min(width, height).
- The audio should be copied without any changes (using
-c:a copy
). - Input video size will be max 50MB and I need output size less than 15MB










My current approach is :


ffmpeg -y -i 1.MOV -vf "crop=720:720, scale=640:640" -crf 21 -preset veryfast -c:a copy 1-640x640.MOV


if the width and height eqauls, I just scale to square without cropping, because I can't lose items in video.


I’ve tried various approaches, but the output size often ends up being much larger than the input. Could someone guide me on how to achieve this efficiently ? Additionally, I’m not sure if the
-preset veryfast
option is optimized for both time and video size. Any insights on that would be appreciated.

Thank you in advance for your help !


-
How to speed up, adjust color, Crop, Scale and Mix two audio inputs into a video by FFMpeg ? [closed]
7 janvier 2024, par ReachHow to speed up, adjust color, Crop, Scale and Mix two audio inputs into a video by FFMpeg ?
When run not show result


I try to change some function in filter_complex but not work or show result when run.
My goal want mix one audio to one video and apply some filter like hflip, crop, scale, speed up and adjust color for video.


My command :


ffmpeg -y -i "%%a" -i "sound\123.mp3" -c:v copy -filter_complex "[0:v]hflip,crop=720:720,scale=1080 :-1,eq=saturation=1.3,eq=brightness=0.06:saturation=2,setpts=0.8*PTS[v] ;[0:a]atempo=(1/0.8)[a],[0:a][1:a] amix=inputs=2:duration=longest [audio_out]" -map "[v]" -map "[a]" -c:v -map 0:v -map "[audio_out]" h264_nvenc "output%% na.mp4


-
fftools/ffmpeg_opt : drop HAS_ARG from auto{scale,rotate}
15 décembre 2023, par Anton Khirnovfftools/ffmpeg_opt : drop HAS_ARG from autoscale,rotate
It causes those options to be parsed as either
* -autofoo 0/1 (with an argument)
* -noautofoo (without an argument)
This is unnecessary, confusing, and against the documentation ; these are
also the only two bool options that take an argument.This should not affect the users, as these options are on by default,
and are supposed to be used as -nofoo per the documentation.