Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (105)

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

  • 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

Sur d’autres sites (6330)

  • How to encode ffmepg for jwplayer script which script read pass php file ?

    25 décembre 2013, par Sarun Prasomsri

    I have encoded my video use this command.

    $encode_comand="ffmpeg -i  $input_path -ac 1 -ab 128k -y -vcodec libx264 -vpre ultrafast -g 30 -r 30 -crf 22 $target_path &";

    exec($encode_comand);

    And it work for script below

       echo '
                   <div style="margin:0px auto; text-align:center; width:auto; display:blog;" class="vdoplayer">JW Player goes here</div>
                   <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src=&quot;http://stackoverflow.com/feeds/tag/jwplayer/jwplayer.js&quot;&gt;&lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;jwplayer.key=&quot;OOD7GkWbyNXOL6MbstF2Sa/YrQPgtNUPqxm5NA==&quot;;&lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
                                   jwplayer(&quot;mediaplayer&amp;#39;.&quot;11111&quot;.&amp;#39;&quot;).setup({<br />
                                   flashplayer: &quot;jwplayer/jwplayer.flash.swf&quot;,<br />
                                   file: &quot;$video_file&quot;,                            <br />
                                   width: &quot;&amp;#39;.$width.&amp;#39;&quot;,<br />
                                   height: &quot;&amp;#39;.$height.&amp;#39;&quot;,<br />
                                   stretching: &quot;uniform&quot;,<br />
                                   type: &quot;mp4&quot;,<br />
                                   skin: &quot;jwplayer/jwplayer-skins-free/six.xml&quot;,<br />
    <br />
                           });<br />
                   &lt;/script&gt;

    '
    //$video_file="http://myhost.com/project/files/1/video/file3.mp4" ;

    But After I chang script

    echo &#39;
               <div style="margin:0px auto; text-align:center; width:auto; display:blog;" class="vdoplayer">JW Player goes here</div>
               <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src=&quot;http://stackoverflow.com/feeds/tag/jwplayer/jwplayer.js&quot;&gt;&lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;jwplayer.key=&quot;OOD7GkWbyNXOL6MbstF2Sa/YrQPgtNUPqxm5NA==&quot;;&lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
                               jwplayer(&quot;mediaplayer&amp;#39;.&quot;11111&quot;.&amp;#39;&quot;).setup({<br />
                               flashplayer: &quot;jwplayer/jwplayer.flash.swf&quot;,<br />
                               file: &quot;readfile.php&quot;,                            <br />
                               width: &quot;&amp;#39;.$width.&amp;#39;&quot;,<br />
                               height: &quot;&amp;#39;.$height.&amp;#39;&quot;,<br />
                               stretching: &quot;uniform&quot;,<br />
                               type: &quot;mp4&quot;,<br />
                               skin: &quot;jwplayer/jwplayer-skins-free/six.xml&quot;,<br />
                               abouttext: &quot;project&quot;,<br />
                               aboutlink: &quot;project&quot;,<br />
                       });<br />
               &lt;/script&gt;

    '

    It not work for my video encode,But i try video that not encode it work.

    Video
    Dimension : 853 x 840
    codec : H.264
    Framerate : 30 frames per second
    Bitrate 408 kbps
    Audio
    codec : MPEG-4 AAC
    channels : Stero
    Sample rate : 44100 Hz ์
    Bitrate : N/A

    Readfile.php that have function read file

    &lt;?php
       $filename= &#39;http://www.longtailvideo.com/jw/upload/bunny.mp4&#39;; //can read
       $video_file = "http://myhost.com/project/files/1/video/file3.mp4";
       //cannot read Same file as script below

       if (file_exists($video_file)) { ob_clean(); flush(); };
       header(&#39;Content-Type: video/mp4&#39;);
       header(&#39;Content-Disposition: attachment;filename=file.mp4&#39;);
       readfile($video_file);
       ?>

    Thank you

  • Lego Mindstorms RSO Format

    14 juillet 2010, par Multimedia Mike — General

    I recently read a magazine article about Lego Mindstorms. Naturally, the item that caught my eye was the mention of a bit of Lego software that converts various audio file formats to a custom format called RSO that can be downloaded into a Mindstorms project to make the creation output audio. To read different sources, one might be left with the impression that there is something super-duper top secret proprietary about the format. Such impressions do not hold up under casual analysis of a sample file.

    A Google search for "filetype:rso" yielded a few pre-made sample that I have mirrored into the samples archive. The format appears to be an 8-byte header followed by unsigned, 8-bit PCM. More on the wiki. If FFmpeg could gain an RSO file muxer, that would presumably be a heroic feat to the Lego hacking community.

  • Flutter video_compress and then ffmpeg trim video to 30s fails with endless logs

    7 mars 2021, par Charles Bass

    I am trying to make a simple app in Flutter. A user can either take or pick a video and then upload it. However, I wanted to compress the video for storage purposes on firebase storage, and also trim it to only get the first 30 seconds.

    &#xA;

    I am facing a very puzzling problem. I am able to compress the video, but with the resultant file, FFmpeg fails to trim it and I get endless logs which result in me having to stop the app and re-run. Alternatively, I am able to trim the video, but with the resultant file, I am unable to compress it getting the error :  Failed to open file &#x27;/data/user/0/live.roots.roots/app_flutter/TRIMMED.mp4&#x27;. (No such file or directory) PlatformException(error, java.io.IOException: Failed to instantiate extractor., null, java.lang.RuntimeException: java.io.IOException: Failed to instantiate extractor.

    &#xA;

    This is my code below :

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    //! function that controls file compression and trimming&#xA;static Future<file> compressFile(File file) async {&#xA;    print(&#x27;[COMPRESSING FILE]&#x27;);&#xA;&#xA;    String mimeStr = lookupMimeType(file.path);&#xA;    var fileType = mimeStr.split(&#x27;/&#x27;);&#xA;&#xA;    if (fileType.contains("image")) {&#xA;      print(&#x27;[COMPRESSING FILE] - file is image&#x27;);&#xA;      String tempPath = (await getTemporaryDirectory()).path;&#xA;      String targetPath = &#x27;$tempPath/${DateTime.now().toIso8601String()}.jpg&#x27;;&#xA;      return await compressImageAndGetFile(file, targetPath);&#xA;    } else {&#xA;      print(&#x27;[COMPRESSING FILE] - file is video&#x27;);&#xA;&#xA;      final compressedVideoFile = await compressVideoAndGetFile(file);&#xA;      print(&#x27;[VIDEO FILE COMPRESSED]&#x27;);&#xA;      return await trimVideoGetFile(compressedVideoFile);&#xA;    }&#xA;  }&#xA;  &#xA;  &#xA;//! function to compress video&#xA;static Future<file> compressVideoAndGetFile(File file) async {&#xA;    print(&#x27;[COMPRESSING VIDEO]&#x27;);&#xA;&#xA;    var result = await VideoCompress.compressVideo(&#xA;      file.absolute.path,&#xA;      quality: VideoQuality.DefaultQuality,&#xA;      deleteOrigin: true,&#xA;    );&#xA;&#xA;    print(&#x27;[COMPRESSED VIDEO TO]: ${result.file.path}&#x27;);&#xA;&#xA;    return result.file;&#xA;  }&#xA;  &#xA;//! function to trim video&#xA;static Future<file> trimVideoGetFile(File file) async {&#xA;    print(&#x27;[TRIMMING VIDEO]&#x27;);&#xA;&#xA;    Directory appDocumentDir = await getApplicationDocumentsDirectory();&#xA;    String rawDocumentPath = appDocumentDir.path;&#xA;    String outputPath = rawDocumentPath &#x2B; "/TRIMMED.mp4";&#xA;&#xA;    final newFile = File(outputPath);&#xA;&#xA;    if (await newFile.exists()) {&#xA;      await newFile.delete();&#xA;    }&#xA;&#xA;    _flutterFFmpeg&#xA;        .execute(&#xA;            "-ss 00:00:00 -i ${file.path} -to 00:00:30 -c copy $outputPath")&#xA;        .then((rt) async {&#xA;      print(&#x27;[TRIMMED VIDEO RESULT] : $rt&#x27;);&#xA;      if (rt == -1) {&#xA;        throw Exception("Something went wrong when trimming the video");&#xA;      }&#xA;    });&#xA;&#xA;    return File(outputPath);&#xA;  }</file></file></file>

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

    Thank you in advance

    &#xA;