Recherche avancée

Médias (91)

Autres articles (81)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (11067)

  • PHP file that outputs a video does not play

    2 septembre 2014, par Rob Avery IV

    So, I created a php file that has the following code (abridged version) :

    <?php

    //Full version of file does a lot of database stuff

    //Get $path of file

    header('Content-type: video/mp4');
    header('Content-Length: '.filesize($path)); // provide file size

    $contents = file_get_contents($path);
    echo $contents;

    I use this php to obtain the video content, so I don’t have to hardcode the video path into the HTML and so I can keep the videos outside public_html. I have tested this before, and it works with other video files.

    Here is a timeline of where this file has been and what I’m trying to do :

    1. File is uploaded
    2. File is converted to mp4 using ffmpeg-php
    3. Stream it (similar to youtube) using the php code above

    The file uploads and converts fine (I tested this by downloading the video file locally after it has been converted and I was able to play the video). I use the following ffmpeg command to convert ALL videos to mp4 :

    "ffmpeg -i '".$srcFile."' -vcodec h264 -acodec aac -strict -2 -f mp4 '".$destFile."'";

    My only problems is with step 3. When I use the above php file to output the video, it doesn’t work sometimes (Right now, it only works with a few videos). Every file I’m outputting is converted the same way with the above ffmpeg command.

    How do I make it so I am able to convert all (or at least most) video files to be able to stream them ?

  • ffmpeg adding play image to thumbnail output

    26 août 2014, par StealthRT

    Hey all I am currently able to get a thumbnail capture from my MP4 video by doing the following command line :

          [Sets Per-file main options time_off start time offset]
          || [The # of start time offsets]
          || || [Sets input video file option]
          || || ||   [Video file name here]
          || || ||   ||         [Sets video option to # of video frames to record]        
          || || ||   ||         ||     [Asking for the first frame]
          || || ||   ||         ||     ||  [Name of the captured video frame]
          || || ||   ||         ||     ||  ||
          \/ \/ \/   \/         \/     \/  \/
    ffmpeg -ss 0 -i vidfile.mp4 -vframes 1 frame.png

    Now as I said above, this command works just fine in producing a thumbnail of the first frame of my MP3 video. However, I am needing to place an overlay image of a "play" button on top of that newly created frame image.

    Is there another command that i can tell it to overlay another image on top of frame.png ?

    The image I would like to overlay on top of the frame looks like this (a transparent PNG) :

    enter image description here

    Any help would be great ! Thanks !

  • How to play RTSP IP camera using ffmpeg and exoPlayer in android

    3 juin 2023, par jcredking

    I was trying LibVlc but I get dealy in this and can't record the stream