Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (100)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (10477)

  • avutil/opt : Use correct function pointer type

    21 février 2024, par Andreas Rheinhardt
    avutil/opt : Use correct function pointer type
    

    av_get_sample/pix_fmt() return their respective enums
    and are therefore not of the type int (*)(const char*),
    yet they are called as-if they were of this type.
    This works in practice, but is actually undefined behaviour.

    With Clang 17 UBSan these violations are flagged, affecting lots
    of tests. The number of failing tests went down from 3363 to 164
    here with this patch.

    Reviewed-by : Mark Thompson <sw@jkqxz.net>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavutil/opt.c
  • FFmpeg input file type detection

    17 août 2021, par andbi

    I'm using FFmpeg for converting audio files, and I see that it can automatically derive the correct input source's type regardless of the file's extension and without providing any input type/codec information. At least it works for mp3 and wav files.

    &#xA;

    The question is which audio file types it might fail to recognize or when it's better to state the input format explicitly (of course, excluding the PCM* types).

    &#xA;

  • ffmpeg works at command line but I got this error when I use it in nodejs app :

    15 avril 2023, par Ibrahim Ashour

    This is the code :

    &#xA;

    import fs from &#x27;fs&#x27;;&#xA;import googleTTS from &#x27;google-tts-api&#x27;;&#xA;import https from &#x27;https&#x27;;&#xA;import { exec } from &#x27;child_process&#x27;;&#xA;&#xA;async function convertTextToVoice(text, fileName) {&#xA;  const outputFile = `./audios/${fileName}.mp3`;&#xA;&#xA;  const words = text.split(&#x27; &#x27;);&#xA;  const chunks = [];&#xA;  let chunk = &#x27;&#x27;;&#xA;&#xA;  for (const word of words) {&#xA;    if (chunk.length &#x2B; word.length &lt; 200) {&#xA;      chunk &#x2B;= &#x27; &#x27; &#x2B; word;&#xA;    } else {&#xA;      chunks.push(chunk.trim());&#xA;      chunk = word;&#xA;    }&#xA;  }&#xA;&#xA;  chunks.push(chunk.trim());&#xA;&#xA;  for (let i = 0; i &lt; chunks.length; i&#x2B;&#x2B;) {&#xA;    const chunkFile = `./audios/${fileName}-chunk${i}.mp3`;&#xA;    const url = await googleTTS.getAudioUrl(chunks[i], {&#xA;      lang: &#x27;ar&#x27;,&#xA;      slow: false,&#xA;      host: &#x27;https://translate.google.com&#x27;,&#xA;    });&#xA;&#xA;&#xA;    try {&#xA;      const file = await fs.createWriteStream(chunkFile);&#xA;      https.get(url, response => {&#xA;        response.pipe(file);&#xA;        file.on(&#x27;finish&#x27;, () => {&#xA;          file.close();&#xA;          console.log(`Chunk ${i} created successfully`);&#xA;        });&#xA;      }).on(&#x27;error&#x27;, error => {&#xA;        console.error(`Error downloading chunk ${i}: ${error}`);&#xA;      });&#xA;    } catch (error) {&#xA;      console.error(error);&#xA;    }&#xA;  }&#xA;&#xA;  const chunkFiles = chunks.map((chunk, i) => `./audios/${fileName}-chunk${i}.mp3`);&#xA;&#xA;  // Use ffmpeg to merge the audio files&#xA;  const concatCommand = `ffmpeg -i "concat:${chunkFiles.join(&#x27;|&#x27;)}" -acodec copy ${outputFile}`;&#xA;  try {&#xA;    await new Promise((resolve, reject) => {&#xA;      exec(concatCommand, (error, stdout, stderr) => {&#xA;        if (error) {&#xA;          console.error(`Error executing ffmpeg command: ${error}`);&#xA;          reject(error);&#xA;        } else {&#xA;          console.log(`Audio file ${outputFile} created successfully`);&#xA;          resolve();&#xA;        }&#xA;      });&#xA;    });&#xA;&#xA;    for (const chunkFile of chunkFiles) {&#xA;      await fs.promises.unlink(chunkFile);&#xA;      console.log(`${chunkFile} deleted successfully`);&#xA;    }&#xA;  } catch (error) {&#xA;    console.error(error);&#xA;  }&#xA;}&#xA;

    &#xA;

    This is the Error :&#xA;./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3&#xA;ffmpeg -i "concat :./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3" -acodec copy ./audios/تجربة.mp3&#xA;Error executing ffmpeg command : Error : Command failed : ffmpeg -i "concat :./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3" -acodec copy ./audios/تجربة.mp3&#xA;ffmpeg version 2023-02-04-git-bdc76f467f-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers&#xA;built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-libdav1d —enable-libdavs2 —enable-libuavs3d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-liblensfun —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —enable-vulkan —enable-libplacebo —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint&#xA;libavutil 57. 44.100 / 57. 44.100&#xA;libavcodec 59. 63.100 / 59. 63.100&#xA;libavformat 59. 38.100 / 59. 38.100&#xA;libavdevice 59. 8.101 / 59. 8.101&#xA;libavfilter 8. 56.100 / 8. 56.100&#xA;libswscale 6. 8.112 / 6. 8.112&#xA;libswresample 4. 9.100 / 4. 9.100&#xA;libpostproc 56. 7.100 / 56. 7.100&#xA;[mp3 @ 00000177df48a1c0] Format mp3 detected only with low score of 1, misdetection possible !&#xA;[mp3 @ 00000177df48a1c0] Failed to read frame size : Could not seek to 1026.&#xA;concat :./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3 : Invalid argument

    &#xA;

    Error : Command failed : ffmpeg -i "concat :./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3" -acodec copy ./audios/تجربة.mp3&#xA;ffmpeg version 2023-02-04-git-bdc76f467f-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers&#xA;built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-libdav1d —enable-libdavs2 —enable-libuavs3d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-liblensfun —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —enable-vulkan —enable-libplacebo —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint&#xA;libavutil 57. 44.100 / 57. 44.100&#xA;libavcodec 59. 63.100 / 59. 63.100&#xA;libavformat 59. 38.100 / 59. 38.100&#xA;libavdevice 59. 8.101 / 59. 8.101&#xA;libavfilter 8. 56.100 / 8. 56.100&#xA;libswscale 6. 8.112 / 6. 8.112&#xA;libswresample 4. 9.100 / 4. 9.100&#xA;libpostproc 56. 7.100 / 56. 7.100&#xA;[mp3 @ 00000177df48a1c0] Format mp3 detected only with low score of 1, misdetection possible !&#xA;[mp3 @ 00000177df48a1c0] Failed to read frame size : Could not seek to 1026.&#xA;concat :./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3 : Invalid argument

    &#xA;

    at ChildProcess.exithandler (node:child_process:419:12)&#xA;at ChildProcess.emit (node:events:513:28)&#xA;at maybeClose (node:internal/child_process:1091:16)&#xA;at ChildProcess._handle.onexit (node:internal/child_process:302:5) {&#xA;

    &#xA;

    code : 1,&#xA;killed : false,&#xA;signal : null,&#xA;cmd : 'ffmpeg -i "concat :./audios/تجربة-chunk0.mp3|./audios/تجربة-chunk1.mp3" -acodec copy ./audios/تجربة.mp3'&#xA;}&#xA;Chunk 1 created successfully&#xA;Chunk 0 created successfully

    &#xA;

    I expected the command to work in the nodejs app like in the command line

    &#xA;