Recherche avancée

Médias (91)

Autres articles (101)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

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

Sur d’autres sites (6208)

  • FFMPEG code not generating thumbnail, but it was working before [closed]

    25 mars 2020, par Shijil

    I want to save thumbnails in my website using this simple FFMPEG code.
    I tried to run it, but it shows error

       <?php


    $file="Videos/bloodshot.mp4";
    $vname="bloodshot";

    $W = intval($_GET['file']);
    $H = intval($_GET['file']);

    if(substr($file,0,1) != '.'){

    $mov = new ffmpeg_movie($file);
    $wn = $mov->GetFrameWidth();
    $hn = $mov->GetFrameHeight();

    $frame = $mov->getFrame(32);

    $gd = $frame->toGDImage();

    if(!$W and !$H)
    {

    $W = $neww; // width of the image
    $H = $newh; // height image
    }


    $new = imageCreateTrueColor($W, $H);
    imageCopyResized($new, $gd, 0, 0, 0, 0, $neww, $newh, $wn, $hn);
    $black = imagecolorallocate($new, 255, 255, 255);
    imagegif($new);
    imagegif ($new, './thumb/success.gif', 100);
    }
    ?>

    error log is

    [25-Mar-2020 14:52:31 UTC] PHP Fatal error:  Uncaught Error: Class 'ffmpeg_movie' not found in /home/xxxxxxx/public_html/Videos/ffmpeg.php:12
    Stack trace:
    #0 {main}
     thrown in /home/xxxxxxx/public_html/Videos/ffmpeg.php on line 12

    I was able to run it without error in a mobile site few years ago. But it seems to be not working now.
    Server has FFMPEG support.
    I am not an expert in php, please fix this code for me.

  • build-ffmpeg.sh bad variable name

    25 octobre 2016, par Alex Kombo

    I have added the library to my project successfully but after replacing the Android media player with the FFmpegMediaPlayer and trying to build and run the project, I get the following error :

    :library:buildFFmpeg
    /home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh: 4: export: Africa/Music: bad variable name

    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':library:buildFFmpeg'.
    > Process 'command '/home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh'' finished with non-zero exit value 2

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 34.148 secs

    How can I solve tackle this since removing the build-ffmpeg.sh file doesn’t look like an option.

  • want to play m3u8 with hls.js and vue.js

    21 octobre 2020, par tomo1127

    I'm trying to play m3u8 with hls.js and vue.js on codesandbox.

    


    I made m3u8 useing ffmpeg like this.

    


    ffmpeg -i movie1.mp4 -vcodec libx264 -s 1280x720 -strict experimental -acodec aac -b:a 96k -flags +loop-global_header -vbsf h264_mp4toannexb -f segment -segment_format mpegts -segment_time 10 -segment_list mav.m3u8 mav_%04d.ts


    


    The Error from codesandbox say
** The error you provided does not contain a stack trace. **

    


    Aslo I could play mp4 or youtube but not m3u8.

    


    Here is my code

    


    <template>&#xA;  <div>&#xA;    &#xA;&#xA;    <p>window height: {{ height }}</p>&#xA;  </div>&#xA;</template>&#xA;&#xA;<code class="echappe-js">&lt;script&gt;&amp;#xA;import Hls from &quot;hls.js&quot;;&amp;#xA;&amp;#xA;export default {&amp;#xA;  data() {&amp;#xA;    return {&amp;#xA;      hls: new Hls(),&amp;#xA;      height: window.innerHeight,&amp;#xA;    };&amp;#xA;  },&amp;#xA;  methods: {&amp;#xA;    playVide() {&amp;#xA;      this.height = window.innerHeight;&amp;#xA;      const video = document.getElementById(&quot;video&quot;);&amp;#xA;&amp;#xA;      if (Hls.isSupported()) {&amp;#xA;        this.hls = new Hls();&amp;#xA;        this.hls.loadSource(&amp;#xA;          &quot;SAMPLE.m3u8&quot;&amp;#xA;        );&amp;#xA;        this.hls.attachMedia(video);&amp;#xA;        setTimeout(() =&gt; {&amp;#xA;          video.play();&amp;#xA;        }, 1000);&amp;#xA;      }&amp;#xA;    },&amp;#xA;  },&amp;#xA;  mounted() {&amp;#xA;    window.addEventListener(&quot;scroll&quot;, this.playVide);&amp;#xA;  },&amp;#xA;};&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

    I'm not sure this is happen because how I use ffmpg or how I code hls.js

    &#xA;