Recherche avancée

Médias (91)

Autres articles (48)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11066)

  • Covert video to frames, then back to video without altering the frames in python

    7 mars 2021, par Rashiq

    I am writing a script in python that converts a video (let this video be X) into frames (X′) and then back into the same video (Y). Now, when I break video Y back into frames (Y′) the images are not equal to X′ frames i.e. they have different hashes. I would expect them to be the same, and if being not the same is the expected behaviour, how can I make them the same ?

    


    Is there a way to go from

    


    `video, X —> frames, X′, —> video, Y, —> frames, Y′, —> video, Z, —> frames, Z′

    


    and so on without changing the output from its previous state such the videos X, Y, Z and frames X′, Y′, Z′ are same to each other in their respective sets ?

    


    I have tried multiple video codecs (mp4, avi, mkv) and image formats (tif, jpeg, png). To my understanding, lossy compression codecs should not work by lossless such as tif are not producing consistent output either.

    


    I have followed these video-to-frame and frame-to-video among other tutorials but to no avail. Any help would greatly be appreciated.

    


  • How to cut a video to a certain length and add an intro video to it using ffmpeg-python ?

    16 juillet 2021, par kup

    How to cut a video to a certain length and add an intro video to it using ffmpeg-python ?

    


    What i am doing is :

    


            intro = ffmpeg.input(intro)
        mainvid = ffmpeg.input(mainvid)

        v1 = intro.video
        a1 = intro.audio
        v2 = mainvid.video
        a2 = mainvid.audio

        joined = ffmpeg.concat(v1, a1, v2, a2, v=1, a=1).node
        v3 = joined[0]
        a3 = joined[1]

        (
            ffmpeg
            .output(
                v3,
                a3,
                'out.mkv', 
                vcodec='libx265', )
            .run()
        )


    


    But i dont know how to cut mainvid to a certain length like 10 mins before joining, i know ss will help but dont know how to use it for only mainvid.

    


  • ffmpeg and php to get an image out of a video and convert video to ogg

    6 mars 2016, par sonam Sharma

    I have a video hosting site and have successfully installed ffmpeg on my local server. Things work overall, but I cannot get the video duration and don’t know how to convert videos to the ogg format. I can convert videos to mp4 but am unsure if the same code can also convert to ogg.

    One more thing is that I can get a thumbnail out of the video at the start of the video but I want it after 50 seconds.

      $base = basename($uploadfile, $safe_file['ext']);
                   $new_file = $base.'mp4';
                   $new_image = $base.'jpg';
                   $new_image_path = $live_img.$new_image;
                   $new_flv = $live_dir.$new_file;

     equire 'vendor/autoload.php';
           //ececute ffmpeg generate mp4
           exec('ffmpeg -i '.$uploadfile.' -f mp4 -s 896x504 '.$new_flv.'');
           //execute ffmpeg and create thumb
           exec('ffmpeg  -i '.$uploadfile.' -f mjpeg -vframes 71 -s 768x432 -an '.$new_image_path.'');