
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
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
Autres articles (73)
-
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 -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (8924)
-
doc/general : update after recent additions
25 octobre 2015, par Paul B Mahol -
Creating a convertAll() function that converts all .filetype in working directory
5 janvier 2019, par RisviltsovI seem to not know proper bash syntax ; despite this, I’ve tried to create a tool that changes the dimensions of all files of a ffmpeg-accepted filetype in the working directory and converts it to another ffmpeg-accepted filetype. In this instance, this tool converts all .webm files over 1080x720 into 1080x-1 or -1x720 .mp4 files. If the .webm file is under 1080x720, the new .mp4 file will have the same dimensions.
However, there’s a wrench in the tool.
convertAll () {
local wantedWidth = 1080
local wantedHeight = 720
for i in *.webm; do
local newWidth = $i.width
local newHeight = $i.height
until [$newWidth <= $wantedWidth && $newHeight <= $wantedHeight]; do
if [$videoWidth > $wantedWidth]; then
newHeight = $newWidth*($wantedWidth/$newWidth)
newWidth = $newWidth*($wantedWidth/$newWidth)
fi
if [$videoHeight > $wantedHeight]; then
newWidth = $newWidth*($wantedHeight/$newHeight)
newHeight = $newHeight*($wantedHeight/$newHeight)
fi
done
ffmpeg -i "$i" -vf scale=$newWidth:$newHeight "${i%.*}.mp4";
done
echo "All files have been converted."
}What this returns is a bunch of lines that look like this :
bash: [: missing ']'
bash: [: missing ']'
bash: =: No such file or directoryMy best guess is that BASH can’t do mathematics, and that I’m declaring and editing my variables incorrectly.
I’d like some input on this --- my lack of experience is really getting me here.
-
doc/general : move contents into a separate file.
22 août 2020, par Nicolas George