Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (100)

  • 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 (7686)

  • 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 in Python Returns Corrupted Video

    11 décembre 2020, par user14210589

    In Python, I run ffmpeg to convert a video to a .mp4 file. However, for some reason, the video it creates is not compatible with anything (I'm pretty sure it's corrupted). The code looks like this :

    


    import os

os.system("ffmpeg -i Images/i1.mov Images/edited.mp4 -loglevel quiet")
os.remove("Images/i1.mov")
os.rename("Images/edited.mp4", "Images/i1.mp4")


    


    However, the video file created doesn't play.
I am getting an error that just says killed. What am I doing wrong ?

    


    Edit : I also tried converting to .WebM rather than .mp4, and it had no effect. (it still gave the same error)

    


  • ffprobe returns coded_picture_number with a frame missing

    26 janvier 2018, par Hélder

    While using ffprobe to get the pict_type and coded_picture_number I noticed while doing a for loop in python that one of the coded_picture_number was missing.

    This is the command used :

    ffprobe foreman.m4v -show_frames | grep -E 'pict_type|coded_picture_number' > output.txt

    And I get returned all frame number with exception of one :

    coded_picture_number=290
    pict_type=P
    coded_picture_number=289
    pict_type=B
    coded_picture_number=292
    pict_type=P
    coded_picture_number=291
    pict_type=B
    coded_picture_number=294
    pict_type=P
    coded_picture_number=293
    pict_type=B
    coded_picture_number=297
    pict_type=B
    coded_picture_number=296

    The total is 297 coded_picture_number, where does the 295 go ? Does anyone know how to get it ? It causes errors in python when taking ranges and trying to read the image from the data frame.

    If it is possible to have a smooth numbering per pict_type would be perfect. Any clue ?