Recherche avancée

Médias (91)

Autres articles (29)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4140)

  • Compile static FFmpeg with openssl

    26 janvier 2016, par Nisker

    I am trying to compile FFmpeg static (one binary) using

    ./configure --pkg-config-flags="--static" --enable-gpl --enable-version3 --enable-libfdk_aac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxvid --enable-postproc --enable-avfilter --enable-static --disable-shared --enable-pthreads --enable-openssl --extra-libs='-static' --extra-cflags=--static  

    But I am getting

    ERROR: openssl not found

    I have openssl installed, have tried with the rpm and also compiled openssl with static but dont have luck, here is part of the config.log

    BEGIN /tmp/ffconf.2NFtoMnY.c
       1   #include <openssl></openssl>ssl.h>
       2   int x;
    END /tmp/ffconf.2NFtoMnY.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 --static -std=c99 -fomit-frame-pointer -pthread -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -E -o /tmp/ffconf.BbfSf5F3.o /tmp/ffconf.2NFtoMnY.c
    check_func SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32
    check_ld cc -lssl -lcrypto -lws2_32 -lgdi32
    check_cc
    BEGIN /tmp/ffconf.2NFtoMnY.c
       1   extern int SSL_library_init();
       2   int main(void){ SSL_library_init(); }
    END /tmp/ffconf.2NFtoMnY.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 --static -std=c99 -fomit-frame-pointer -pthread -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -c -o /tmp/ffconf.BbfSf5F3.o /tmp/ffconf.2NFtoMnY.c
    gcc -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.NhkNQy0E /tmp/ffconf.BbfSf5F3.o -lssl -lcrypto -lws2_32 -lgdi32 -lxvidcore -L/usr/local/lib -lx264 -lpthread -lm -ldl -L/usr/local/lib -lvpx -lm -lpthread -L/usr/local/lib -lvpx -lm -lpthread -L/usr/local/lib -lvpx -lm -lpthread -L/usr/local/lib -lvpx -lm -lpthread -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lopencore-amrwb -lopencore-amrnb -lmp3lame -L/usr/local/lib -lfdk-aac -lm -lm -pthread -lrt -static
    /usr/bin/ld: cannot find -lws2_32
    collect2: ld returned 1 exit status
    ERROR: openssl not found

    Anyone have a clue ?

  • Electron spawn ffmpeg ENOENT

    3 août 2022, par Menno

    I am building an Electron app to display a rtsp stream.

    &#xA;

    When using the locally installed ffmpeg (/usr/local/bin/ffmpeg) on the (MacOS) Desktop all works well. Since the app needs to be distributed to different desktops and i don't want to be dependent on local installation of ffmpeg i am trying to bundle ffmpeg / fluent-ffmpeg but somehow i am missing the clue and all my attempts end up in Uncaught Error : spawn ffmpeg ENOENT

    &#xA;

    I am a complete newby to Electron and nodejs and am sure i am missing a very basic concept here, somebody willing to help me out ?

    &#xA;

    This is my code :

    &#xA;

    main.js

    &#xA;

    const { app, BrowserWindow } = require(&#x27;electron&#x27;);&#xA;const { ipcMain } = require(&#x27;electron&#x27;);&#xA;const path = require(&#x27;path&#x27;);&#xA;&#xA;const createWindow = () => {&#xA;  const win = new BrowserWindow({&#xA;    width: 800,&#xA;    height: 600,&#xA;    webPreferences: {&#xA;      preload: path.join(__dirname, &#x27;preload.js&#x27;),&#xA;    },&#xA;  });&#xA;    &#xA;  win.loadFile(&#x27;index.html&#x27;);&#xA;};&#xA;&#xA;app.whenReady().then(() => {&#xA;  createWindow();&#xA;&#xA;  app.on(&#x27;activate&#x27;, () => {&#xA;    if (BrowserWindow.getAllWindows().length === 0) {&#xA;      createWindow();&#xA;    }&#xA;  });&#xA;});&#xA;&#xA;app.on(&#x27;window-all-closed&#x27;, () => {&#xA;  if (process.platform !== &#x27;darwin&#x27;) {&#xA;    app.quit();&#xA;  }&#xA;});&#xA;

    &#xA;

    index.html

    &#xA;

    &#xA;&#xA;  &#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;  &#xA;  &#xA;    <div class="col-sm"><h2>RTSP stream</h2><canvas class="canvas"></canvas></div>&#xA;&#xA;    &#xA;&#xA;    <code class="echappe-js">&lt;script src='http://stackoverflow.com/feeds/tag/&amp;#38;#x27;./jsmpeg.min.js&amp;#38;#x27;'&gt;&lt;/script&gt;&#xA;    &lt;script src='http://stackoverflow.com/feeds/tag/renderer.js'&gt;&lt;/script&gt;&#xA;    &#xA;&#xA;

    &#xA;

    preload.js

    &#xA;

    const { contextBridge, ipcRenderer } = require(&#x27;electron&#x27;)&#xA;&#xA;const ffmpegPath = require("@ffmpeg-installer/ffmpeg").path;&#xA;const ffmpeg = require("fluent-ffmpeg");&#xA;ffmpeg.setFfmpegPath(ffmpegPath);&#xA;&#xA;var stream = require(&#x27;node-rtsp-stream&#x27;)&#xA;&#xA;stream3 = new stream({&#xA;    name: &#x27;stream3&#x27;,&#xA;    streamUrl: &#x27;rtsp://xxx.xxx.xxx.xxx/...........&#x27;,&#xA;    wsPort: 9993,&#xA;    ffmpegOptions: {&#xA;&#xA;  }&#xA;})&#xA;

    &#xA;

    renderer.js

    &#xA;

    const player = new JSMpeg.Player(&#x27;ws://localhost:9993&#x27;, {&#xA;      canvas: document.getElementById(&#x27;canvas3&#x27;), audio: false&#xA;    })  &#xA;

    &#xA;

  • ffmpeg to kurento rtp stream choppy video issue

    29 juillet 2020, par ahmetsarias

    I use ffmpeg to make an rtp stream to kurento media server and then send it to browsers via webrtc.

    &#xA;

    ffmpeg (h264 RTP) -> Kurento -> (h264 WebRTC) Browser

    &#xA;

    I'm capturing virtual xorg display.&#xA;This is my ffmpeg command :

    &#xA;

    ffmpeg -y -v info -fflags &#x2B;genpts -f x11grab -draw_mouse 0 -r 25 -s 1280x720 -thread_queue_size 4096 -i :0.0&#x2B;0,0 -an -c:v libx264 -preset veryfast -crf 25 -g 50 -pix_fmt yuv420p -maxrate 2976k -bufsize 5952k -ssrc 112233 -payload_type 103 -tune zerolatency -f rtp rtp://172.16.1.115:40258

    &#xA;

    This is my fake sdp offer used in negotiation with kurento RtpEndpoint

    &#xA;

    v=0&#xA;o=- 0 0 IN IP4 127.0.0.1&#xA;s=Stream&#xA;c=IN IP4 127.0.0.1&#xA;t=0 0&#xA;m=video 9 RTP/AVP 103&#xA;a=rtpmap:103 H264/90000&#xA;a=fmtp:103 packetization-mode=1&#xA;a=sendonly&#xA;a=direction:active&#xA;a=ssrc:112233 cname:user@example.com &#xA;

    &#xA;

    Here is the problem :

    &#xA;

    Some I-frames are choppy on bottom half slice of the frame while others have no problem.

    &#xA;

    It is sometimes corrected when another I-frame has arrived, but mostly choppy.

    &#xA;

    When choppiness happened, Kms log says :

    &#xA;

    &#xA;

    kmsutils kmsutils.c:483:gap_detection_probe:kmsagnosticbin2-108:sink Stream gap detected, timestamp : 0:51:22.574766908, duration : 0:00:00.000008237

    &#xA;

    &#xA;

    Normal stream (No choppy at all)

    &#xA;

    Normal Stream (No choppy at all)

    &#xA;

    Choppy stream

    &#xA;

    Choppy stream

    &#xA;

    When it is corrected with an I-Frame (Sometimes it happens)

    &#xA;

    Corrected stream

    &#xA;

    I have no clue about what could lead the issue.

    &#xA;

    Things that I tried to solve the problem.

    &#xA;

      &#xA;
    • Adding ?pkt_size=1000 (1100,900,1200. Since the mtu in kurento is 1200 default)
    • &#xA;

    • Changing -crf to different values in between 18-35
    • &#xA;

    • Changing -preset between medium and ultrafast
    • &#xA;

    • Changing framerate
    • &#xA;

    • Changing gop length (When i lower the gop length -More I-Frames- choppiness become shorter in duration but more frequent)
    • &#xA;

    • When I disable sliced-threads, there is no issue with bottom side but whole screen freezes in same scenario
    • &#xA;

    &#xA;

    Any help would be appreciated. Thanks.

    &#xA;