
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (69)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (5092)
-
How to decode H264 stream to image byte array with ffmpeg in C# ?
1er juin 2022, par massivemoistureI have an application in C# that receives H264 stream from a socket.


The stream is in Annex B format. I want to decode the stream to individual image as a byte array.


I saw this code snippet using PyAV, courtesy of leng-yue (https://github.com/leng-yue/py-scrcpy-client/blob/main/scrcpy/core.py) :


raw_h264 = self.__video_socket.recv(0x10000)
 packets = codec.parse(raw_h264)
 for packet in packets:
 frames = codec.decode(packet)
 for frame in frames:
 frame = frame.to_ndarray(format="bgr24")
 if self.flip:
 frame = cv2.flip(frame, 1)
 self.last_frame = frame
 self.resolution = (frame.shape[1], frame.shape[0])



How can I do something similar with ffmpeg but in C# and the output is a byte array in BGR24 ? Thank you !


-
Why use sysconf(_SC_NPROCESSORS_CONF) to get the number of CPU cores in x264 ?
5 novembre 2017, par bknievenI find x264 use sysconf(_SC_NPROCESSORS_CONF) instead of sysconf(SC_NPROCESSORS_ONLN) to get the number of CPU cores.
Here is the code snippet in x264/common/cpu.c :
...
#ifdef __ANDROID__
// Android NDK does not expose sched_getaffinity
return sysconf( _SC_NPROCESSORS_CONF );
#else
...
....And I find the difference between _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN in this manual :
sysconf (_SC_NPROCESSORS_CONF) which returns the number of processors
the operating system configured. But it might be possible for the
operating system to disable individual processors and so the call
sysconf (_SC_NPROCESSORS_ONLN) returns the number of processors which
are currently online (i.e., available).I have two questions :
- What is the difference between "the number of processors the operating system configured" and "the number of processors which are currently online" ?
- Why x264 use _SC_NPROCESSORS_CONF in Android to get the number of CPU cores ?
-
Revision 29746 : Gestion de la file d’attente
8 juillet 2009, par kent1@… — LogGestion de la file d’attente