Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (63)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (5476)

  • RuntimeError : abort(OOM). Build with -s ASSERTIONS=1 for more info

    26 avril 2021, par KhoPhi

    I'm using ffmpeg.wasm 0.9.7 (at the time of this question).&#xA;Browser is Brave (Version 1.23.71 Chromium : 90.0.4430.72 (Official Build) (64-bit))

    &#xA;

    I get this error running an overlay ffmpeg command in the browser, slapping an png over an hevc mp4 4K video of size, almost 40 Megabyte.

    &#xA;

    RuntimeError: abort(OOM). Build with -s ASSERTIONS=1 for more info.

    &#xA;

    Here's my code in Angular. Stripped down for brevity

    &#xA;

    async generatePreviews(event: any) {&#xA;&#xA;    if (!ffmpeg.isLoaded()) {&#xA;      await ffmpeg.load();&#xA;    }&#xA;&#xA;    for (let index = 0; index &lt; this.files.length; index&#x2B;&#x2B;) {&#xA;&#xA;      this.video = this.files[index];&#xA;      const file_name = this.video.name.split(&#x27;.&#x27;)[0] &#x2B; &#x27;-preview.mp4&#x27;;&#xA;&#xA;      ffmpeg.FS(&#x27;writeFile&#x27;, &#x27;tempLogo.png&#x27;, await fetchFile(this.watermark));&#xA;      ffmpeg.FS(&#x27;writeFile&#x27;, &#x27;tempVideo.mp4&#x27;, await fetchFile(this.video));&#xA;&#xA;&#xA;      // working command in normal terminal&#xA;      // ffmpeg -i tempVideo.mp4 -i tempLogo.png -filter_complex "overlay=(W-w)/2:(H-h)/2" temp.mp4&#xA;&#xA;      await ffmpeg.run(&#xA;        &#x27;-i&#x27;,&#xA;        &#x27;tempVideo.mp4&#x27;,&#xA;        &#x27;-i&#x27;,&#xA;        &#x27;tempLogo.png&#x27;,&#xA;        &#x27;-filter_complex&#x27;,&#xA;        &#x27;overlay=(W-w)/2:(H-h)/2&#x27;,&#xA;        &#x27;temp.mp4&#x27;&#xA;      );&#xA;&#xA;      const data = ffmpeg.FS(&#x27;readFile&#x27;, &#x27;temp.mp4&#x27;);&#xA;&#xA;      var blob = new Blob([data.buffer], { type: &#x27;video/mp4&#x27; });&#xA;      saveAs(blob, file_name); // using filesaver.js to save the blob&#xA;&#xA;    }&#xA;  }&#xA;}&#xA;&#xA;

    &#xA;

    In chrome, I read up to 2Gb of file is possible to convert. Not sure why the OOM issues. Any settings I need to set or changes I need to do ?

    &#xA;

    Update (4/26/2021)

    &#xA;

    This thread offered a solution, by building the ffmpeg wasm with a few tweaks. I am able to build, but using the built files even causes the OOM faster than the npm built from the ffmpeg wasm repo.

    &#xA;

  • Slient crash when calls to ffmpeg's libav exist

    9 juin 2021, par William Lohan

    I have a fairly simple example.

    &#xA;

    #include <iostream>&#xA;&#xA;extern "C"&#xA;{&#xA;#include <libavutil></libavutil>opt.h>&#xA;#include <libavutil></libavutil>avutil.h>&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;}&#xA;&#xA;int main(int, char **)&#xA;{&#xA;  AVFormatContext *format = 0; // avformat_alloc_context();&#xA;&#xA;  // avformat_open_input(&amp;format, "http://s5radio.ponyvillelive.com:8026/stream.mp3", NULL, NULL);&#xA;  // avformat_find_stream_info(format, NULL);&#xA;&#xA;  std::cout &lt;&lt; "Hello, world!" &lt;&lt; std::endl;&#xA;&#xA;  return 0;&#xA;}&#xA;</iostream>

    &#xA;

    I this outputs "Hello, world !" and I can set break points but the moment I uncomment anything calling avformat code the program silently closes with no error and no break points are hit making it impossible to debug.

    &#xA;

    An example would be changing AVFormatContext *format = 0; to AVFormatContext *format = avformat_alloc_context(); or uncommenting avformat_open_input(&amp;format, "http://s5radio.ponyvillelive.com:8026/stream.mp3", NULL, NULL);. Without breakpoints or errors how do I solve ?

    &#xA;

    Update :&#xA;This is what I get from the debugger :

    &#xA;

    &#xA;

    ERROR : Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited with code 0xc0000139.&#xA;The program 'path\to\my\project\LibavPlayground.exe' has exited with code 0 (0x00000000).

    &#xA;

    &#xA;

    Update2 :

    &#xA;

    this is my cmake :

    &#xA;

    cmake_minimum_required(VERSION 3.0.0)&#xA;project(LibavPlayground VERSION 0.1.0 LANGUAGES CXX C)&#xA;&#xA;find_package(PkgConfig REQUIRED) &#xA;pkg_check_modules(LIBAV REQUIRED libavutil libavcodec libavformat)&#xA;include_directories(${LIBAV_INCLUDE_DIRS})&#xA;set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__STDC_CONSTANT_MACROS -Wno-deprecated-declarations")&#xA;&#xA;include_directories(include PUBLIC)&#xA;include_directories(src PRIVATE)&#xA;&#xA;file(GLOB SRC_FILES ${PROJECT_SOURCE_DIR}/src/*.cpp)&#xA;&#xA;add_executable(LibavPlayground ${SRC_FILES})&#xA;target_link_libraries(LibavPlayground ${LIBAV_LIBRARIES})&#xA;

    &#xA;

    and all the libav* libraries were installed with a single pacman -S mingw-w64-x86_64-ffmpeg command

    &#xA;

  • How to add watermark text scrollable using ffmpeg vertically from right top to bottom

    22 juillet 2015, par Jeetendra

    Am using ffmpeg to transcode the video with text watermark. Below is my command that I am using but it scrolls the text bottom left to right.

    ffmpeg -i /usr/home/test.mp4 -vf "drawbox=x=iw-42:y=0:w=42:h=ih:color=black@0.5:t=80,drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf:text='Hello World':fontcolor=white@1.0:fontsize=16: y=(mod(2*n\,h+th)-th):x=w-tw-10" -codec:v libx264 -codec:a copy -strict -2 /usr/home/out.mp4

    But I want vertical scrolling top to bottom.

    Can anyone help in this.

    Thanks in advance.