Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (14628)

  • Trying to use the arcade library on Python3 with Debian 10 errors with pyglet_ffmpeg

    30 mars 2020, par Colin

    I’ve been trying to use the arcade library this morning with python3 but keep getting nothing but errors.

    My environment is Debian 10 (buster)

    I checked first to ensure I have python 3 installed, this confirmed as Python 3.7.3

    I double checked (according to the arcade library website arcade linux installation instructions and ran the install for python3 to make sure that pip and the required libraries were installed.

    I then ran the command to install the library

    sudo pip3 install arcade

    And to test it, copied and pasted the happy_face.py example. However when I tried to run it I got a slew of errors. This seems to be directly related to the arcade installation and if I just run a python script (test.py) with just one line

    import arcade

    At the terminal with

    python3 test.py

    I get the following errors

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavformat.so.58.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswresample.so.3.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavfilter.so.7.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavutil.so.56.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswscale.so.5.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavformat.so.58.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswresample.so.3.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavfilter.so.7.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libavutil.so.56.*

    Unable to find match for ffmpeg sound library at expected location :
    /usr/local/lib64/python3.7/dist-packages/pyglet_ffmpeg2/linux_x86_64/libswscale.so.5.*

    I have used the following terminal command to identify the version of OpenGL installed

    glxinfo | grep "OpenGL version"

    Which returned

    OpenGL version string : 3.3 (Compatibility Profile) Mesa 18.3.6

    I have also tried the terminal command

    sudo pip3 install pyglet-ffmpeg

    Which returns

    Requirement already satisfied : pyglet-ffmpeg in
    /usr/local/lib/python3.7/dist-packages (0.1.4)

    Requirement already satisfied : pyglet>=1.4.0a1 in
    /usr/local/lib/python3.7/dist-packages (from pyglet-ffmpeg) (1.5.0)

    Requirement already satisfied : future in
    /usr/local/lib/python3.7/dist-packages (from
    pyglet>=1.4.0a1->pyglet-ffmpeg) (0.18.2)

    Any assistance would be appreciated. I’ve tried to be as concise as I can, but if more information is required, I’ll gladly supply it.

  • avcodec/vaapi_encode : move the dpb logic from VAAPI to base layer

    18 avril 2024, par Tong Wu
    avcodec/vaapi_encode : move the dpb logic from VAAPI to base layer
    

    Move receive_packet function to base. This requires adding *alloc,
    *issue, *output, *free as hardware callbacks. HWBaseEncodePicture is
    introduced as the base layer structure. The related parameters in
    VAAPIEncodeContext are also extracted to HWBaseEncodeContext. Then DPB
    management logic can be fully extracted to base layer as-is.

    Signed-off-by : Tong Wu <tong1.wu@intel.com>

    • [DH] libavcodec/Makefile
    • [DH] libavcodec/hw_base_encode.c
    • [DH] libavcodec/hw_base_encode.h
    • [DH] libavcodec/vaapi_encode.c
    • [DH] libavcodec/vaapi_encode.h
    • [DH] libavcodec/vaapi_encode_av1.c
    • [DH] libavcodec/vaapi_encode_h264.c
    • [DH] libavcodec/vaapi_encode_h265.c
    • [DH] libavcodec/vaapi_encode_mjpeg.c
    • [DH] libavcodec/vaapi_encode_mpeg2.c
    • [DH] libavcodec/vaapi_encode_vp8.c
    • [DH] libavcodec/vaapi_encode_vp9.c
  • nodejs ffmpeg child-process stdio stream stops

    10 mars 2023, par BleedFeed

    I've been trying to make an internet radio stream using ffmpeg to encode the audio data in mp3

    &#xA;

    function getAudioStream(url){&#xA;&#xA;    return new Promise(async(resolve,reject)=>{&#xA;&#xA;        const ytdlStream = await ytdl(url,{filter:&#x27;audioonly&#x27;,quality:&#x27;highestaudio&#x27;});&#xA;&#xA;        const ffmpegProcess = spawn(&#x27;ffmpeg&#x27;,[&#xA;        &#x27;-i&#x27;,&#x27;pipe:3&#x27;,&#xA;        &#x27;-f&#x27;,&#x27;mp3&#x27;,&#xA;        &#x27;-ar&#x27;,&#x27;44100&#x27;,&#xA;        &#x27;-ac&#x27;,&#x27;2&#x27;,&#xA;        &#x27;-b:a&#x27;,&#x27;128k&#x27;,&#xA;        &#x27;-codec:a&#x27;,&#x27;libmp3lame&#x27;,&#xA;        &#x27;-flush_packets&#x27;, &#x27;1&#x27;,&#xA;        &#x27;pipe:4&#x27;],{stdio:[&#x27;ignore&#x27;,&#x27;ignore&#x27;,&#x27;pipe&#x27;,&#x27;pipe&#x27;,&#x27;pipe&#x27;]});&#xA;        ytdlStream.pipe(ffmpegProcess.stdio[3]);&#xA;        ffmpegProcess.stderr.on(&#x27;data&#x27;,(chunk)=>{&#xA;            console.log(&#x27;FFMPEG ERROR: &#x27; &#x2B; chunk.toString());&#xA;        })&#xA;        resolve(ffmpegProcess.stdio[4].pipe(new PassThrough({highWaterMark:4096})));&#xA;    });&#xA;}&#xA;&#xA;async function setUpStream(fromQueue,client,shout){&#xA;&#xA;    let readable;&#xA;    let videoDetails;&#xA;&#xA;    if(fromQueue){&#xA;        readable = await getAudioStream(queue[0]);&#xA;        videoDetails = (await ytdl.getBasicInfo(queue[0])).videoDetails;&#xA;        queue.shift();&#xA;    }&#xA;    else{&#xA;        let song = songs[Math.floor(Math.random() * songs.length)];&#xA;        readable = await getAudioStream(song);&#xA;        videoDetails = (await ytdl.getBasicInfo(song)).videoDetails;&#xA;    }&#xA;&#xA;&#xA;    readable.on(&#x27;data&#x27;,async (chunk)=>{&#xA;        readable.pause();&#xA;        shout.send(chunk,chunk.length);&#xA;        await new Promise((resolve)=>{setTimeout(resolve,shout.delay())});&#xA;        readable.resume();&#xA;    });&#xA;&#xA;    readable.on(&#x27;end&#x27;,()=>{&#xA;        readable.destroy();&#xA;        setUpStream(queue.length !==0,client,shout);&#xA;    });&#xA;&#xA;&#xA;    readable.on(&#x27;error&#x27;,(err)=>{&#xA;        console.log(err);&#xA;    });&#xA;&#xA;}&#xA;

    &#xA;

    shout.send is from npm nodeshout library and it delivers the audio data to icecast server.&#xA;I get another ffmpeg audio stream once the current one ends. After 20 or 30 minutes ffmpeg logs stop and no further data comes from ffmpegStream

    &#xA;

    FFMPEG ERROR: size=    2952kB time=00:03:08.89 bitrate= 128.0kbits/s speed=1.07x&#xA;FFMPEG ERROR: size=    3016kB time=00:03:13.00 bitrate= 128.0kbits/s speed=1.07x&#xA;FFMPEG ERROR: size=    3080kB time=00:03:17.10 bitrate= 128.0kbits/s speed=1.07x&#xA;FFMPEG ERROR: size=    3144kB time=00:03:21.17 bitrate= 128.0kbits/s speed=1.07x&#xA;FFMPEG ERROR: size=    3208kB time=00:03:25.27 bitrate= 128.0kbits/s speed=1.07x &#xA;

    &#xA;

    these are the last lines printed at console. Maybe some sort of memory management problem with child process ? How can i find what causes this problem ?

    &#xA;