Recherche avancée

Médias (91)

Autres articles (75)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par 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 ;

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (10323)

  • Is there a way to improve/ decode .h264 stream and use opencv for image processing

    8 mai 2024, par Saail Chavan

    I am using a lewei camera on my drone and i have managed to get the stream using https://github.com/meekworth/pylwdrone, i want to do basic image processing like face or object detection or qr code scan which i am unable to do

    


    when i use this command in terminal :

    


    $ pylwdrone stream start --out-file - | ffplay -i -fflags nobuffer -flags low_delay -probesize 32 -sync ext -


    


    i get a clear feed with no errors

    


    enter image description here

    


    When i am using the script in python i am getting errors and the feed is bit lagged and skips frames

    


    import cv2
import numpy as np
import pylwdrone
import ffmpeg
import sys

drone = pylwdrone.LWDrone()
drone.set_time()

window_name = 'Drone Video Stream'
cv2.namedWindow(window_name, cv2.WINDOW_NORMAL)

for packet in drone.start_video_stream():
    try:

        out, _ = (
            ffmpeg.input('pipe:0')
            .output('pipe:', format='rawvideo', pix_fmt='bgr24')
            .run(input=packet.frame_bytes, capture_stdout=True, capture_stderr=True)
        )
        frame = np.frombuffer(out, np.uint8)
        height, width = 1152, 2048
        frame = frame.reshape((height, width, 3))


        # Display video stream
        cv2.imshow(window_name, frame)

        # Check for 'q' key to exit
        if cv2.waitKey(1) & 0xFF == ord('q'):
            break

    except ffmpeg.Error as e:
        print('An error occurred:', e.stderr.decode(), file=sys.stderr)

cv2.destroyAllWindows()
drone.stop_video_stream()


    


    ERROR :
enter image description here

    


  • Anomalie #3991 : Erreur compression CSS et base64

    29 août 2017, par tcharlss (*´_ゝ`)

    La ligne fautive se trouve ici : https://zone.spip.org/trac/spip-zone/browser/_core_/plugins/compresseur/inc/compresseur_minifier.php#L100

    // zero est zero, quelle que soit l’unite (sauf pour % car casse les @keyframes cf https://core.spip.net/issues/3128)
    $contenu = preg_replace("/([^0-9.]0)(em|px|pt)/ms", "$1", $contenu) ;
    

    Ça cherche le nombre zéro précédé de n’importe quel caractère (autre qu’un chiffre) ou d’un point.
    Du coup ça peut matcher avec les data URIs :

    @font-facefont-family :’spip’ ;src:url("data:application/font-woff ;base64,abc0pxyz") ;
    

    Pour éviter ce souci, on pourrait préciser exactement quels caractères peuvent précéder le zéro pour considérer qu’il s’agit d’une unité. On peut avoir :

    1) deux points

    font-size:0px ;
    

    2) un ou plusieurs espaces

    font-size : 0px ;
    font-size : calc(10px + 0px) ;
    

    3) une parenthèse dans le cas de calc()

    font-size : calc(0px) ;
    

    4) Autres unités

    À noter qu’il y a aussi pas mal d’autres unités qui ne sont pas prises en compte dans la regex actuelle : https://www.w3schools.com/cssref/css_units.asp

    rem ex pc
    vh vw vmin vmax 
    cm mm in
    ch 
    

    Ce qui donne au final la regex suivante, qui laisse mes data URIs tranquilles :

    $contenu = preg_replace("/((?: :|\s+|\()0)(em|px|pt|rem|ex|pc|vh|vw|vmin|vmax|cm|mm|in|ch)/ms", "$1", $contenu) ;
    
  • android nkd no include path in which to search for limits.h #include_next

    3 octobre 2018, par Yunga

    When i build the x264 ndk library , i face a problem .
    I’ve compiled both in window and liunx environment.i got the same mistakes...

    like this :

    In file included
    from c:\users\xxx\appdata\local\android\sdk\ndk-bundle\toolchains\
    aarch64-linux-android-4.9\prebuilt\windows-x86_64\lib\gcc\aarch64-linux-android\4.9.x\include-fixed\syslimits.h:7:0,
    from c:\users\xxx\appdata\local\android\sdk\ndk-bundle\toolchains\
    aarch64-linux-android-4.9\prebuilt\windows-x86_64\lib\gcc\aarch64-linux-android\4.9.x\include-fixed\limits.h:34,
    from ./common/common.h:123,
    from ./x264cli.h:30,
    from ./input/input.h:31,
    from ./filters/video/video.h:29,
    from ./filters/video/depth.c:26:
    c:\users\xxx\appdata\local\android\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\
    prebuilt\windows-x86_64\lib\gcc\aarch64-linux-android\4.9.x\include-fixed\limits.h:168:61:
    error: no include path in which to search for limits.h
    #include_next   /* recurse down to the real one */

    make: *** [.depend] Error 1

    Here is my script :

    SYSROOT=$NDK/platforms/android-21/arch-arm64
    TOOLCHAIN=$NDK/toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64
    CC=$TOOLCHAIN/bin/aarch64-linux-android-gcc-4.9.x
    #CXX=$TOOLCHAIN/bin/aarch64-linux-android-g++
    CROSS_PREFIX=$TOOLCHAIN/bin/aarch64-linux-android-
    EXTRA_CFLAGS="-march=armv8-a -D__ANDROID__"
    EXTRA_LDFLAGS="-nostdlib"

    ./configure --prefix=$PREFIX \
           --host=arm-linux \
           --sysroot=$SYSROOT \
           --cross-prefix=$CROSS_PREFIX \
           --extra-cflags="$EXTRA_CFLAGS" \
           --extra-ldflags="$EXTRA_LDFLAGS" \
           --enable-pic \
           --enable-static \
           --enable-strip \
           --disable-cli \
           --disable-win32thread \
           --disable-avs \
           --disable-swscale \
           --disable-lavf \
           --disable-ffms \
           --disable-gpac \
           --disable-lsmash \
           --disable-asm \
           --disable-opencl

    does anyone know how to solve it ? thanks every much.