
Recherche avancée
Autres articles (66)
-
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
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 (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (9286)
-
Creating forks of `ffmpeg` in loop inside a shell script "loses" some iterations
19 octobre 2015, par sschaefI have a shell script that takes a directory as input, reads all
mp4
files in it and convert them to amp3
withffmpeg
:#!/bin/bash
dir=$1
while read -rd "" file
do
base=$(basename "$file")
filename=${base%(*}".mp3"
ffmpeg -i "$file" -vn -ar 44100 -ac 2 -ab 192000 -f mp3 "$filename" &
done < <(find $dir -maxdepth 1 -iname "*.mp4" -print0)
wait
exit 0Currently all these calls to
ffmpeg
are forked because when I leave out the&
at the end only the first file in converted and the others are ignored.But this is problematic because somethings this fails on some files error messages like the following :
path/to/file/file name - with spaces(info)(temp_information).mp4 : No such file or directory
All file names normally contain spaces, maybe that is the reason why it fails for some files.
Thus, I have the following questions :
- When I don’t fork the
ffmpeg
calls why is only the first file executed ? I expected that the loop waits until the process is finished and then continues with the next iteration. - Why is the script unable to find some files (maybe it is a problem of
ffmpeg
) ? - How to solve all these problems and make the script to work ?
- When I don’t fork the
-
configure : rename have_incompatible_fork_abi -> have_incompatible_libav_abi
1er juillet 2013, par Stefano Sabatiniconfigure : rename have_incompatible_fork_abi -> have_incompatible_libav_abi
"Fork" is an ambiguous term, since there may be more than one fork, also
"fork" could be confused with the corresponding function. Also it seems
important to point the name of the referenced fork in the symbol.Note : the old —enable-incompatible-fork-abi command is retained for
compatibility, although it should be considered deprecated. -
How to make ffmpeg realy silen without to use another process
29 octobre 2013, par DouguiI'm using ffmpeg in a ruby code like this :
fork { exec "ffmpeg -f alsa -ac 2 -i pulse -y #{path} -r 22050" }
It sends the pid of the created process. In the trace, I have this :
Stream mapping:
Stream #0.0 -> #0.0
Press ctrl-c to stop encoding
psize= 832kB time=4.52 bitrate=1507.4kbits/s 6.1kbits/s its/s
size= 963kB time=5.14 bitrate=1536.1kbits/s
video:0kB audio:963kB global headers:0kB muxing overhead 0.004664%I want to make it quiet. I tried to add
-loglevel panic
and-v 0
but it does not work. I know, I can add this>/dev/null 2>&1
but it create another process and my method send only the pid of the first process.Is there a way to make ffmpeg realy silent without to create another process ?