Recherche avancée

Médias (91)

Autres articles (59)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (9863)

  • Getting error "WebAssembly.Memory() : could not allocate memory" when running ffmpeg.wasm on android chrome browser

    27 juin 2022, par Ravi Kundu

    Error in detail :

    


    WebAssembly.Memory(): could not allocate memory
at https://*******/ffmpeg-core.js:22:82
at https://*******/ffmpeg.min.js:1:6506
at f (https://*******/ffmpeg.min.js:1:11322)
at Generator._invoke (https://*******/ffmpeg.min.js:1:11110)
at Generator.next (https://*******/ffmpeg.min.js:1:11747)
at i (https://*******/ffmpeg.min.js:1:4295)
at c (https://*******/ffmpeg.min.js:1:4498)


    


    Code for ffmpeg :

    


    const downloadWithFFMPEG = async () =>{
  const sourceBuffer = await fetch(recordingURL).then(r => r.arrayBuffer());
  await ffmpeg.load();
  await ffmpeg.FS(
    "writeFile",
    "input.webm",
    new Uint8Array(sourceBuffer, 0, sourceBuffer.byteLength)
  );
  await ffmpeg.run("-i", "input.webm", "-c", "copy", "output.mp4")
  const output = ffmpeg.FS("readFile", "output.mp4");
  var link = document.createElement('a')
  link.href = URL.createObjectURL(new Blob([output.buffer], { type: 'video/mp4;codecs=H264' }));
  link.download = this.data;
  link.click();
  recording = false;
}


    


    Brief about problem :
The error only comes for android chrome browser. The same code works fine on pc/laptop chrome.
Have also enabled Webassembly-thread on chrome ://flags for android browser as someone suggested me to do it but still same error. Can someone help me ?

    


  • How to get the support for SRT (Secure Reliable Transport) in React Native (for both iOS & Android) ?

    18 mars 2021, par Sourav Dey

    I tried many ways to get the support for SRT (Secure Reliable Transport) streaming in React Native but none of them worked. There were very few resources over the Internet and none seems to be working.
I tried using ffmpeg library but they are not providing the support for SRT as of now.

    


    The following error was thrown when a valid SRT link was passed to the below code :

    


    Code :

    


    useEffect(() => {&#xA;    RNFFmpeg.execute(&#xA;      &#x27;-i "srt://:<port>?streamid=live.sls.com/live/test2" -vcodec copy -acodec copy -strict -2 -y -f mpegts /storage/emulated/0/Download/srt_test_0.ts&#x27;,&#xA;    ).then(result => console.log(`>> FFmpeg process exited with rc=${result}.`));&#xA;&#xA;    return () => {&#xA;      console.log(&#x27;cancelling all executions&#x27;);&#xA;      RNFFmpeg.cancel();&#xA;    };&#xA;  }, []);&#xA;</port>

    &#xA;

    Output :

    &#xA;

    srt://:<port>?streamid=live.sls.com/live/test2: Protocol not found&#xA;index.js:115 Did you mean file:srt://:<port>?streamid=live.sls.com/live/test2index.js:22 &#xA;>> FFmpeg process exited with rc=1.&#xA;</port></port>

    &#xA;

    Can anyone please help ?

    &#xA;

  • android - ffmpeg - making crossfade between 5 videos

    25 février 2021, par LuongTruong

    I want to make a small slideshow app which is able to do some effect like fade in, fade out, and crossfade between multiple videos by using ffmpeg4android.

    &#xA;&#xA;

    After a few hours researching, I am still getting stuck in doing crossfade. Following this suggestion, I am able to create a crossfade but it is not work perfectly.

    &#xA;&#xA;

    The problem is that I want to combine 5 videos with crossfade effect between them and the duration of each video is 5 seconds. As a result, the output file is only 5 seconds instead of 25 seconds and there is a crossfade effect in the end of output file.

    &#xA;&#xA;

    Here is my command :

    &#xA;&#xA;

    String commandStr = "ffmpeg " &#x2B;&#xA;                "-y " &#x2B;&#xA;                "-i /sdcard/videokit/big_buck.mp4 " &#x2B;&#xA;                "-i /sdcard/videokit/big_buck.mp4 " &#x2B;&#xA;                "-i /sdcard/videokit/big_buck.mp4 " &#x2B;&#xA;                "-i /sdcard/videokit/big_buck.mp4 " &#x2B;&#xA;                "-i /sdcard/videokit/big_buck.mp4 " &#x2B;&#xA;                "-filter_complex " &#x2B;&#xA;                "[0:v]setpts=PTS-STARTPTS[v1];" &#x2B;&#xA;                "[1:v]format=yuva420p,fade=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS&#x2B;(4/TB)[v2];" &#x2B;&#xA;                "[2:v]format=yuva420p,fade=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS&#x2B;(8/TB)[v3];" &#x2B;&#xA;                "[3:v]format=yuva420p,fade=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS&#x2B;(12/TB)[v4];" &#x2B;&#xA;                "[4:v]format=yuva420p,fade=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS&#x2B;(16/TB)[v5];" &#x2B;&#xA;                "[v1][v2]overlay[v12];[v12][v3]overlay[v123];[v123][v4]overlay[v1234];[v1234][v5]overlay,format=yuv420p[v] " &#x2B;&#xA;                "-map [v] " &#x2B;&#xA;                "/sdcard/videokit/result.mp4";&#xA;

    &#xA;&#xA;

    UPDATE 1 : ADD LOG

    &#xA;&#xA;

    Please download the log file here

    &#xA;&#xA;

    Please let me know if I did something wrong in my command. Any help would be appreciated.

    &#xA;&#xA;

    Thank you in advance !

    &#xA;