Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (64)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • Revision 34501 : Premier jet de la categorie statistique

    16 janvier 2010, par eric@… — Log

    Premier jet de la categorie statistique

  • How can I display a multicast video stream in a React.js web application using FFmpeg and JavaScript ?

    20 mai 2023, par OmriHalifa

    I'm working on a project where I'm sending video using the following FFmpeg command :
ffmpeg -f dshow -i video="HP Wide Vision HD Camera" -profile:v high -pix_fmt yuvj420p -level:v 4.1 -preset ultrafast -tune zerolatency -vcodec libx264 -r 10 -b:v 512k -s 640x360 -acodec aac -ac 2 -ab 32k -ar 44100 -f mpegts -flush_packets 0 udp://235.235.235.235:12345 
My goal is to display the sent video using JavaScript and React. Is this possible, and how can it be accomplished ?

    


    I tried using the video.js library, but I received the following error :
video.es.js:218 VIDEOJS: ERROR: (CODE:2 MEDIA_ERR_NETWORK) HLS playlist request error at URL: udp://235.235.235.235:12345.
This is the code I wrote :

    


    import React, { useEffect, useRef } from "react";&#xA;import videojs from "video.js";&#xA;&#xA;import "video.js/dist/video-js.css";&#xA;&#xA;const VideoPlayer = () => {&#xA;  const videoRef = useRef(null);&#xA;&#xA;  useEffect(() => {&#xA;    const videoElement = videoRef.current;&#xA;    const options = {&#xA;      techOrder: ["html5"],&#xA;      sources: [&#xA;        {&#xA;          src: "udp://235.235.235.235:12345",&#xA;          type: "application/x-mpegURL",&#xA;        },&#xA;      ],&#xA;    };&#xA;&#xA;    const player = videojs(videoElement, options);&#xA;&#xA;    return () => {&#xA;      if (player) {&#xA;        player.dispose();&#xA;      }&#xA;    };&#xA;  }, []);&#xA;&#xA;  return (&#xA;    <div>&#xA;      <video ref="{videoRef}" classname="video-js vjs-default-skin"></video>&#xA;    </div>&#xA;  );&#xA;};&#xA;&#xA;export default VideoPlayer;&#xA;&#xA;import React from "react";&#xA;import VideoPlayer from "./VideoPlayer.js";&#xA;&#xA;const App = () => {&#xA;  return (&#xA;    <div>&#xA;      <h1>Displaying Multicast Stream</h1>&#xA;      <videoplayer></videoplayer>&#xA;    </div>&#xA;  );&#xA;};&#xA;&#xA;export default App;&#xA;&#xA;

    &#xA;

    Are there any other pre-built libraries available that I can use for this purpose ? If not, what alternatives or options might be available ? Thank you in advance !

    &#xA;

  • Streaming audio from mac with ffmpeg to nginx and playback with videojs

    15 juillet 2020, par Disco Fever

    I'm playing around trying to get to stream my Mac's sound to a webpage.

    &#xA;

    Here's what I have so far :

    &#xA;

    On the mac :

    &#xA;

    ffmpeg -f avfoundation -i ":2" -acodec libmp3lame -ab32k -ac 1 -f flv rtmp://myserver:8000/hls/live&#xA;

    &#xA;

    On the nginx side :

    &#xA;

    events {&#xA;    worker_connections  1024;&#xA;}&#xA;&#xA;rtmp {&#xA;    server {&#xA;        listen 8000;&#xA;        chunk_size 4000;&#xA;        application hls {&#xA;            live on;&#xA;            interleave on;&#xA;            hls on;&#xA;            hls_path /tmp/hls;&#xA;        }&#xA;    }&#xA;}&#xA;&#xA;http {&#xA;    default_type  application/octet-stream;&#xA;    sendfile off;&#xA;    tcp_nopush on;&#xA;    server {&#xA;&#xA;        listen      8080;&#xA;        location /hls {&#xA;            add_header Cache-Control no-cache;&#xA;            types {&#xA;                application/vnd.apple.mpegurl m3u8;&#xA;                video/mp2t ts;&#xA;            }&#xA;            root /tmp;&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    Web side :

    &#xA;

    &#xA;&#xA;&#xA;    &#xA;    &#xA;&#xA;<code class="echappe-js">&lt;script src=&quot;//vjs.zencdn.net/7.8.2/video.min.js&quot;&gt;&lt;/script&gt;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA;

    &#xA;

    No matter what i do I can't get any sound (it's playing on the Mac 100% sure) ; i've tried also putting a video tag instead, i see the image but no sound. What's missing here ? Can this even be achieved ?

    &#xA;

    THanks

    &#xA;