Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (106)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

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

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

  • Garder les préférences de tri/pagination du côté client

    29 novembre 2013

    Le commit http://zone.spip.org/trac/spip-zone/changeset/78938, annulé depuis, incluait les préférences de tri, pagination et vue des listes dans la session de l’utilisateur. Malheureusement, c’est impossible à faire du côté serveur, puisque ça explose le cache (le nombre de configurations possibles génère autant de contextes de cache).

    Cette fonctionnalité ne peut donc être implémentée que du côté client, soit par un cookie, soit par localstorage.

  • Cannot invoke initializer for type ’UnsafeMutablePointer’ with an argument list of type ’(Int32 ?)’

    28 mars 2018, par Law Gimenez

    I am trying to implement some methods and pointers of ffmpeg to Swift but converting it to Swift is a little complex. What does this error mean ?

    Cannot invoke initializer for type ’UnsafeMutablePointer’ with an argument list of type ’(Int32 ?)’ ?

    Code is below

    let pictureFrameData = av_malloc(Int(numBytes))
                                   var test = frame?.pointee.linesize.0.
                                   av_image_fill_arrays(UnsafeMutablePointer(frameRGB?.pointee.data.0),
                                                        UnsafeMutablePointer<int32>(frame?.pointee.linesize.0)!,
                                                        pictureFrameData,
                                                        frameRGB?.pointee.format,
                                                        frameRGB?.pointee.width,
                                                        frameRGB?.pointee.height,
                                                        1)
    </int32>

    the error is at this line UnsafeMutablePointer<int32>(frame?.pointee.linesize.0)</int32>

  • couldn't populate thumbnail on client side

    8 novembre 2020, par Loki
    router.post("/thumbnail",(req,res)=>{&#xA;&#xA;  let thumbsFilePath="";&#xA;  let fileDuration="";&#xA;&#xA;&#xA;&#xA;  ffmpeg.ffprobe(req.body.filePath, function(err,metadata){&#xA;    console.dir(metadata);&#xA;    console.log(&#x27;METADATA==>&#x27;&#x2B;metadata);&#xA;    console.log(metadata.format.duration);&#xA;&#xA;    fileDuration=metadata.format.duration;&#xA;&#xA;  })&#xA;&#xA;  &#xA;  ffmpeg(req.body.filePath)&#xA;  .on(&#x27;filenames&#x27;, function(filenames) {&#xA;    console.log(&#x27;Will generate &#x27; &#x2B; filenames.join(&#x27;,&#x27;))&#xA;    thumbsFilePath="uploads/thumbnails/"&#x2B; filenames[0];&#xA;  })&#xA;  .on(&#x27;end&#x27;, function() {&#xA;    console.log(&#x27;Screenshots taken&#x27;);&#xA;    console.log(&#x27;FILEPATH===>&#x27;&#x2B;thumbsFilePath);&#xA;    console.log(&#x27;FILEDURATION===>&#x27;&#x2B;fileDuration);&#xA;    return res.json({success: true, thumbsFilePath , fileDuration})&#xA;  })&#xA;  .screenshots({&#xA;    // Will take screens at 20%, 40%, 60% and 80% of the video&#xA;    count: 3,&#xA;    folder: &#x27;uploads/thumbnails/&#x27;,&#xA;    size:&#x27;320x240&#x27;,&#xA;    // %b input basename ( filename w/o extension )&#xA;    filename:&#x27;thumbnail-%b.png&#x27;&#xA;  });&#xA;})&#xA;

    &#xA;

    the screenshots are saved perfectly and their path is also received to the client-side from thumbsFilePath but I cant populate it in the client-side page(react).. idk what I am doing wrong here.

    &#xA;

    here is client-side code. I used usestate

    &#xA;

      const [FilePath, setFilePath]= useState(&#x27;&#x27;);&#xA;  const [Duration, setDuration] = useState(&#x27;&#x27;);&#xA;  const [Thumbnail, setThumbnail] = useState(&#x27;&#x27;);&#xA;

    &#xA;

    here is an error when I try to populate img

    &#xA;

    enter image description here

    &#xA;

    const onDrop=(files)=>{&#xA;      let formData= new FormData();&#xA;      let config={&#xA;        header:{&#x27;content-type&#x27;:&#x27;multipart/form-data&#x27;}&#xA;      }&#xA;      &#xA;      formData.append("file",files[0])&#xA;      Axios.post(&#x27;http://localhost:5000/api/video/uploadFiles&#x27;,formData,config)&#xA;      .then(response=>{&#xA;        console.log(response);&#xA;     if(response.data.success){&#xA;       console.log(&#x27;FILEPATH==>&#x27;&#x2B;response.data.filePath);&#xA;       console.log(&#x27;filename==>&#x27;&#x2B;response.data.fileName);&#xA;      let variable={&#xA;        filePath:response.data.filePath,&#xA;        fileName:response.data.fileName&#xA;      }&#xA;      setFilePath(response.data.filePath);&#xA;      Axios.post(&#x27;http://localhost:5000/api/video/thumbnail&#x27;,variable)&#xA;      .then(response=>{&#xA;        if(response.data.success){&#xA;          setDuration(response.data.fileDuration)&#xA;          setThumbnail(response.data.thumbsFilePath)&#xA;        }else{&#xA;          alert("failed to make thumbnails");&#xA;        }&#xA;      })&#xA;     }&#xA;      }).catch(err=>{&#xA;        console.log(&#x27;error&#x27;&#x2B;err);&#xA;      })&#xA;  }&#xA;  &#xA;    return (&#xA;      &lt;>&#xA;        <form>&#xA;        <dropzone>&#xA;  {({getRootProps, getInputProps}) => (&#xA;    <section>&#xA;      <div classname="dropzone__container">&#xA;        <input />&#xA;        <p>Drag &#x27;n&#x27; drop some files here, or click to select files</p>&#xA;      </div>&#xA;    </section>&#xA;  )}&#xA;</dropzone>&#xA; &#xA;    {Thumbnail !== "" &amp;&amp;&#xA;     <div>&#xA;       <img src="http://stackoverflow.com/feeds/tag/{`http:/localhost:5000/server/${Thumbnail}`}" alt="haha" style='max-width: 300px; max-height: 300px' />&#xA;     </div>&#xA;    }&#xA;&#xA;{data: {…}, status: 200, statusText: "OK", headers: {…}, config: {…},&#xA0;…}config: {url: "http://localhost:5000/api/video/uploadFiles", method: "post", data: FormData, headers: {…}, transformRequest: Array(1),&#xA0;…}data: {success: true, fileName: "SampleVideo_1280x720_1mb.mp4", filePath: "uploads\SampleVideo_1280x720_1mb.mp4"}headers: {content-length: "109", content-type: "application/json; charset=utf-8"}request: XMLHttpRequest&#xA0;{readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ,&#xA0;…}status: 200statusText: "OK"__proto__: Object&#xA;UploadVideo.js:51 FILEPATH==>uploads\SampleVideo_1280x720_1mb.mp4&#xA;UploadVideo.js:52 filename==>SampleVideo_1280x720_1mb.mp4&#xA;thumbnail-SampleVideo_1280x720_1mb_1.png:1 GET http://localhost:5000/server/uploads/thumbnails/thumbnail-SampleVideo_1280x720_1mb_1.png 404 (Not Found)&#xA;but the thumbnail is in that directory..but it says not found.and it shows the "alt"(haha) in browser.`enter code here`&#xA;(C:\Users\chidori\Desktop\project\server\uploads\thumbnails\thumbnail-SampleVideo_1280x720_1mb_1.png).&#xA;</form>

    &#xA;

    sorry for messy presentation..

    &#xA;