Recherche avancée

Médias (91)

Autres articles (37)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (7634)

  • Adding Support for resuming download with FFMPEG ?

    5 février 2019, par INDIERs

    Currently i am using this to download hls streams with ffmpeg in android app

    ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "input.m3u8" -codec copy video.mp4

    it is working as it should.

    In case of network lost, the file will be downloaded from BEGINNING which is ofc not good at all.

    I did some research but didn’t found anything great, just these never implemented ideas :

    First is get the duration of downloaded video file and then downloading the video from duration +0.1

    Result High chances of FrameLoss. Dropped.

    Second is to download all ts files one by one ofc using any downloader, using custom script, then concat them.

    Result : Okay but needs space double of origial filesize, Dropped.

    Third is to Download First segment Convert it to MP4 then download second segment convert to mp4 then concat with First Segment and so on... while Keeping records.

    Result : Nice One but repeating same task for more than 2000 time, will it be Okay ? .

    is there any better workaround for this ?

    I’ve already showed the logic i tried.

  • lavc : Edge emulation with dst/src linesize

    14 octobre 2013, par Ronald S. Bultje
    lavc : Edge emulation with dst/src linesize
    

    Allow supporting files for which the image stride is smaller than
    the maximum block size + number of subpel mc taps, e.g. a 64x64 VP9
    file or a 16x16 VP8 file with -fflags +emu_edge.

    • [DBH] libavcodec/cavs.c
    • [DBH] libavcodec/h264.c
    • [DBH] libavcodec/hevc.c
    • [DBH] libavcodec/mpegvideo_enc.c
    • [DBH] libavcodec/mpegvideo_motion.c
    • [DBH] libavcodec/rv34.c
    • [DBH] libavcodec/svq3.c
    • [DBH] libavcodec/vc1dec.c
    • [DBH] libavcodec/videodsp.h
    • [DBH] libavcodec/videodsp_template.c
    • [DBH] libavcodec/vp3.c
    • [DBH] libavcodec/vp56.c
    • [DBH] libavcodec/vp8.c
    • [DBH] libavcodec/wmv2.c
    • [DBH] libavcodec/x86/videodsp.asm
    • [DBH] libavcodec/x86/videodsp_init.c
  • Is there a way to stream download a mp3 file that is being converted on a nodejs server ?

    19 février 2019, par Thriskel

    I am looking for a way to send the url to the nodejs server and respond the user with the mp3 file download.

    I searched some examples, and read about requests and responses, but I am not sure what the problem really is.

    This is the Javascript for the HTML :

       var downloadBtn = document.querySelector('.download_button');
       var URLinput = document.querySelector('#myUrl');

       downloadBtn.addEventListener('click', () => {
           console.log(`URL: ${URLinput.value}`);
           sendURL(URLinput.value);
       });

       function sendURL(URL) {
           window.location.href = `http://localhost:4000/download?URL=${URL}`;
       }

    This is the Javascript for the Nodejs server :

    const express = require('express');
    const cors = require('cors');
    const ytdl = require('ytdl-core');
    const app = express();
    const ffmpeg = require('fluent-ffmpeg')
    app.use(cors());

    app.listen(4000, () => {
       console.log('Server Works !!! At port 4000');
    });

    app.get('/download', (req,res) => {
    var URL = req.query.URL;

    res.header('Content-Disposition', 'attachment; filename="file.mp3"');
    let stream = ytdl(URL, {
     quality: 'highestaudio',
    }); //HERE THE STREAM FILE IS SELECTED TO BE CONVERTED TO MP3

    ffmpeg(stream)
     .audioBitrate(128)
     .pipe(res); // HERE IS CONVERTED AND WHERE I WANT IT TO SEND IT AS A DOWNLOAD TO THE USER.
    });

    I expected it to stream download the file but instead it gets me to the nodejs server page to /download/url_to_vid