
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 (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 (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8212)
-
message "avcodec_decode_video2 is deprecated" when trying to build h264_image_transport package in ROS
14 septembre 2021, par Hugh RiversI'm using a tello_driver for ROS and currently I am at a point where I want to subscribe to the transported images of the
/tello/imag/raw/h264
topic in order to apply computer vision algorithms on the images in the next step.

But I get the following warnings, when I try to build the h264_image_transport package inside the catkin workspace :


[ 80%] Built target tello_driver_generate_messages_nodejs
[ 90%] Built target tello_driver_generate_messages_py
[ 90%] Built target tello_driver_generate_messages
/home/usr/catkin_ws/src/h264_image_transport/src/h264_subscriber.cpp: In member function ‘virtual void h264_image_transport::H264Subscriber::internalCallback(const ConstPtr&, const Callback&)’:
/home/usr/catkin_ws/src/h264_image_transport/src/h264_subscriber.cpp:47:69: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
 47 | int len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);
 | ^
In file included from /home/usr/catkin_ws/src/h264_image_transport/include/h264_image_transport/h264_subscriber.h:14,
 from /home/usr/catkin_ws/src/h264_image_transport/src/h264_subscriber.cpp:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4828:5: note: declared here
 4828 | int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
 | ^~~~~~~~~~~~~~~~~~~~~
/home/usr/catkin_ws/src/h264_image_transport/src/h264_subscriber.cpp:47:69: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
 47 | int len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);
 | ^
In file included from /home/usr/catkin_ws/src/h264_image_transport/include/h264_image_transport/h264_subscriber.h:14,
 from /home/usr/catkin_ws/src/h264_image_transport/src/h264_subscriber.cpp:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4828:5: note: declared here
 4828 | int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
 | ^~~~~~~~~~~~~~~~~~~~~
[ 95%] Linking CXX shared library /home/usr/catkin_ws/devel/lib/libh264_image_transport.so
[100%] Built target h264_image_transport



Basically, the message tells me that
avcodec_decode_video2
is deprecated. When I did some research I found thatavcodec_send_packet()
andavcodec_receive_frame()
can be used instead but I have unfortunately no idea how to do that. Could someone help me here please, or is there another way to fix that ? Thanks !

-
python imageio.get_reader() returns format error
19 août 2020, par tristan_jiaimport imageio

reader = imageio.get_reader("./t.mp4")



As shown above, with python 3.6.10, it returns :


>>> reader = imageio.get_reader("../")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
 return format.get_reader(request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 168, in get_reader
 return self.Reader(self, request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 217, in __init__
 self._open(**self.request.kwargs.copy())
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 357, in _open
 self._initialize()
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 430, in _initialize
 shell=ISWIN)
 File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
 restore_signals, start_new_session)
 File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
 raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/tristan_jia/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1'

</module></stdin>


I searched everywhere but haven't seen any similar questions. The script runs on Opensuse Leap 15.1, is it related to the system I use ?


-
Implementing '-async 1' in C code to correct out of sync audio
25 septembre 2013, par Christian P.I have built a segmenter that takes as input a h264 / AAC video and segments according to the HLS specification. The source code for it can be seen here : https://gist.github.com/cpnielsen/f36729c371aac0fe535d
It is implemented as a python extension, but the interesting parts are in the
process_video()
function. It makes use of thelibav
library (alternativelyffmpeg
) to do the heavy lifting.It works 95% of the time, but we have come upon some videos where it produces segments with audio out of sync. If I was using the command-line tool, I could simply add
-async 1
to fix it, but how do I implement the same functionality in my C code ?I found a snippet of code in
avconv_filter.c
(forlibav
, not sure what theffmpeg
equivalent is) where they initiate the filter, but without any documentation it is hard to figure out how to do this outside the whole modular setup.I just need to :
- Initiate the correct filter
- Apply it to the input (or output ? not sure)
- Know of any pitfalls when using the filter.
Any help is welcome ; sample code, explanation of the filter, etc.