
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (51)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7912)
-
Resize videos with ffmpeg - Keep aspect ratio
8 juin 2020, par ColinSharkI'm trying to write a script for a telegram userbot that can convert any video/animation to a
.mp4
. I already have it so the script communicates and utilizes the API of cloudconvert.com.


Now my problem lies within the ffmpeg command that I'm passing to CC, as I need to keep videos below 1280 pixels on either side. It doesn't matter if the final video is 720*1280 or 1280*1280 or something completely else, as long as neither of the two sides surpass 1280 pixels.



Here comes the tricky part, I don't want to ruin the aspect ratio and I don't want the video to be upscaled if it's smaller than 1280.



The part of code that is actually relevant is the scale portion.
This following piece will resize a video to maximum 1280 pixels in height, but doesn't take the width into account, it just keeps the ratio.



-vf "scale=min'(1280,iw)':-2"



Now how would I have to either adapt it or change it so it will actually resize depending on which side is greater than 1280 pixels ?



I hope I'm being specific enough and I'm looking forward to your help.


-
FFmpeg - Change resolution of the video with aspect ratio
18 septembre 2024, par Arthurall.



How to change resolution of the video with aspect ratio with FFmpeg ?



There are options 
http://manpages.ubuntu.com/manpages/oneiric/man1/ffmpeg.1.html



-s size
 Set frame size. The format is wxh (ffserver default = 160x128,
 ffmpeg default = same as source). The following abbreviations are
 recognized:




and



-aspect aspect
 Set the video display aspect ratio specified by aspect.

 aspect can be a floating point number string, or a string of the
 form num:den, where num and den are the numerator and denominator
 of the aspect ratio. For example "4:3", "16:9", "1.3333", and
 "1.7777" are valid argument values.




For example, I have two input videos :



- 

- with 200*400 resolution
- with 400*700 resolution







I need to make output video with 100*200 resolution.



If I will run ffmpeg with -s 100x200, then second video will have bad aspect ratio.



How can I limit output video by width, with auto aspect ratio by height ?



For example, I want specify for the output video only width 100px and ffmpeg must automatically calculate height with right aspect ratio.



For first video it will be :



200/100=2



400/2=200



Ie 100x200



For second video it will be :



400/100=4



700/4=75



Ie 100x75



Is it possible ?


-
FFMPEG : How to create a webp preview file with 16:9 aspect ratio and no stretching
22 février 2023, par X 47 48 - IRI'm trying to create a webp file for videos to show a quick preview of them like Youtube with 16:9 aspect ratio and black/blurred background.




How is that possible to make something like this using FFMPEG ?


The following script is what I tried and it works, but when the
w / h
ratio of the video is smaller than1.7711442786069651741293532338308...
or equal to it, I get this error :

Error :


[Parsed_crop_5 @ 000002438207c580] Invalid too big or non positive size for width '350' or height '196'




FFMPEG script


ffmpeg -r 16 -ss 0 -i <input file="file" /> -loop 0 -c:v libwebp -lavfi "[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,setpts=0.3*PTS,scale=350:-1,crop=h=iw*9/16" -vb 800K -t 00:00:03 out.webp -y