Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (47)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

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

  • avformat/matroskaenc : Add support for FlagTextDescriptions

    16 février 2021, par Andreas Rheinhardt
    avformat/matroskaenc : Add support for FlagTextDescriptions
    

    This is the Matroska equivalent of D_WEBVTT_DESCRIPTIONS and is
    therefore only enabled for subtitles.

    Reviewed-by : Ridley Combs <rcombs@rcombs.me>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/matroskaenc.c
  • how to record camera to file while encoding stream to v4l2-loopback device ?

    3 février 2021, par Jonatas

    So i have this logitech c920 camera 1920x1080 h264 capable and i would like to record the camera to file while at the same time copying/encoding the stream to a loopback device so the camera can be still used by other apps.&#xA;here is the code i got so far :

    &#xA;

    ffmpeg -report -f alsa -i hw:CARD=C920,DEV=0 -r 1500 -s 1920x1080 -f v4l2 -vcodec h264 \&#xA;-i /dev/video1 -copyinkf -vcodec copy /home/jonatas/Videos/2021-02-01185658.mp4 \ &#xA;-f v4l2 /dev/video0&#xA;

    &#xA;

    error :

    &#xA;

    Unknown V4L2 pixel format equivalent for yuvj420p&#xA;Could not write header for output file #1 (incorrect codec parameters ?): Invalid argument&#xA;Error initializing output stream 1:0 -- &#xA;

    &#xA;

    some info on /dev/video0(loopbackdevice) :

    &#xA;

    v4l2-ctl -d /dev/video0&#xA;&#xA;    Device Caps      : 0x05208003&#xA;        Video Capture&#xA;        Video Output&#xA;        Video Memory-to-Memory&#xA;        Read/Write&#xA;        Streaming&#xA;        Extended Pix Format&#xA;Priority: 0&#xA;Video input : 0 (loopback: ok)&#xA;Video output: 0 (loopback in)&#xA;Format Video Output:&#xA;    Width/Height      : 1280/720&#xA;    Pixel Format      : &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;    Field             : None&#xA;    Bytes per Line    : 2560&#xA;    Size Image        : 1843200&#xA;    Colorspace        : sRGB&#xA;    Transfer Function : Default (maps to sRGB)&#xA;    YCbCr/HSV Encoding: Default (maps to ITU-R 601)&#xA;    Quantization      : Default (maps to Limited Range)&#xA;    Flags             : &#xA;Streaming Parameters Video Capture:&#xA;    Frames per second: 30.000 (30/1)&#xA;    Read buffers     : 8&#xA;Streaming Parameters Video Output:&#xA;    Frames per second: 30.000 (30/1)&#xA;    Write buffers    : 8&#xA;&#xA;User Controls&#xA;&#xA;                    keep_format 0x0098f900 (bool)   : default=0 value=0&#xA;              sustain_framerate 0x0098f901 (bool)   : default=0 value=0&#xA;                        timeout 0x0098f902 (int)    : min=0 max=100000 step=1 default=0 value=0&#xA;               timeout_image_io 0x0098f903 (bool)   : default=0 value=0&#xA;

    &#xA;

    some info on my camera in /dev/video1

    &#xA;

    v4l2-ctl -d /dev/video1 --all&#xA;Driver Info:&#xA;    Driver name      : uvcvideo&#xA;    Card type        : HD Pro Webcam C920&#xA;    Bus info         : usb-0000:00:14.0-7.2&#xA;    Driver version   : 5.4.78&#xA;    Capabilities     : 0x84a00001&#xA;        Video Capture&#xA;        Metadata Capture&#xA;        Streaming&#xA;        Extended Pix Format&#xA;        Device Capabilities&#xA;    Device Caps      : 0x04200001&#xA;        Video Capture&#xA;        Streaming&#xA;        Extended Pix Format&#xA;Media Driver Info:&#xA;    Driver name      : uvcvideo&#xA;    Model            : HD Pro Webcam C920&#xA;    Serial           : EC6C336F&#xA;    Bus info         : usb-0000:00:14.0-7.2&#xA;    Media version    : 5.4.78&#xA;    Hardware revision: 0x00000011 (17)&#xA;    Driver version   : 5.4.78&#xA;Interface Info:&#xA;    ID               : 0x03000002&#xA;    Type             : V4L Video&#xA;Entity Info:&#xA;    ID               : 0x00000001 (1)&#xA;    Name             : HD Pro Webcam C920&#xA;    Function         : V4L2 I/O&#xA;    Flags         : default&#xA;    Pad 0x01000007   : 0: Sink&#xA;      Link 0x0200001f: from remote pad 0x100000a of entity &#x27;Processing 3&#x27;: Data, Enabled, Immutable&#xA;Priority: 2&#xA;Video input : 0 (Camera 1: ok)&#xA;Format Video Capture:&#xA;    Width/Height      : 1280/720&#xA;    Pixel Format      : &#x27;H264&#x27; (H.264)&#xA;    Field             : None&#xA;    Bytes per Line    : 2560&#xA;    Size Image        : 1843200&#xA;    Colorspace        : sRGB&#xA;    Transfer Function : Default (maps to sRGB)&#xA;    YCbCr/HSV Encoding: Default (maps to ITU-R 601)&#xA;    Quantization      : Default (maps to Full Range)&#xA;    Flags             : &#xA;Crop Capability Video Capture:&#xA;    Bounds      : Left 0, Top 0, Width 1280, Height 720&#xA;    Default     : Left 0, Top 0, Width 1280, Height 720&#xA;    Pixel Aspect: 1/1&#xA;Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 720, Flags: &#xA;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 720, Flags: &#xA;Streaming Parameters Video Capture:&#xA;    Capabilities     : timeperframe&#xA;    Frames per second: 30.000 (30/1)&#xA;    Read buffers     : 0&#xA;                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128&#xA;                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128&#xA;                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128&#xA; white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1&#xA;                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=0 value=255&#xA;           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2&#xA;                0: Disabled&#xA;                1: 50 Hz&#xA;                2: 60 Hz&#xA;      white_balance_temperature 0x0098091a (int)    : min=2000 max=6500 step=1 default=4000 value=3233 flags=inactive&#xA;                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128&#xA;         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0&#xA;                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3&#xA;                1: Manual Mode&#xA;                3: Aperture Priority Mode&#xA;              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=250 value=333 flags=inactive&#xA;         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=0&#xA;                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=3600 default=0 value=0&#xA;                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=3600 default=0 value=0&#xA;                 focus_absolute 0x009a090a (int)    : min=0 max=250 step=5 default=0 value=0&#xA;                     focus_auto 0x009a090c (bool)   : default=1 value=0&#xA;                  zoom_absolute 0x009a090d (int)    : min=100 max=500 step=1 default=100 value=100&#xA;

    &#xA;

    if i remove the 3rd line of my script the camera records the stream of video and sound to the file flawless. i tried diferent things for the 3rd line as -vcodec and something to do with pix-format flag to YUYV without success.&#xA;Is it possible to achieve this with just one ffmpeg process ?&#xA;Will the sound be made available to the loopback device also ?&#xA;How to transcode it to the proper pixel format used by loopback device ?

    &#xA;

  • Evolution #4641 (Nouveau) : Des rechargements Ajax avec des transitions personnalisables

    27 janvier 2021

    En me penchant sur les librairies JS de transitions entre pages telles que https://barba.js.org ou https://swup.js.org, je me faisais la réflexion qu’on a déjà quasiment tout ce qu’il faut dans Spip pour avoir l’équivalent avec les rechargements de blocs Ajax.

    Il ne s’agirait pas d’ajouter une ces libs hein, mais juste d’étendre le mécanisme actuel dans ajaxCallback.js, ce qui devrait permettre de reproduire la chose à peu de frais (pour les blocs ajax, pas des pages entières donc).
    Je n’ai pas encore regardé en détail, mais il semblerait qu’il ne manque pas grand chose.

    Pour rappel, ces libs reposent entièrement sur des animations CSS pour les transitions, animations personnalisables au cas par cas : c’est souple et facile à personnaliser.
    Des classes sont ajoutées au conteneur pour indiquer chaque étape (couplé à des events JS) : quand l’ancien contenu part, quand le nouveau arrive, etc.
    Exemple pour Swup : https://swup.js.org/getting-started/how-it-works.
    Exemple pour Barba : https://barba.js.org/docs/getstarted/lifecycle/

    Pour nos rechargements ajax c’est déjà un peu pareil, il y a plusieurs étapes (début du chargement, fin du chargement), sauf que les styles CSS sont mis en dur : .css('opacity', 0.5)

    Donc ce que j’imagine, c’est ça :

    • Ne plus mettre des styles en dur, mais des classes CSS. Par défaut il s’agirait par exemple de .ajax-transition-defaut.
    • Découper le chargement en autant d’étapes que nécessaires, chaque étape appliquant une classe au bloc, par exemple : .ajax-loading-beforeleaving, .ajax-loading-isleaving, .ajax-loading-afterleaving, etc.
    • Chaque étape ne doit appeler la suivante qu’une fois l’animation (optionnelle) de l’étape précédente terminée. C’est une chose possible en JS (attendre la fin de l’anim du bloc ciblé). Par exemple si un⋅e intégrateur⋅ice décide que son animation de départ et d’arrivée prend 10s, ça la regarde, on n’impose rien.
    • Enfin, permettre de choisir l’animation désirée pour chaque bloc, au cas par cas. Il pourrait s’agir par exemple d’un paramètre réservé en complément de `ajax` :

    Le but c’est que ça reste facilement prenable en main par les intégrateurs et intégratrices.

    Exemple concret.

    Mettons que je veuille une animation personnalisée pour un bloc, je lui donne un identifiant :

    <span class="CodeRay"><span class="tag">span><span class="error">{</span><span class="attribute-name">fond</span>=<span class="attribute-value">truc</span><span class="error">,</span> <span class="attribute-name">ajax</span>=<span class="attribute-value">machin</span><span class="error">,</span> <span class="attribute-name">ajax_transition</span>=<span class="attribute-value">mojito</span><span class="error">}</span><span class="tag">></span>
    </span></span>

    La transition personnalisée est ajoutée comme classe au bloc ajax, ainsi que l’étape actuelle mise à jour au fil du chargement :

    <span class="CodeRay"><span class="tag">span> <span class="attribute-name">class</span>=<span class="string"><span class="delimiter">"</span><span class="content">ajaxbloc ajax-id-machin ajax-transition-mojito ajax-loading-[etape_du_chargement]</span><span class="delimiter">"</span></span> <span class="attribute-name">data-ajax-env</span>=<span class="string"><span class="delimiter">"</span><span class="content">…</span><span class="delimiter">"</span></span><span class="tag">></span>
    </span></span>

    Il reste juste à créer les styles pour chaque étape de cette transition, et on fait absolument ce qu’on veut : flip en 3D, translation…
    Nb : il n’est pas toujours nécessaire d’avoir des styles pour toutes les étapes, ça dépend de ce qu’on veut.

    1. <span class="CodeRay"><span class="class">.ajax-transition-mojito</span><span class="class">.ajax-loading-beforeleaving</span> {<span class="error">…</span> }
    2. <span class="class">.ajax-transition-mojito</span><span class="class">.ajax-loading-isleaving</span> {<span class="error">…</span> }
    3. <span class="class">.ajax-transition-mojito</span><span class="class">.ajax-loading-afterleaving</span> {<span class="error">…</span> }
    4. // <span class="tag">etc</span>.
    5. </span>

    Télécharger

    Et donc pour la transition par défaut, il y aurait son équivalent en CSS fourni par Spip, avec l’opacité à 50% etc.
    Et personnalisable facilement également si on le souhaite.