Recherche avancée

Médias (91)

Autres articles (66)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

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

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (5701)

  • lavf : make overlay_qsv work based on framesync

    3 avril 2018, par Ruiling Song
    lavf : make overlay_qsv work based on framesync
    

    The existing version which was cherry-picked from Libav does not work
    with FFmpeg framework, because ff_request_frame() was totally
    different between Libav (recursive) and FFmpeg (non-recursive).
    The existing overlay_qsv implementation depends on the recursive version
    of ff_request_frame to trigger immediate call to request_frame() on input pad.
    But this has been removed in FFmpeg since "lavfi : make request_frame() non-recursive."
    Now that we have handy framesync support in FFmpeg, so I make it work
    based on framesync. Some other fixing which is also needed to make
    overlay_qsv work are put in a separate patch.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>

    • [DH] libavfilter/Makefile
    • [DH] libavfilter/vf_overlay_qsv.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;

  • ffmpeg - convert movie AND show original input (as resized picture-in-picture, top-left corner) in the final output file

    2 octobre 2019, par raven

    this is my first post on this forum, so please be gentle in case I accidentally do trip over any forum rules that I would not know of yet :).

    I would like to apply some color-grading to underwater GoPro footage. To quicker gauge the effect of my color settings (trial-and-error, as of yet), would like to see the original input video stream as a PIP (e.g., scaled down 50%), in the top-left corner of the converted output movie.

    I have one input movie that is going to be color graded. The PIP should use the original as an input, just a scaled-down version of it.

    I would like to use ffmpeg’s -filter_complex option to do the PIP, but all examples I can find on "-filter_complex" would use two already existing movies. Instead, I would like to make the color-corrected stream an on-the-fly input to "-filter_complex", which then renders the PIP.

    Is that doable, all in one go ?

    Both the individual snippets below work fine, I now would like to combine these and skip the creation of an intermediate color-graded video. Your help combining these two steps into one single process is greatly appreciated !

    Thanks in advance,
    raven.

    [existing code snippets (M$ batch files)]

    ::declarations/defines::
    set "INPUT="
    set "TMP="
    set "OUTPUT="
    set "FFMPG="
    set "QU=9" :: quality settings

    set "CONV='"0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1 0 -1 0:0 -1 0 -1 5 -1
    0 -1 0:0 -1 0 -1 5 -1 0 -1 0'"" :: sharpening convolution filter

    ::color-grading part::
    %FFMPG% -i %INPUT% -vf convolution=%CONV%,colorbalance=rs=%rs%:gs=%gs%:bs=%bs%:rm=%rm%:gm=%gm%:bm=%bm%:rh=%rh%:gh=%gh%:bh=%bh% -q:v %QU% -codec:v mpeg4 %TMP%

    ::PIP part::
    %FFMPG% -i %INPUT% -i %TMP% -filter_complex "[1]scale=iw/3:ih/3
    [pip]; [0][pip] overlay=main_w-overlay_w-10:main_h-overlay_h-10" -q:v
    %QU% -codec:v mpeg4 %OUTPUT%

    [/existing code]