Recherche avancée

Médias (91)

Autres articles (3)

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

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (796)

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

  • 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 :&#xA;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 &#xA;My goal is to display the sent video using JavaScript and React. Is this possible, and how can it be accomplished ?

    &#xA;

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

    &#xA;

    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 images as video on the fly using ffmpeg and ffserver

    1er décembre 2017, par AstrOne

    I have an OpenGL application that renders a 3D scene, and in every frame, it captures the OpenGL frame buffer, and saves it to a series of files (frame_1.png, frame_2.png, etc). I want to convert those images into a video stream and serve/broadcast it. From what I have read so far one solution would be to use ffmpeg and ffserver.

    There are several similar questions on StackOverflow but each one is a bit different, and they don’t ask exactly what I want. For example there are solutions to generate videos (but not streams) from images. Some others generate streams but not "live" ones. And so on.

    • I want the generated frames to be streamed as soon as possible after they are created. This is because the OpenGL application is supposed to be interactive. Latter on, a remote user should be able to send events (mouse motions and clicks) and interact with the rendered 3D scene.
    • I don’t want ffserver to do any kind of buffering because there is nothing to buffer, the frames must be served immediately.
    • Given that the frames must be served immediately, I guess I could just write the frames on top of each other. However, in that case there will be a synchronisation problem because the ffmpeg may try to read the image before the OpenGL application has finished writing on it. Any thoughts on that ?
    • In case the ffserver and the OpenGL application share the same RAM and not just the filesystem, ideally, I would like to not use files at all for the communication. I guess for my OpenGL application I could use something like mmap or some sort of shared memory, but ffmpeg can’t read from some kind of shared memory, right ?

    I would be more than grateful if someone could advice me how I need to setup the ffserver and the ffmpeg command to meet the above requirements (especially the first one).