Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (54)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

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

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

    


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