
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (64)
-
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 (...) -
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
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 (...)
Sur d’autres sites (8207)
-
Reduce ffmpeg CPU usage
20 juillet 2020, par Przemysław ChwialaI'm using python script to run ffmpg recording from rtsp stream in 60s segments + getting 1 jpg frame from every segment. It works ok but I'm wondering how to reduce cpu usage for this command. In htop I can see 9 PIDs and they uses about 50% of CPU (for one camera). Do you have any idea how to reduce it ?
This is command I'm using :


ffmpeg -rtsp_transport tcp -stimeout 1000000 -i rtsp:// -vcodec copy -an -dn -y -loglevel error -segment_time 60 -strftime 1 -reset_timestamps 1 -f segment /home/recordings/9cc84d00-626c-4e16-b2b9-1b3667ee7b86/%Y-%m-%d/%H-%M.mp4 -strftime 1 -f image2 -ss 00:00:01 -vf fps=1/60 /home/recordings/9cc84d00-626c-4e16-b2b9-1b3667ee7b86/%Y-%m-%d/%H-%M.jpg





-
Opencv Won't compile due to "cap_ffmpeg_impl.hpp" and "ffmpeg_codecs.hpp"
13 octobre 2022, par AmberGraph41161I am new to opencv and linux. I am trying to install opencv or build opencv from source to use the library with c++. When building or trying to use "make" to build all the files, everything is fine until around 50% (I've tried to redo the entire installation process multiple times over because I have no idea what I am doing and keep getting the same errors). At around the 50% mark, I get the same two errors :


make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:244: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5218: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [Makefile:166: all] Error 2



I get these two errors as well as a ton of build error messages containing errors about 2 files in particular (I get a bunch of errors and all of them deal with 2 files).


/home/jinwoo_k/opencv/opencv-4.6.0/modules/videoio/src/ffmpeg_codecs.hpp:96:27: error: ‘CODEC_ID_LJPEG’ was not declared in this scope; did you mean ‘AV_CODEC_ID_LJPEG’?
 96 | #define AV_CODEC_ID_LJPEG CODEC_ID_LJPEG
 | ^~~~~~~~~~~~~~
/home/jinwoo_k/opencv/opencv-4.6.0/modules/videoio/src/cap_ffmpeg_impl.hpp:215:26: note: in expansion of macro ‘AV_CODEC_ID_LJPEG’
 215 | # define CV_CODEC(name) AV_##name
 | ^~~
/home/jinwoo_k/opencv/opencv-4.6.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2842:10: note: in expansion of macro ‘CV_CODEC’
 2842 | case CV_CODEC(CODEC_ID_LJPEG):
 | ^~~~~~~~
/home/jinwoo_k/opencv/opencv-4.6.0/modules/videoio/src/ffmpeg_codecs.hpp:100:30: error: ‘CODEC_ID_RAWVIDEO’ was not declared in this scope; did you mean ‘AV_CODEC_ID_RAWVIDEO’?
 100 | #define AV_CODEC_ID_RAWVIDEO CODEC_ID_RAWVIDEO
 | ^~~~~~~~~~~~~~~~~




^^^These are just a couple of the error messages, I get hundreds of them.


I read another stackoverflow post about opencv and ffmpeg : OpenCV 3.0.0 make error with FFMPEG
but I don't think that this is the same error that I have. I don't believe that I have made a mistake in the installation or build process or anything with cmake - I have followed and redone the process of following mutliple video and forum guides on how to install opencv. What am I doing wrong ?


-
FFmpeg command line vs programatically
10 avril 2018, par JohnHow do I reproduce the ffmpeg rtsp streaming/codec copying/audio disabling command line entry
ffmpeg -i rtsp://abcd:123456@1.2.3.4/rtspvideostream -vcodec copy -an /home/pc/video.avi
within ffmpeg library referencing code ? Currently I use (along with all the necessary av_find_stream_info / avcodec_find_decoder etc. commands)
numBytes = av_open_input_file(&pFormatCtx,"rtsp://abcd:123456@1.2.3.4/rtspvideostream", NULL, 0, NULL))
which to me appears to reproduce the command line entry
ffmpeg -i rtsp://abcd:123456@1.2.3.4/rtspvideostream /home/pc/video.avi
without the hugely CPU saving flags of ’-vcodec copy -an’.