Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (30)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (3867)

  • Save a partial video file locally using NodeJS

    25 octobre 2017, par Sami

    I have a serverless web application that is deployed on AWS and I have to take a screenshot from an uploaded video to S3. I am using ffmpeg to extract the screenshot but the only drawback is that I have to download the video file first in order to let ffmpeg work with it.
    Knowing the fact I am using AWS Lambda and I don’t have limits for video length users might upload large files which makes AWS Lambda to hit the storage limit.
    To overcome this I thought of downloading a small chunk of the video and use it with ffmpeg to extract the thumbnail so using the S3.getOjbect method with range params I was able to download a chunk of the file but ffmpeg couldn’t understand it.
    Here is my code :

    s3.getObject({
     Bucket: bucketName,
     Key: key,
     Range: 'bytes=0-1048576'
    }, (err, data) => {
     fs.writeFile(fileName, data.Body, error => {
       if (error)
         console.log(error)
       else
         console.log('File saved');
     })
    })

    And the code to extract the thumbnail :

    const ffmpeg = require('fluent-ffmpeg');
    new ffmpeg(fileName).screenshots({
     timestamps: [0],
     filename: 'thumb.png',
     folder: '.'
    })

    And I am getting this error from ffmpeg

    Error: ffmpeg exited with code 1: ./test.mp4: Invalid data found when processing input

    I know there is a problem in saving the file like this but I couldn’t find any solution that solves my problem. If anybody has one that would be much appreciated.

    UPDATE :
    It turns out that ffmpeg does this for me, I just gave it the url and it downloaded what it needs to render the screenshot without the need to download the file locally and the code looks like this :

    const ffmpeg = require('fluent-ffmpeg');
    new ffmpeg(url).screenshots({
     timestamps: [0],
     filename: 'thumb.png',
     folder: '.'
    })
  • avcodec/mpeg4videodec : Use union to save space

    21 mai, par Andreas Rheinhardt
    avcodec/mpeg4videodec : Use union to save space
    

    At most one of block32 and dpcm_macroblock is used at any given time.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpeg4videodec.h
  • Save two video streams in one video file c#, Windows 8 application [on hold]

    19 septembre 2014, par manos

    I am developing a Windows store application which will be able to record video from two video sources (e.g. two usb cameras or usb camera and embeded tablet camera) and then save the two video streams in one video file. So, when the saved video will play, it will show a large video frame (video from camera 1) and inside that, in the top right corner, a smaller video frame (video from camera 2). Basically, i want to render one video on top of the other. I think the process is called picture in picture, but I am not 100% sure. I am able two capture the 2 video streams (same length, same video quality) but I do not know how to proceed after that. How to do the rendering. Do I save the streams into two files and then process those files or do i need to process the streams directly (merge them) and then save to file ?
    I have read that you can do something like that by using ffmpeg libraries. But so far I have not managed to find any c# code to it. Any ideas ?

    Thanks in advance,
    Manos