Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (53)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (7686)

  • How to use ffmpeg.wasm in Firefox without getting the SharedArrayBuffer ?

    28 décembre 2020, par Pedro Henrique

    I'm trying to load ffmpeg.wasm in a react app to do a small video converter project. The code is working fine on chrome, but in firefox dev edition (83.0b) I catch the following error :

    


    


    ReferenceError : SharedArrayBuffer is not defined

    


    


    Here's the part of the component where the error is catched (the variable ready is never becomes true) :

    


    import React, { useState, useEffect } from 'react'
import styles from './App.module.css'
import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg'
const ffmpeg = createFFmpeg({ log: true })

function App() {
  // load state
  const [ready, setReady] = useState(false)
  // files state
  const [video, setVideo] = useState('')
  const [gif, setGif]   = useState()
  // UI state
  const [dragOver, setDragOver ] = useState(false)
  const [nOfEnters, setNOfEnters] = useState(0)

  const load = async () => {
    try {
      await ffmpeg.load()
      setReady(true)
    } catch(error) {
      console.log(error)
    }
  }

  useEffect(() => {
    load()
  }, [])


    


    Thanks in advance, let me know if I should've provided any more detail.

    


  • Pydub The system can not find the file specified

    11 janvier 2021, par Madar

    So here is my code :

    


    from pydub import AudioSegment
sound1 = AudioSegment.from_mp3("sound_0.mp3")
sound2 = AudioSegment.from_mp3("sound_1.mp3")

sound = sound1 + sound2
sound.export("test.mp3",format="mp3")


    


    Problem :
I got the error message : WindowsError : [Error 2] The system can not find the file specified

    


    System configuration
Python version : 3.8
Pydub version : I just installed it
ffmpeg or avlib ? : ffmpeg
ffmpeg/avlib version : 2020-12-15-git-32586a42da-full_build-www.gyan.dev

    


    What did I try ?
So, I found some things to do on a Stackoverflow subject,
I tried to add this

    


    pydub.AudioSegment.ffmpeg = "way//to//ffmpeg.exe"


    


    But it doesn't worked, then this

    


    AudioSegment.converter = "way//to//ffmpeg.exe"


    


    Still doesn't work, so, because I'm on spyder with anaconda, I tried this on the anaconda prompt

    


    conda install -c conda-forge ffmpeg


    


    I even tried to put ffmpeg.exe,ffplay.exe in the current working directory but still doesn't worked..

    


    So I'm desperately here for some help, thanks in advance

    


  • How to enable different components of FFMPEG ?

    3 décembre 2011, par Richard77

    I've found this C# wrapper code around FFMPEG. I'm using ASP.NET MVC3 and C#. When trying to get it work, I'm getting the following error :

           RawOutput   "ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011
           the FFmpeg developers

           built on Nov 16 2011 12:35:07 with gcc 4.6.2

           configuration: --enable-gpl --enable-version3 --disable-w32threads
           --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
           --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
           --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp
           --enable-libschroedinger --enable-libspeex --enable-libtheora
           --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
           --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
           --enable-zlib

           libavutil    51. 25. 0 / 51. 25. 0
           libavcodec   53. 34. 0 / 53. 34. 0
           libavformat  53. 20. 0 / 53. 20. 0
           libavdevice  53.  4. 0 / 53.  4. 0  
           libavfilter   2. 48. 1 /  2. 48. 1
           libswscale    2.  1. 0 /  2.  1. 0
           libpostproc  51.  2. 0 / 51.  2. 0
           [wmv3 @ 002BFA00] Extra data: 8 bits left, value: 0
           [asf @ 002B8A80] parser not found for codec wmav2, packets or times may be invalid.
           Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
           Input #0, asf, from 'C:\\FfMpeg\\Videos\\Original\\Video1.wmv':
           Metadata:
           WMFSDKVersion   : 11.0.6002.18049  
           WMFSDKNeeded    : 0.0.0.0000
           IsVBR           : 0
           Duration: 00:00:41.80, start: 0.000000, bitrate: 888 kb/s
           Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 64 kb/s
           Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x240, 786 kb/s, 30 tbr, 1k tbn, 1k tbc
           Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
           [buffer @ 031D8DA0] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
           [buffersink @ 031D8FA0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
           [scale @ 03106C20] w:320 h:240 fmt:yuv420p -> w:320 h:240 fmt:yuvj420p flags:0x4
           [wmv3 @ 002BFA00] Extra data: 8 bits left, value: 0
           Output #0, image2, to '87334ed0-2bcf-4be5-82ae-9089c14e0323.jpg':
           Metadata:
           WMFSDKVersion   : 11.0.6002.18049
           WMFSDKNeeded    : 0.0.0.0000
           IsVBR           : 0
           encoder         : Lavf53.20.0
           Stream #0:0(eng): Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 30 tbc
           Stream mapping:
           Stream #0:1 -> #0:0 (wmv3 -> mjpeg)
           Press [q] to stop, [?] for help
           [image2 @ 03107920] Could not open file : 87334ed0-2bcf-4be5-82ae-9089c14e0323.jpg
           av_interleaved_write_frame(): Input/output error
           "   string

    I'm absolutely new to FFMPEG, so I don't know where to start to solve the above probleme.

    EDIT

    public ActionResult Convert()
       {
           Converter _converter = new Converter(@"C:\FfMpeg\ffmpeg.exe");
           OutputPackage oo = _converter.ConvertToFLV(@"C:\FfMpeg\Videos\Original\Video1.wmv");

           FileStream outStream = System.IO.File.OpenWrite(@"C:\FfMpeg\Videos\Converted\Video1.flv");
           oo.VideoStream.WriteTo(outStream);
           outStream.Flush();
           outStream.Close();

           oo.PreviewImage.Save(@"C:\FfMpeg\Videos\Thumbnail\Thumbnail1.jpg");

           return RedirectToAction("WatchMovie");
       }

    Thanks for helping