Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (69)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

Sur d’autres sites (11763)

  • 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.

  • Build failed in step 'Retrieving needed toolchain components' tarballs

    1er mars 2018, par VaFancy

    I tried to build crosstool in my raspberry pi, and the procedure I followed was from How to compile FFmpeg for Raspberry Pi (Raspbian). When I finished ct-ng build(which took a very long time), an error occurred. It shows that Build failed in step 'Retrieving needed toolchain components' tarballs called in step '{top-level}'

    Here is the error I copied from build.log.

    [ERROR]  
    [ERROR]  >>
    [ERROR]  >>  Build failed in step 'Retrieving needed toolchain components' tarballs'
    [ERROR]  >>        called in step '(top-level)'
    [ERROR]  >>
    [ERROR]  >>  Error happened in: do_kernel_get[scripts/build/kernel/linux.sh@735]
    [ERROR]  >>        called from: main[scripts/crosstool-NG.sh@576]
    [ERROR]  >>
    [ERROR]  >>  For more info on this error, look at the file: 'build.log'
    [ERROR]  >>  There is a list of known issues, some with workarounds, in:
    [ERROR]  >>      '/opt/cross/share/doc/crosstool-ng/ct-ng.1.19.0/B - Known issues.txt'
    [ERROR]

    How can I solve this ? Please help me, I’ve already wasted 2 days on it.

  • Rotated video with ffmpeg doesn't play in flowplayer in IE9

    3 avril 2018, par yoshi

    I have a script that rotates videos 90 degrees and then the videos are displayed on a web page using flowplayer (HTML5 version, not Flash). After the video is rotated once it does not play in IE9 but plays without any other problems in Chrome and Firefox.
    The error message is : Video file not found.

    I’ve looked in IE9’s developer tools console, in the network tab and the browser streams the whole video.

    The following is the ffmpeg command I use to rotate and convert the video :

    ffmpeg -i input.mov -y -r 30 -b 4M -vf 'transpose=1,scale=800:trunc(ow/a/2)*2' -ar 48000 -vcodec libx264 -profile baseline -preset slow -level 2.2 output.mp4

    This is the input file which I used : https://dl.dropboxusercontent.com/u/37994/local%20capture.mov

    This is the output video : https://dl.dropboxusercontent.com/u/37994/local%20capture%20rotated.mp4

    The input video from above is a screen capture made using QuickTime on Mac OS.

    This also happened for this video : http://mirrorblender.top-ix.org/peach/bigbuckbunny_movies/big_buck_bunny_480p_h264.mov
    And also this one : https://dl.dropboxusercontent.com/u/37994/clipcanvas_14348_offline.mp4

    This didn’t happen for the sample .mov from here : http://support.apple.com/kb/ht1425

    If I run the command twice, meaning I rotate the video 90 degrees and then I rotate the output using the same command once more, the problem disappears, but I need to be able to rotate only 90 degrees.

    This problem doesn’t happen if I put IE9 in IE7 or IE8 compatibility mode.

    I was thinking that maybe the problem was how the server serves the video but there’s no problem with other videos.

    I looked at the metadata with ffmpeg but didn’t see anything significant.

    I already have AddType video/mp4 .mp4 in .htaccess.

    I can’t seem to pin down what’s causing this problem.

    Edit :

    Request in IE9
    IE9 request

    Response in IE9
    IE9 response