
Recherche avancée
Autres articles (78)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (7633)
-
Force ffmpeg to exit with error code whenever thumbnail isn't successfully created
12 janvier 2017, par user779159To get a thumbnail from an image at
100
seconds I can doffmpeg -ss 100 -i /tmp/video.mp4 -frames:v 1 -s 200x100 image.jpg
. However, if the video is less than100
seconds, ffmpeg doesn’t create a thumbnail but also doesn’t exit with any error code, which is quite unexpected.The command exits with no error code (exit status of
0
). It only outputs a message onstderr
sayingOutput file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
.I would like ffmpeg to exit with an error code under any situation where a thumbnail hasn’t been created. Otherwise I’ll always have to do another check from my application code after the ffmpeg command to ensure that the expected number of thumbnails has been output to the filesystem.
Is there a way around having to do this application-level check, and force ffmpeg to fail whenever it doesn’t successfully write a thumbnail to the filesystem ?
-
How to make ffmpeg use GPU in python code ?
11 mars 2023, par AlexI have code like this


import ffmpeg

input_video = ffmpeg.input('video.mp4')

input_audio = ffmpeg.input('audio.mp3')

ffmpeg.concat(input_video, input_audio, v=1, a=1).output('D:/video.mp4').run()



I found commands for terminal but didn't figure out how to make ffmpeg use GPU in Python code. Where and how do I pass the parameters '-hwaccel cuvid' ?
I using ffmpeg-python 0.2.0 from PyPI(pypi.org/project/ffmpeg-python)
I will be very grateful for your help


-
code pour bigbrother nécessaire ?
11 octobre 2013Dans mediaspip_core, tous les squelettes de head contiennent :
[(#PLUGIN{bigbrother}|oui)#ENREGISTRER_VISITE_AUTEUR]
Est-ce nécessaire ?