Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8055)

  • Video buffering/streaming with node-fluent-ffmpeg

    24 février 2018, par Salies

    I want to turn AC3-audio videos playable on browsers. For this, I decided to use fluent-ffmpeg to real-time convert the videos and stream them. It works as livestreaming/piping pretty well, but you can’t even go back in the videos.

    app.get('/video', function (req, res) {
     var path = 'show.mkv';
     ffmpeg(path)
       .outputOptions(arr)
       .on('end', function () {
         console.log('file has been converted succesfully');
       })
       .on('error', function (err) {
         console.log('an error happened: ' + err.message);
       })
       .pipe(res);
    });

    So I need to build a sort of buffer for the conversion, this is, to let the user go back and forth in the video. I’ve found some code that does exactly what I need, although it doesn’t convert :

    app.get('/video', function(req, res) {
     const path = 'assets/sample.mp4'
     const stat = fs.statSync(path)
     const fileSize = stat.size
     const range = req.headers.range

     if (range) {
       const parts = range.replace(/bytes=/, "").split("-")
       const start = parseInt(parts[0], 10)
       const end = parts[1]
         ? parseInt(parts[1], 10)
         : fileSize-1

       const chunksize = (end-start)+1
       const file = fs.createReadStream(path, {start, end})
       const head = {
         'Content-Range': `bytes ${start}-${end}/${fileSize}`,
         'Accept-Ranges': 'bytes',
         'Content-Length': chunksize,
         'Content-Type': 'video/mp4',
       }

       res.writeHead(206, head)
       file.pipe(res)
     } else {
       const head = {
         'Content-Length': fileSize,
         'Content-Type': 'video/mp4',
       }
       res.writeHead(200, head)
       fs.createReadStream(path).pipe(res)
     }
    })

    (from https://github.com/daspinola/video-stream-sample)

    I’ve been trying to make fluent-ffmpeg work with buffering, with no success, and I pretty much have no clue on what to do. If buffering isn’t possible, is there an similar alternative excpect for pre-converting the videos ? Thanks already.

  • Extract scene change info from a video file

    18 novembre 2018, par Ray P.

    Is there a way to extract scene change information from a video file using XVid in Python ? For example : I have an .mkv file, and I need to get a .log scene change file (Xvid 2nd pass stat file) to use for subtitles timing. SCXvid can create such files, but I’d like to do this in Python if possible.

    The reason why I need this is because the only way to do it on Linux is to use SCXvid-standalone which requires y4m files, and I need to use files in their original format.

  • Got incorrect audio duration from ffmpeg

    8 septembre 2021, par Remeraze

    I used an ffmpeg command to export parts of an audio clip :

    


    ffmpeg -i {path} -acodec copy -ss {start_time} -to {end_time} {output_path}


    


    Unfortunately, this has the side effect of not changing the time duration in the file's details section, making many programs I use think the time of the cut audio files is much more than it really is.

    


    Is there a way to either make ffmpeg change the duration, or find a command in python that can change an audio file's "length" stat so I can do it manually ? I couldn't find any way online.

    


    Thanks.