Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (104)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • 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

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (9888)

  • Extract the first 2 minutes of video without re-encoding - ffmpeg

    8 juillet 2015, par Code_Ed_Student

    I am seeking a fast and efficient way of extracting the first two minutes of a video. Below script finds the nearest keyframe after 120 seconds. This keyframe searching is some what time consuming for large video files. If I disregard the keyframe and cut, I face the fact that the video maybe ruined. I have also tried forcing a keyframe but that involves re-encoding. What is the best and most efficient way to extract the first two minutes of a large video file ?

    #fetch nearest keyframe after two minutes
    ffprobe -select_streams v -show_frames -v quiet -i test.mp4 |
       awk -F= '
         /pict_type=/ { if (index($2, "I")) { i=1; } else { i=0; } }
         /pkt_pts_time/ { if (i && ($2 >= 120)) print $2; }  
       ' | head -n 1

    #cut video
    ffmpeg -i test.mp4 -ss 00:00:00 -t 00:02:00.15 -async 1 cut.mp4
  • web recorded video not played in ipad

    30 juin 2015, par ketan

    I record video from web using flash media server. Now using flex default player i tried to play video but, it will not play ipad.(ios device)
    I checked that video codec and it is something like following :

    libxavs --enable-libxvid --enable-decklink --enable-zlib
     libavutil      52. 92.100 / 52. 92.100
     libavcodec     55. 69.100 / 55. 69.100
     libavformat    55. 45.100 / 55. 45.100
     libavdevice    55. 13.102 / 55. 13.102
     libavfilter     4. 10.100 /  4. 10.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    [flv @ 0000000002b60220] Stream discovered after head already parsed
    Input #0, flv, from 'C:\Users\Administrator\Desktop\123654789.flv':
     Metadata:
       canSeekToEnd    : false
       createdby       : FMS 4.5
       creationdate    : Tue Jun 30 16:27:22 2015
     Duration: 00:00:15.25, start: 0.000000, bitrate: 52 kb/s
       Stream #0:0: Video: flv1, yuv420p, 320x227, 1k tbr, 1k tbn, 1k tbc
       Stream #0:1: Audio: speex, 16000 Hz, mono, s16, 20 kb/s
       Stream #0:2: Data: none

    I record video following ways :

    netstream.publish("FILENAME","record");

    Thanks.

    Edit :

    Another flv file i got which is played in ios. But when i check it’s codec it something like following :

    r --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab -
    -enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
    --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-
    libxavs --enable-libxvid --enable-decklink --enable-zlib
     libavutil      52. 92.100 / 52. 92.100
     libavcodec     55. 69.100 / 55. 69.100
     libavformat    55. 45.100 / 55. 45.100
     libavdevice    55. 13.102 / 55. 13.102
     libavfilter     4. 10.100 /  4. 10.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 19.100 /  0. 19.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, flv, from 'C:\Users\Administrator\Desktop\16402.flv':
     Metadata:
       major_brand     : 3gp4
       minor_version   : 0
       compatible_brands: isom3gp4
       encoder         : Lavf55.45.100
     Duration: 00:00:13.23, start: 0.000000, bitrate: 304 kb/s
       Stream #0:0: Video: flv1, yuv420p, 320x240, 300 kb/s, 15 fps, 15 tbr, 1k tbn
    , 1k tbc
       Stream #0:1: Audio: mp3, 22050 Hz, mono, s16p, 0 kb/s

    How, can i record/convert flv like below ?

  • How to limit duration of the video with Dropzonejs ?

    26 juin 2015, par SNaRe

    I have a form which I upload videos and duration/length of the video is important.

    After I upload the file with PHP, I check the duration of the video file size with FFMpeg.

    I calculate duration in PHP and need to send value of the duration via PHP somehow. I think I have to append the duration to $result variable of Json.

    This is my html

       

           <code class="echappe-js">&lt;script src=<br />
           &quot;//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js&quot;&gt;&lt;/script&gt;

    &lt;script src=&quot;https://rawgit.com/enyo/dropzone/master/dist/dropzone.js&quot;&gt;&lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
    <br />
           Dropzone.options.myDropzone = {<br />
    <br />
           maxFiles: 1,<br />
           acceptedFiles: &quot;image/*,video/*&quot;,<br />
           maxfilesexceeded: function (file) {<br />
               this.removeAllFiles();<br />
               this.addFile(file);<br />
               $('#infomsg').hide();<br />
    <br />
           },<br />
    <br />
           init: function () {<br />
               $('#infomsg').hide();<br />
    <br />
               this.on(&quot;success&quot;, function (result) {<br />
    <br />
                   $('#infomsg').show();<br />
    <br />
    <br />
                   $(&quot;#boatAddForm&quot;).append($('&lt;input type=&quot;hidden&quot; ' +<br />
                       'name=&quot;files[]&quot; ' +<br />
                       'value=&quot;' + result.name + '&quot;&gt;'));<br />
    <br />
               });<br />
           }<br />
           };<br />
    <br />
    <br />
           &lt;/script&gt;

    This is the most minimal example of Dropzone. The upload in this
    example doesn’t work, because there is no actual server to handle
    the file upload.

    This is my PHP

    &lt;?php
    $ds          = DIRECTORY_SEPARATOR;

    $storeFolder = 'uploads';

    if (!empty($_FILES)) {

       $tempFile = $_FILES['file']['tmp_name'];

       $targetPath = dirname( __FILE__ ) . $ds. $storeFolder . $ds;

       $targetFile =  $targetPath. $_FILES['file']['name'];

       move_uploaded_file($tempFile,$targetFile);

    } else {
       $result  = array();

       $files = scandir($storeFolder);                 //1
       if ( false!==$files ) {
           foreach ( $files as $file ) {
               if ( '.'!=$file &amp;&amp; '..'!=$file) {       //2
                   $obj['name'] = $file;
                   $obj['size'] = filesize($storeFolder.$ds.$file);
                   $result[] = $obj;
               }
           }
       }

       header('Content-type: text/json');              //3
       header('Content-type: application/json');
       echo json_encode($result);
    }

    If I could check a custom json response right after

    Dropzone.options.myDropzone = {

    like other requirements for success, I won’t have to right if statements in success in order to check the validation.

    Basically I want to do it as I do like

    maxFiles: 1,

    without writing any conditions inside success