
Recherche avancée
Autres articles (79)
-
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 (...) -
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 (...)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
Sur d’autres sites (4360)
-
ffmpeg - output images in memory instead of disk
25 mai 2015, par HyperionI’ve a python script which basically converts a video into images and stores them in a folder, then all this images are read and informations are extracted from them, then images are deleted. Since the writing images step is so slow and is apparently useless for what I need, I would like to store images somehow in memory instead of the disk, read this images from there and doing my operations, this would speed up my process a lot.
Now my code look like :
1st step :ffmpeg -i myvideo.avi -r 1 -f image2 C:\img_temp
2nd step :
for i in range(1, len(os.listdir(IMGTEMP)):
#My operations for each image3rd step :
for image in os.listdir(IMGTEMP):
os.remove(IMGTEMP + "\\" + image) -
Why is recording webcam with FFmpeg much faster with an input format ?
29 juin 2021, par AlterQuestion is the title


It's a basic question, but one that I can't find clearly answered in google or the documentation, which says :




If you specify the input format and device then ffmpeg can grab video and audio directly.




This isn't explicit enough for a beginner like me and raises other questions. What does ffmpeg do when the input format isn't specified and why is it so slow ? If ffmpeg can figure out the encoding, doesn't it just do so once ?


Examples


For completeness... I'm using an Rasperry Pi 4 with a Picamera2 to record 1080p


With input format, I get the full 30fps :
ffmpeg -input_format h264 -i /dev/video0 -codec h264_v4l2m2m test.h264


Without the input format, I get about 5fps :
ffmpeg -i /dev/video0 -codec h264_v4l2m2m test.h264


Note : it will run without the hardware acceleration option
-codec h264_v4l2m2m
but doesn't reach the full 30fps

Formats


In response to @llogan's comment, the output of
v4l2-ctl --list-formats-ext
is :

ioctl: VIDIOC_ENUM_FMT
 Type: Video Capture

 [0]: 'YU12' (Planar YUV 4:2:0)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [1]: 'YUYV' (YUYV 4:2:2)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [2]: 'RGB3' (24-bit RGB 8-8-8)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [3]: 'JPEG' (JFIF JPEG, compressed)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [4]: 'H264' (H.264, compressed)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [5]: 'MJPG' (Motion-JPEG, compressed)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [6]: 'YVYU' (YVYU 4:2:2)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [7]: 'VYUY' (VYUY 4:2:2)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [8]: 'UYVY' (UYVY 4:2:2)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [9]: 'NV12' (Y/CbCr 4:2:0)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [10]: 'BGR3' (24-bit BGR 8-8-8)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [11]: 'YV12' (Planar YVU 4:2:0)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [12]: 'NV21' (Y/CrCb 4:2:0)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2
 [13]: 'RX24' (32-bit XBGR 8-8-8-8)
 Size: Stepwise 32x32 - 2592x1944 with step 2/2



-
Read part of every frame of a video file
18 novembre 2012, par user1414470I'm doing some tracking on video files. First I separate frames using ffmpeg and the for each frame i apply a mask and then perform the tracking algorithm.
To make this process faster I'm thinking about reading only the parts I need. like reading the part that I apply the mask or better than that reading boxes around the previous positions of objects. So I'm looking for a way to decode and read a specific part of a specific frame from a video file. Is there any way to do that ?