Recherche avancée

Médias (91)

Autres articles (89)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (3910)

  • 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

  • Add length for each frame in a MJPEG stream transcoded by ffmpeg

    8 décembre 2020, par user3612643

    I am using the following command to transcode my cam's stream into mjpeg which I decode and present in my custom home-control app :

    


    ffmpeg -i rtsp://mycamera:554/onvif1 -c:v mjpeg -f mjpeg -

    


    That works quite nicely, but the result is just a continuous sequence of jpeg images/frames. For faster decoding, I would like to have a length header before each frame, so that I can cut out the exact JPEG from the stream :

    


    LENGTH FRAME LENGTH FRAME

    


    Each LENGTH should be 4-bytes encoding in LE or BE the length of the following FRAME in bytes.

    


  • /root/bin/ffmpeg : error while loading shared libraries : libtheoraenc.so.1 : cannot open shared object file : No such file or directory

    12 février 2014, par Paks

    my ffmpeg command gives error when I try to convert video format. I have installed ffmpeg manually as guided in this link https://trac.ffmpeg.org/wiki/CentosCompilationGuide. for above issue I have also checked http://unix.stackexchange.com/questions/34023/ffmpeg-error-while-loading-shared-libraries-libtheoraenc-so-1 but not able to resolve my issue.

    My command is : /root/bin/ffmpeg -i /home/pulsebrk/public_html/beta/user_uploads/6/1148a008470721f06c8dc71efa70622f99799e91.avi -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 345k -s x /home/pulsebrk/public_html/beta/user_uploads/6/1148a008470721f06c8dc71efa70622f99799e91.ogv and error is : /root/bin/ffmpeg : error while loading shared libraries : libtheoraenc.so.1 : cannot open shared object file : No such file or directory

    libtheroa version is : 1.1.1 please anyone drive me for above issue.