Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (112)

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

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6935)

  • How to programmatically start/stop FFMPEG stream transcoding

    3 février 2014, par Paul Wieland

    I have an ip webcam which provides an MJPEG stream. I can successfully transcode and save that stream with ffmpeg under OSX. The following gives me pretty much what I want :

    ffmpeg -f mjpeg -i "http://user:pass@10.0.1.200/nphMotionJpeg?Resolution=640x480&Quality=Standard" -b:v 1500k -vcodec libx264 /tmp/test.mp4

    That will start an FFMPEG session and begin saving the live stream to my test.mp4 file. pressing q will quit ffmpeg and save the file.

    I would like to programmatically start & stop the recording using a PHP or Bash shell script. I have tried the following :

    <?php

    $pid = pcntl_fork();

    if($pid == -1){
       die("could not fork");
    }elseif($pid){
       // we are the parent...
       print $pid.' started recording. waiting 10 seconds...';
       sleep(10); // Wait 10 seconds

       print_r(shell_exec("kill ".$pid)); // Kill the child recording process

       echo 'done';
       exit();
    }else{
       // we are the child process. call ffmpeg.
       exec('../lib/ffmpeg -f mjpeg -i "http://user:pass@10.0.1.200/nphMotionJpeg?Resolution=640x480&Quality=Standard" -b:v 1500k -vcodec libx264 /tmp/test.mp4');
    }

    But there are two problems :

    1. The ffmpeg process does not end/die (probably because its forked again)
    2. When I manually kill the ffmpeg process, the video file is not readable
  • How to programmatically start/stop FFMPEG stream transcoding

    10 décembre 2019, par Paul Wieland

    I have an ip webcam which provides an MJPEG stream. I can successfully transcode and save that stream with ffmpeg under OSX. The following gives me pretty much what I want :

    ffmpeg -f mjpeg -i "http://user:pass@10.0.1.200/nphMotionJpeg?Resolution=640x480&Quality=Standard" -b:v 1500k -vcodec libx264 /tmp/test.mp4

    That will start an FFMPEG session and begin saving the live stream to my test.mp4 file. pressing q will quit ffmpeg and save the file.

    I would like to programmatically start & stop the recording using a PHP or Bash shell script. I have tried the following :

    <?php

    $pid = pcntl_fork();

    if($pid == -1){
       die("could not fork");
    }elseif($pid){
       // we are the parent...
       print $pid.' started recording. waiting 10 seconds...';
       sleep(10); // Wait 10 seconds

       print_r(shell_exec("kill ".$pid)); // Kill the child recording process

       echo 'done';
       exit();
    }else{
       // we are the child process. call ffmpeg.
       exec('../lib/ffmpeg -f mjpeg -i "http://user:pass@10.0.1.200/nphMotionJpeg?Resolution=640x480&Quality=Standard" -b:v 1500k -vcodec libx264 /tmp/test.mp4');
    }

    But there are two problems :

    1. The ffmpeg process does not end/die (probably because its forked again)
    2. When I manually kill the ffmpeg process, the video file is not readable
  • Video is concatenated but not showing all video after playing First one in ffmpeg

    1er décembre 2017, par Chinmoy

    I am trying to concate three mp4 video using FFMPEG. after executing the ffmpeg commend, when I try to play the final video the one is playing 45 second perfectly and then then make it conflict and stop the video but audio is playing .
    I have check finale video duration It’s duration is 120 second which is total duration of thee input video.
    I am asking to you guys hwo can i play this video with out conflicting.

    Here is my code that I have used for concatenate :

    ffmpeg -i /Users/mukul/Documents/Nugruv/video/testforplay.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /Users/mukul/Documents/Nugruv/video/testforplay.ts

    ffmpeg -i /Users/mukul/Documents/Nugruv/video/video3.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /Users/mukul/Documents/Nugruv/video/video3.ts

    ffmpeg -i /Users/mukul/Documents/Nugruv/video/video4.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts /Users/mukul/Documents/Nugruv/video/video4.ts

    ffmpeg -i "concat:/Users/mukul/Documents/Nugruv/video/testforplay.ts|/Users/mukul/Documents/Nugruv/video/video3.ts|/Users/mukul/Documents/Nugruv/video/video4.ts" -c

    copy -bsf:a aac_adtstoasc /Users/mukul/Documents/Nugruv/video/Cam01.mp4
    I am waiting for your help.. :)