Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (46)

  • 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 (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8297)

  • draw a rectangle on YUV420p frame with python opencv

    18 janvier 2021, par user3705497

    I have a python script sandwiched between ffmpeg input and output commands
logically looks like the following :

    


    ffmpeg -i webcam -vf format=yuv420p -f rawvideo - | python below.py | ffmpeg -f rawvideo -video_size 640x480 -i - -f sometype some_output 


    


    Below is the python script snippet :

    


    import cv2 as cv
import sys
import subprocess as sp
import numpy as np

if sys.platform == "win32":
    import os, msvcrt
    msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)

width = 640
height = 480

FFMPEG_BIN = 'ffmpeg'
command = [ FFMPEG_BIN,
            '-re',
            '-f', 'dshow',
            '-rtbufsize', '200M',
            '-i', 'video=USB2.0 VGA UVC WebCam',
            '-vf', 'format=yuv420p',
            '-f', 'rawvideo', '-']
pipe = sp.Popen(command, stdout = sp.PIPE, bufsize=10**8) 

while True:
    raw_image = pipe.stdout.read(width*height*3)
    frame = np.frombuffer(raw_image, dtype='uint8')

    frame = frame.reshape((height,width,3)) 

    # cv.rectangle(frame, (xmin, ymin), (xmax, ymax), color=(0, 255, 0), thickness=1)

    sys.stdout.buffer.write( frame.tostring() )


    


    I want to draw a rectangle on the YUV frame. I can't seem to get the right color (should be green - (0, 255, 0))

    


    My understanding, so far, is to break down the frame into 3 pieces Y, U, V and rejoin them. Not sure if this is correct and Which layer should I call cv.rectangle on ?

    


  • I got error about ffmpeg

    4 mai 2018, par Zafshot
    sudo ffserver -f /etc/ff.conf_original & ffmpeg -v quiet -r 5 -s 320x240 -f video4linux2 -i /dev/video0 http://localhost/webcam.ffm

    For stream on my Raspberry Pi,
    I’ve tried the code. But i can’t do it, is there any way to stream with FFmpeg ?

  • Implement Circular Buffer for v4l2

    9 février 2018, par dvrhax

    I’m looking for an efficient way to implement a circular buffer like object to continuously record from an webcam but only holding a fixed amount of time. ie continuous monitoring of video stream but only keeping the last 2 secs in memory at any one time.