Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (29)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (3741)

  • 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

  • How to Extract Frames from the uploaded video through ffmpeg using node js ?

    2 février 2021, par Aditya Vyas

    I have created application in which user uploads a video , from that video i want to extract 50 images using ffmpeg in nodejs, but i am unable to get that file after uploading it in specific folder. I am uploading video through multer as it stores video in specified folder, after that i read that video using read stream but it is not giving proper information on that particular video

    


    Code :

    


    var express = require('express');

var app = express();

var bodyParser = require('body-parser');

var path = require('path');

var multer = require('multer');

var cfenv = require('cfenv');

var watson = require('watson-developer-cloud');

var ffmpeg = require('ffmpeg');

app.use(bodyParser.json());

app.use(bodyParser.urlencoded({"extended": false}));

app.use(express.static(__dirname + '/public'));

var storage = multer.diskStorage({
    destination: function(req, file, callback){
        callback(null, './public/class'); // set the destination
    },
    filename: function(req, file, callback){
        callback(null, 199212+ '.avi'); // set the file name and extension
    }
});

var upload = multer({storage: storage});
 
 app.upload = upload;
 
 // get the app environment from Cloud Foundry
 var appEnv = cfenv.getAppEnv();

var VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3');

var fs = require('fs');


var visualRecognition = new VisualRecognitionV3({
  version: '2018-03-19',
  iam_apikey: 'aaIFu-fHWBXgj09eVarEQUFlIaTeH9bpgvRqHIJxu_8N'
});


app.post('/imgtable',app.upload.single('video-upl'),function(req,res){
                
    var video_file = fs.createReadStream(req.file.path);
                                    
 try {
    var process = new ffmpeg('./public/class/199212.avi');
    process.then(function (video) {
        // Video metadata
        console.log('******************************');
        console.log(video);
        // FFmpeg configuration
        console.log('*********************************');
        console.log(video.info_configuration);
    }, function (err) {
        console.log('Error: ' + err);
    });
} catch (e) {
    console.log(e.code);
    console.log(e.msg);
}

    
})

app.listen(3000);`


    


  • How to convert video for web with ffmpeg for Twitter [closed]

    25 janvier 2024, par Alex Nox

    ffmpeg -i "sabaer.avi" -r -crf 23 -c:v libx264 sabe2r.mp4
Doesn't work
The media you tried to upload was invalid.

    


    Using this converter although fixes the problem :
https://webservice.online-convert.com/convert-for-twitter

    


    But it's not a vertical video format there and I originally want to do it via ffmpeg