Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (22)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (4986)

  • Memcached protocol support

    15 novembre 2013, par Mikko Koppanen — Imagick

    For the past few days I’ve been adding Memcached binary protocol support to PECL memcached extension. The protocol handler provides a high-level abstraction for acting as a memcached server. There are quite a few things still missing and only binary protocol is supported at the moment, but the code seems to work reasonably well in small-scale testing.

    I am not sure whether this is useful for anyone, but at least it allows things such as quick prototyping of network servers, exposing sqlite database over memcached protocol etc.

    The code is quite simple and implementing a simple server responding to get and set would look roughly like the following :

    1. < ?php
    2. // Create new server instance
    3. $server = new MemcachedServer() ;
    4.  
    5. // Create a simple storage class
    6. class Storage {
    7.   private $values = array () ;
    8.   
    9.   public function set ($key, $value, $expiration) {
    10.     $this->values [$key] = array (’value’ => $value,
    11.                    ’expires’ => time () + $expiration) ;
    12.   }
    13.  
    14.   public function get ($key) {
    15.     if (isset ($this->values [$key])) {
    16.       if ($this->values [$key] [’expires’] < time ()) {
    17.         unset ($this->values [$key]) ;
    18.         return null ;
    19.       }
    20.       return $this->values [$key] [’value’] ;
    21.     }
    22.     else
    23.       return null ;
    24.   }
    25. }
    26.  
    27. $storage = new Storage () ;
    28.  
    29. // Set callback for get command
    30. $server->on (Memcached: :ON_GET,
    31.        function ($client_id, $key, &$value, &$flags, &$cas) use ($storage) {
    32.          echo "Getting key=[$key]" . PHP_EOL ;
    33.          if (($value = $storage->get ($key))  != null)
    34.            return Memcached: :RESPONSE_SUCCESS ;
    35.  
    36.          return Memcached: :RESPONSE_KEY_ENOENT ;
    37.        }) ;
    38.  
    39. // Set callback for set command
    40. $server->on (Memcached: :ON_SET,
    41.        function ($client_id, $key, $value, $flags, $expiration, $cas, &$result_cas) use ($storage) {
    42.          echo "Setting key=[$key] value=[$value]" . PHP_EOL ;
    43.          $storage->set ($key, $value, $expiration) ;
    44.          return Memcached: :RESPONSE_SUCCESS ;
    45.        }) ;
    46.  
    47. // Run the server on localhost, port 3434. Will block
    48. $server->run ("127.0.0.1:3434") ;
    49.  ?>

    And the client that communicates with the server :

    1. < ?php
    2.  
    3. $cache = new Memcached() ;
    4. $cache->setOption(Memcached: :OPT_BINARY_PROTOCOL, true) ;
    5. $cache->setOption(Memcached: :OPT_COMPRESSION, false) ;
    6. $cache->addServer(’localhost’, 3434) ;
    7.  
    8. $cache->set (’set_key1’, ’This is the first key’, 10) ;
    9. var_dump ($cache->get (’set_key1’)) ;
    10.  
    11. $cache->set (’set_key2’, ’This is the second key’, 2) ;
    12. var_dump ($cache->get (’set_key2’)) ;
    13.  ?>

    The code is still work in progress but it’s available in github : https://github.com/mkoppanen/php-memcached/tree/feature-server. Note that you need to compile libmemcached with –enable-libmemcachedprotocol and the PECL memcached extension with –enable-memcached-protocol.

  • Projects from behind-the-scenes

    28 septembre 2018, par Jake Thornton

    Kia ora from the marketing team !

    Marketing team ? That’s right ! You haven’t heard from us in the past, but we’ve been working in the background to create a better experience for you, our dedicated Matomo community.

    Kia ora ? Well, that just means “hello” in Maori, we’re based in New Zealand you see.

    The Matomo marketing team has some really exciting projects in the works we wanted to share with you, but first, there’s someone I want to introduce :

    Meet Joselyn from the Matomo Marketing team

    Meet Joselyn, one half of the Matomo marketing team and our Digital Marketing and Communications Specialist. Joselyn has come on board to help us communicate more frequently and effectively as we continue our mission to be the #1 free open source analytics platform in the world. Please take it away, Joselyn !

    “Hi everyone ! The team here at Matomo have been doing an incredible job passionately driving the cause for user privacy and data ownership and uniting that with a love for digital analytics. It’s exciting being a part of a team unafraid to push on with their hearts on their sleeves and their values at the forefront of everything they do. I hope to bring to light all the fantastic things happening in our world of web analytics as well as across the globe.

    marketing
    Joselyn Khor – Digital Marketing & Comms Specialist

    Our online world is fascinating when we think about what we can achieve with analytics, but there’s room to improve. We see newer technologies, but old ways of working which don’t take into account a person’s safety online. So we hope to champion a new future which looks set to be much more meaningful. Ensuring you get the best experience, but also feel protected with the knowledge that we get it. Your data and privacy isn’t for sale.

    I also hear you guys, the community, have followed Matomo since the beginning, which is wonderful ! I hope you’ll be able to join us as we grow and learn. We’ve got so many thrilling things to share with you. The highs, the lows and everything in between. Cheers !”

    Thanks Joselyn ! On top of working to engage the community and new users, Joselyn will also be keeping the rest of the Matomo team on our toes getting the inside scoop on what’s happening within the Development and Support teams ; as well as giving you behind-the-scenes access to what’s going on here at Matomo. We have a big vision and with so many things happening right now, we want to get you involved as much as possible.

    It may sound a bit clichéd but I’m saying it anyway – without your help, Matomo wouldn’t be here today.

    Help us choose a logo

    So first of all, we want you to say thank you and second we’d be delighted if you could help choose our new logo ! As you may already know, we changed our name from Piwik to Matomo at the start of the year. Though it was fun using a cool font (Aileron Heavy btw) as a quick fix for our name change, it was a temporary solution. The Matomo team has been involved in the direction of creating a new logo, but now we’re stumped ! We have three different concepts to choose from so please help us out !

    Click here to logo poll

    A new website for Matomo.org !

    Other exciting marketing projects include a new website design (yay !) – to everyone gasping nervously…don’t worry, nothing in what we offer is changing. We are and always will be a freely accessible open source analytics platform, just wanted to quickly clear the air on that one !

    We also have some video projects in the works to make the Matomo experience better for everyone and there are even rumours a brand video that tells the Matomo story is on the way ;)

    What next ? With Joselyn on board and loads of exciting projects happening, it won’t be long until you hear from us again, so keep an eye out for our next update as we reveal the winning Matomo logo.

    Be sure to follow us on Facebook, Twitter and Github – we promise to be more active than what we have been !

  • Stream RAW8 video from camera using openCV and Python [Windows]

    14 novembre 2022, par awin

    We have a camera that streams RAW8 video at 1920x1080. The GUID used is GREY. We are able to stream video from this camera using ffmpeg on Windows with the below command :

    &#xA;

    ffmpeg -f dshow -pix_fmt gray -video_size 1920x1080 -i video="CAM0" -f nut - | ffplay -&#xA;

    &#xA;

    We are now trying to grab images from this camera using OpenCV using the below code snippet, but its unable to grab any frame (frame_grabbed is always false)

    &#xA;

    import cv2&#xA;import numpy as np&#xA;&#xA;# reading the video from CAM0&#xA;source = cv2.VideoCapture(1)&#xA;&#xA;height = 1920&#xA;width = 1080&#xA;&#xA;source.set(cv2.CAP_PROP_FRAME_WIDTH, width)&#xA;source.set(cv2.CAP_PROP_FRAME_HEIGHT, height)&#xA;&#xA;&#xA;image = np.zeros([height, width, 3], np.uint8)&#xA;&#xA;while True:&#xA;    # Extracting the frames&#xA;    frame_grabbed , image = source.read()&#xA;&#xA;    if (frame_grabbed ):&#xA;        colour1 = cv2.cvtColor(image, cv2.COLOR_BayerRG2BGR)&#xA;        cv2.imshow("Demosaiced image", colour1)&#xA;    else:&#xA;        print("No images grabbed")&#xA;&#xA;#Exit on q&#xA;    key = cv2.waitKey(1)&#xA;    if key == ord("q"):&#xA;       break&#xA;&#xA;# closing the window&#xA;cv2.destroyAllWindows()&#xA;source.release()&#xA;&#xA;

    &#xA;

    Are we missing something here ?

    &#xA;

    We then came across this post to pipe ffmpeg output to python (link). However, when we are passing the command as below :

    &#xA;

    command = [ &#x27;ffmpeg.exe&#x27;,&#xA;            &#x27;-f&#x27;, &#x27;dshow&#x27;,&#xA;            &#x27;-i&#x27;, &#x27;video="CAM0"&#x27;,&#xA;            &#x27;-pix_fmt&#x27;, &#x27;gray&#x27;,&#xA;            &#x27;-video_size&#x27;,&#x27;1920x1080&#x27;&#xA;            &#x27;-f&#x27;, &#x27;nut&#x27;, &#x27;-&#x27;]&#xA;

    &#xA;

    its throwing

    &#xA;

    &#xA;

    Could not find video device with name ["CAM0"] among source devices&#xA;of type video. video="CAM0" : I/O error

    &#xA;

    &#xA;

    I have verified that the camera is present using the below command :

    &#xA;

    command = [ &#x27;ffmpeg.exe&#x27;,&#xA;            &#x27;-list_devices&#x27;, &#x27;true&#x27;,&#xA;            &#x27;-f&#x27;, &#x27;dshow&#x27;,&#xA;            &#x27;-i&#x27;, &#x27;dummy&#x27;]&#xA;

    &#xA;

    This detects CAM0 as shown below :

    &#xA;

    ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab &#xA;--enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      57. 17.100 / 57. 17.100&#xA;  libavcodec     59. 18.100 / 59. 18.100&#xA;  libavformat    59. 16.100 / 59. 16.100&#xA;  libavdevice    59.  4.100 / 59.  4.100&#xA;  libavfilter     8. 24.100 /  8. 24.100&#xA;  libswscale      6.  4.100 /  6.  4.100&#xA;  libswresample   4.  3.100 /  4.  3.100&#xA;  libpostproc    56.  3.100 / 56.  3.100&#xA;[dshow @ 000001ea39e40600] "HP HD Camera" (video)&#xA;[dshow @ 000001ea39e40600]   Alternative name "@device_pnp_\\?\usb#vid_04f2&amp;pid_b6bf&amp;mi_00#6&amp;1737142c&amp;0&amp;0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"&#xA;[dshow @ 000001ea39e40600] "CAM0" (video)&#xA;[dshow @ 000001ea39e40600]   Alternative name "@device_pnp_\\?\usb#vid_0400&amp;pid_0011&amp;mi_00#7&amp;1affbd5b&amp;0&amp;0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"&#xA;

    &#xA;

    In short, we are able to capture video using ffmpeg commandline, but unable to grab any frame using OpenCV videocapture or ffmpeg in opencv. Any pointers ?

    &#xA;

    Thanks !

    &#xA;