Recherche avancée

Médias (91)

Autres articles (13)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (5468)

  • Can't play MP4 after download

    14 août 2018, par joe

    I am using a downloader program in Firefox to download videos playing in Firefox. Most of the time final MP4 is playable. But sometimes I get MP4 file that looks good(shows file size) but shows no length of video in file explorer.

    I get this error log.

    Could not get information from media 'ESPN 2 (HD) Live Stream Channel' from file 'C:\Download\dwHelper\ESPN 2 (HD) Live Stream Channel.mp4'. The file might be corrupted.

    {
       "file": "C:\\Download\\dwHelper\\ESPN 2 (HD) Live Stream Channel.mp4",
       "stat": {
           "dev": 3831878042,
           "mode": 33206,
           "nlink": 1,
           "uid": 0,
           "gid": 0,
           "rdev": 0,
           "ino": 9007199254752056,
           "size": 610722524,
           "atimeMs": 1534241605017.09,
           "mtimeMs": 1534241604156.685,
           "ctimeMs": 1534241604426.08,
           "birthtimeMs": 1534237675494.6475,
           "atime": "2018-08-14T10:13:25.017Z",
           "mtime": "2018-08-14T10:13:24.157Z",
           "ctime": "2018-08-14T10:13:24.426Z",
           "birthtime": "2018-08-14T09:07:55.495Z"
       }
    }
    Exit code: 1
    ffprobe version n4.0-1-gdc49a24-vdhcoapp Copyright (c) 2007-2018 the FFmpeg developers

    built with gcc 5.3.1 (GCC) 20160211

    configuration : —cross-prefix=x86_64-w64-mingw32- —sysroot=/usr/x86_64-w64-mingw32/ —extra-ldflags=-static-libgcc —target-os=mingw32 —arch=x86_64 —prefix=/home/mig/vdhcoapp/converter/src-build/win/64/converter-build —extra-version=vdhcoapp —extra-cflags=-I/home/mig/vdhcoapp/converter/src-build/win/64/deps/include —extra-ldflags=’-static-libgcc -L/home/mig/vdhcoapp/converter/src-build/win/64/deps/lib -L/home/mig/vdhcoapp/converter/src-build/win/64/zlib’ —extra-libs=-lpthread —pkg-config=/usr/bin/x86_64-w64-mingw32-pkg-config —enable-shared —enable-gpl —enable-pthreads —disable-w32threads —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libtheora —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx265 —enable-libxvid —enable-libx264 —enable-avresample —disable-doc

    libavutil 56. 14.100 / 56. 14.100

    libavcodec 58. 18.100 / 58. 18.100

    libavformat 58. 12.100 / 58. 12.100

    libavdevice 58. 3.100 / 58. 3.100

    libavfilter 7. 16.100 / 7. 16.100

    libavresample 4. 0. 0 / 4. 0. 0

    libswscale 5. 1.100 / 5. 1.100

    libswresample 3. 1.100 / 3. 1.100

    libpostproc 55. 1.100 / 55. 1.100

    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000024c3900] moov atom not found

    C :\Download\dwHelper\ESPN 2 (HD) Live Stream Channel.mp4 : Invalid data found when processing input

    It looks like moov atom is missing thus can’t aggregate PART file into final playable MP4.

    I understand that during download, PART file is created. Then later PART is aggregated into final MP4.

    So question is how can I make this MP4 to play ?
    or is it impossible to play cus moov atom was not properly downloaded ?

    Any thoughts ?
    Thanks

  • 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);`


    


  • FFMPEG error when making animations with certain frame dimensions

    10 août 2018, par jtam

    I have been using ffmpeg to successfully generate animations of png images with a size of 7205x4308 with the following command :

    -framerate 25 -f image2 -start_number 1 -i fig%4d.png -f mp4 -vf scale=-2:ih -vcodec libx264 -pix_fmt yuv420p 2015-2018.mp4

    When I try to run the same command for a group of images with a different size, e.g., 6404x5575, I get the following error :

    Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    Conversion failed!

    I have concluded that the reason it is failing has something to do with the frame size because that is the only thing that is different between the first successful animation and the one that is failing. But, my intuition could be wrong(?). I have tried to remove the scaling parameter in the command but I get the same error.

    I am using ffmpeg version 3.4.2 on Mac OSX 10.13 via python.

    Any help would be much appreciated. Thanks !