Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (37)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

Sur d’autres sites (7532)

  • img2enc : Make sure the images are atomically written

    20 octobre 2015, par Luca Barbato
    img2enc : Make sure the images are atomically written
    

    Users that want to generate a live-preview and serve it
    would otherwise get partial images.

    • [DBH] libavformat/img2enc.c
  • Save live video stream to a video file

    29 juin 2023, par VISHAL DAGA

    Trying to save live streaming video data into a (any) playable video file.
When I log the data I see the following (Put in comment in below code) :-

    


    axios.get(`http://192.168.1.33`, {&#xA;  responseType: &#x27;stream&#x27;,&#xA;}).then((response)=>{&#xA;  const stream = response.data&#xA;  stream.on(&#x27;data&#x27;, data => {&#xA;    console.log(data);  // <buffer 4c="4c" 28="28" a1="a1" 0c="0c" 0d="0d" 14="14" 0e="0e" e1="e1" 8e="8e" eb="eb" 52="52" 48="48" d0="d0" c0="c0" 4a="4a" 68="68" 7b="7b" 0b="0b" c7="c7" 7c="7c" d2="d2" 55="55" 21="21" 0a="0a" a9="a9" 63="63" 12="12" 96="96" 9b="9b" 00="00" ed="ed" 49="49" 42="42" 1a="1a" 16="16" a4="a4" 1e="1e" 94="94" 50="50" 20="20" a3="a3" d8="d8" d5="d5" 1386="1386" more="more" bytes="bytes">&#xA;                       // <buffer 0d="0d" cb="cb" 4b="4b" f7="f7" 77="77" 36="36" c8="c8" 42="42" 9d="9d" bb="bb" b3="b3" d6="d6" a3="a3" 72="72" 24="24" ff="ff" 00="00" 9e="9e" 29="29" b8="b8" 35="35" a5="a5" 48="48" ad="ad" e2="e2" 11="11" a9="a9" ec="ec" 38="38" 1d="1d" e1="e1" 91="91" 93="93" 73="73" bf="bf" a6="a6" 96="96" 62="62" 26="26" 57="57" f4="f4" a4="a4" 4258="4258" more="more" bytes="bytes">&#xA;                      // ....&#xA;</buffer></buffer>

    &#xA;

    How can I save this data into a video file which can be played ? I am starting to read from live stream at a certain point in time and reading it for few seconds - ex. 5 seconds. I need to have a video of that 5 seconds.

    &#xA;

    Note, when I use the url : http://192.168.1.33, I can see the video on the browser.

    &#xA;

  • Permission denied when trying to save a file with ffmpeg

    20 mars 2023, par Hoff

    I'm sending an audio blob to my deno/oak server, and I want to encode it as mp3 using deno_ffmpeg but I'm getting a Permission denied (os error 13) error.

    &#xA;

    With operations like Deno.rename(), I am able to save files just fine. Just not when calling ffmpeg.save().

    &#xA;

    Here is the code in question :

    &#xA;

    const body = await context.request.body({ type: &#x27;form-data&#x27; })&#xA;const data = await body.value.read()&#xA;const audioFile = data.files[0]&#xA;&#xA;const ffmpegClass = new ffmpeg({ input: audioFile.filename, ffmpegDir: &#x27;.&#x27; })&#xA;await ffmpegClass.save(&#x27;./output.mp3&#x27;)&#xA;

    &#xA;

    The last line triggers this error :

    &#xA;

    PermissionDenied: Permission denied (os error 13)&#xA;    at opRun (internal:runtime/js/40_process.js:33:14)&#xA;    at Object.run (internal:runtime/js/40_process.js:119:15)&#xA;    at FfmpegClass.save (https://deno.land/x/deno_ffmpeg@v3.1.0/src/ffmpegClass.ts:506:26)&#xA;

    &#xA;

    This happens despite running the server with --allow-run and --allow-write or even --allow-all

    &#xA;

    Persission on the root directory are drwxrw-rw- (chmod 766).

    &#xA;

    I'm out of ideas as to what is causing this permissions error, any ideas would be highly appreciated !

    &#xA;