Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (112)

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

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

Sur d’autres sites (20072)

  • Revision 50038 : Petites améliorations du formulaire de configuration On retrouve le ...

    28 juillet 2011, par kent1@… — Log

    Petites améliorations du formulaire de configuration
    On retrouve le logo pour CFG2
    Un peu de ménage dans les sites :
    Les éléments enlevés de la liste :
    - Bluegger => fermé
    - Furl => renvoit vers diigo.com
    - Kirtsy => ne semble plus être un site de ce type
    - Mixx => racheté et ne fonctionne plis
    - pioche.fr => N’existe plus
    - propeller.com => Racheté par aol news
    - Shoutwire => semble avoir disparu de la toile
    - http://simpy.com/ => semble avoir disparu de la toile
    - http://www.tagtooga.com/ => semble avoir disparu de la toile
    - twine => pointe vers evri.com => url à trouver ?
    Les éléments ajoutés :
    - BarraPunto ? => http://barrapunto.com
    - Bitacoras => http://bitacoras.com
    - Dzone => http://www.dzone.com/
    - Friendfeed => http://www.friendfeed.com
    - identi.ca => http://identi.ca
    - linkedin => http://www.linkedin.com
    - Plaxo
    Petite modification de l’url de facebook
    On incrémente le numéro de version

  • Express - FFMPEG : Serve transcoded video instead of static video file

    30 septembre 2020, par No stupid questions

    I am creating a website to host videos downloaded on my computer online. However, many of these videos are not in a web friendly format (like .mkv or .flv). It is not an option to convert these files on the disk and then serve them as static files, converting needs to be done live by the server. I want to transcode these videos with ffmpeg to a web friendly format like webm.

    


    So far, I have been able to somewhat successfully transcode a video and serve it :

    


    import express from 'express';
import cors from 'cors';
import ffmpeg from 'fluent-ffmpeg';

const app = express();

app.use(cors());
app.use(express.json());

app.use('/static/videos', globalPasswordMiddleware, (req, res) => {
    res.contentType('webm');
    const videoPath = path.join('C:/videos', decodeURIComponent(req.path));
    ffmpeg(videoPath)
        .format('webm')
        .on('end', function () {
            console.log('file has been converted succesfully');
        })
        .on('error', function (err) {
            console.log('an error happened: ' + err.message);
        })
        .pipe(res, { end: true });
});


    


    However, I am still encountering three different issues :

    


    Firstly, while this code seems to work for transcoding something like a flash video into webm, there are still a number of videos I cannot get to play. For example, a number of videos that play in Chrome will still not play in Firefox or a number of videos that play on my PC won't on my ancient iPad. Are there more arguments I need to be passing to ffmpeg to transcode the video in a way that it will work on a greater number or devices/browsers ?

    


    Second, there is no ability to seek on the video or see how much time remains. When viewing a transcoded video it behaves more like a livestream than if I were serving it as a static file. How can I fix this ?

    


    And finally third, the transcoding is massively slow. Running in production mode, video playback has to buffer for a few seconds every five or so seconds. I am aware transcoding video is an intense process but I believe given my computer's hardware (i9 9900K) and how much faster it is at transcoding videos on Plex that I should be able to transcode videos faster than this.

    


  • AWS Lambda Layer FFMPEG in Express API not working

    11 octobre 2020, par WorkoutBuddy

    This is the code I have in my lambda function :

    


    app.post('/api/youtube/download', async (req, res) => {
    const body = req.body;
    const { url } = body;

    res.header('Content-disposition', 'attachment; filename=video.mp3');


    const youTubeStream = await youTube.getStream(url);


    console.log('before convertig')
    const result = spawnSync("/opt/bin/ffmpeg", ['-i', youTubeStream,'-vn', '-ar', '44100', '-ac','2','-b:a','192k', '/tmp/file.mp3'], { stdio: 'inherit' })
    console.log(result)
    const output = result['output']
    console.log(output.toString())
    console.log('after converting')
    const stream = await fs.createReadStream('/tmp/file.mp3')
    stream.pipe(res)
}


    



    


    This is the output in Cloudwatch :

    


    INFO ,,ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration : —enable-gpl —enable-version3 —enable-static —disable-debug —disable-ffplay —disable-indev=sndio —disable-outdev=sndio —cc=gcc-6 —enable-fontconfig —enable-frei0r —enable-gnutls —enable-gmp —enable-gray —enable-libaom —enable-libfribidi —enable-libass —enable-libvmaf —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-librubberband —enable-libsoxr —enable-libspeex —enable-libvorbis —enable-libopus —enable-libtheora —enable-libvidstab —enable-libvo-amrwbenc —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzvbi —enable-libzimg
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[object Object] : No such file or directory // NO IDEA WHERE THIS COMES FROM