
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (105)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (12749)
-
avformat/rtsp : allocate correct max number of pollfds
27 septembre 2020, par Andriy Gelman -
Limit autodetection of threads number according to the source height
16 juillet 2015, par Anton Mitrofanov -
Extract number of frames without using shell-True
26 mars 2022, par petrushI have the following code that extract number of frames from video :


filename = "test.mp4"
video_path = os.path.join(os.getcwd(), filename)
with open(video_path, "rb") as file:
 cmd = f'ffmpeg -i {video_path} -r 10 -q:v 3 -s 1x1 -f image2 -update 1 - >/dev/null'
 proc = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE, shell=True)
 (stdout, stderr) = proc.communicate()

 # i.e: 'frame= 2062 fps=966 q=3.0 Lsize=N/A time=00:10:34.46 bitrate=N/A dup=1049 drop=3563 speed= 297x'
 decoded = stderr.decode('utf-8')
 frame_count_line = decoded.splitlines()[-2]
 m = FRAME_COUNT_REGEX.search(frame_count_line)
 if m:
 print(int(m.groups()[0]))



but because of security reasons I want to remove
shell=True
parameter.
Unfortunately after that the code above throws :

FileNotFoundError: [Errno 2] No such file or directory



Please help to fix it