Recherche avancée

Médias (91)

Autres articles (77)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

Sur d’autres sites (9040)

  • Async Javascript function returns undefined

    14 avril 2018, par Leon Wright

    I am trying to run this function but the it keeps returning undefined when I explicitly hardcode the return value.

    const splitVideo = async (sid, video, part) => {
       let framesLocation =`${process.cwd()}/${dirs.videoFrames}/${sid}_${part}`;

       console.log(fs.existsSync(framesLocation));

       if(!fs.existsSync(framesLocation)) {
           console.log("making dir");
           f.s.mkdirSync(framesLocation);
       }

       ffmpeg(video)
           .on('end', () => {
                return "done";
            })
            .on('error', (err) => {
                throw err;
            })
            .screenshots({
                 timestamps: [1,2],
                 filename: `${sid}_${part}/frame-%s.png`,
                 folder: `${process.cwd()}/${dirs.videoFrames}`
            });
    };

    Please help this is very frustrating.

  • FFMPEG works in command line but not in exec(), it returns 127

    26 février 2015, par Felipe Schenone

    The command is

    ffmpeg -i path/to/video.avi path/to/video.mpg

    and it works fine from the command line. However, when I call it with PHPs exec(), the return value is 127, it doesn’t seem to detect FFMPEG. What am I doing wrong ? I’m in localhost and the safe mode is off, but I’m new to both FFMPEG and exec(), so it may be a noob mistake. Thanks in advance.

  • avformat/oggenc : check for stream private data in ogg_free()

    22 juin 2017, par James Almer
    avformat/oggenc : check for stream private data in ogg_free()
    

    Fixes a NULL pointer derefence when ogg_init() returns a failure and
    a stream's private data was not yet allocated.

    This is a regression since 3c5a53cdfa099bba8bd951f95b85727b4b3b5d68

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavformat/oggenc.c