
Recherche avancée
Autres articles (67)
-
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 ) (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (8848)
-
frei0r : handle string params
29 août 2018, par Raphael Graffrei0r : handle string params
This is needed for some of the frei0r filters (facebl0r and facedetect) which accept string parameters.
Fixes the issue described here :
http://www.ffmpeg-archive.org/Unable-to-set-ffmpeg-frei0r-facedetect-filter-parameter-td4680190.htmlSigned-off-by : Raphael Graf <r@undefined.ch>
-
Clojure shell/sh does not handle single-quoted arguments correctly ?
3 janvier 2020, par JarzkaExecuting the following command in the REPL :
(shell/sh "ls" "-lah" "'resources'")
gives the following output :
{:exit 2, :out "", :err "ls: cannot access 'resources': No such file or directory\n"}
Executing the same command in the Bash shell gives the correct output, the list of files in the resources directory. To my understanding this means that shell/sh is unable to handle single-quoted arguments correctly. Is this true or am I doing something wrong ?
The example above is a simple example, as usually I probably would not need to single-quote the folder name. But why this is a real problem is because I try to concat audio files by executing the following ffmpeg command using shell/sh ;
ffmpeg -i resources/ffmpeg_working/1.flac
-i resources/ffmpeg_working/2.flac
-i resources/ffmpeg_working/3.flac
-i resources/ffmpeg_working/4.flac
-filter_complex '[0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]'
-map '[out]'
resources/ffmpeg_working/done.flacThis gives the following output
Stream map ''[out]'' matches no streams.
Once again, if I execute the same ffmpeg command in the Bash shell it concatenates the files successfully. Thus, it seems that the single-quoted argument is not handle correctly ?
-
ffmpy capture and handle stderr properly
18 février 2019, par BLangI am very new to ffmpeg and am using pythons wrapper for ffmpeg, ffmpy to process a large number of videos, but some videos produce various warnings and can not be transcoded. For example :
Unsupported codec with id 0 for input stream 4
I read how to parse the video meta data into json from the tuple the ff.run() gives back (from the first ff[0]), but how would i gracefully handle errors from ff[1] is there any standard, or recommended way using the ffmpy wrapper ? Below is what i currently have, but wonder if there is a more graceful way of handling specific errors ?
import ffmpy
ff = ffmpy.FFprobe(
inputs={file_to_probe: None},
global_options=[
'-v', 'warning',
'-print_format', 'json',
'-show_format', '-show_streams',
]
).run(stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# to load meta data works great!!
video_meta_data = json.loads(ff[0].decode('utf-8'))
# ideally i'd like to do something like: but is there a better way?!
if ff[1] is not null:
print('handle errors here')