Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (63)

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

  • Load processed video instead of original video - Rails, Dragonfly

    1er février 2016, par Michael B

    In my Rails 4-Project, I am using Dragonfly to upload images and videos.
    For image-processing I use imagemagick, for videoprocessing I use ffmpeg.

    Videos are uploaded and stored in the folder uploads/videos. After processing, they are stored in public/ffmpeg_videos/

    My question is : How can I use the processed-video instead of the uploaded video ?

    e.g. I use this code in the view, to display a video :

    <video src="&lt;%=@video.video.url%>"></video>

    This successfully loads the original video from the upload-path. But what do I have to change, to load the video from the ffmpeg-path ?

    initializers/dragonfly.rb

    require 'dragonfly'

    # Configure
    Dragonfly.app(:images).configure do
     plugin :imagemagick
     protect_from_dos_attacks false
     secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
     url_format '/media/:job/:name'

     datastore :file,
               root_path: Rails.root.join('uploads/images/'),
               server_root: Rails.root.join('uploads')
    end

    Dragonfly.app(:videos).configure do
     secret 'd045734b043b4383a246c5c8daf2d3e31217dc8b030f21861e4fd16c4b72d382'
     url_format "/video/:job/:name"

     datastore :file,
               root_path: Rails.root.join('uploads/videos/'),
               server_root: Rails.root.join('uploads')
    end

    # Logger
    Dragonfly.logger = Rails.logger

    # Mount as middleware
    Rails.application.middleware.use Dragonfly::Middleware, :images
    Rails.application.middleware.use Dragonfly::Middleware, :videos

    # Add model functionality
    if defined?(ActiveRecord::Base)
     ActiveRecord::Base.extend Dragonfly::Model
     ActiveRecord::Base.extend Dragonfly::Model::Validations
    end
  • upload video with display and upon submit that video by post method to PHP file where FFMPEG command execute

    30 avril 2019, par Asfand Yar

    Main Task
    Video -> Audio (Wav or mp3)
    Procedure :
    User select video and its display and upload in video player thats fine but when i try to upload via the form tag and post method to php file (Bash.php) where that video have to be converted into the audio (mp3 or wav) i am using FFMPEG library (THat command work perfectly into the Command line) I am trying to do it in php (exec) but didn’t find fruitful results

    I try FFMPEG command to convert uploaded mp4 video to audio because i need audio to transcription
    HTML CODE

    <video width="500" controls="controls" preload="none">

    </video>



    <div class="container d-flex justify-content-center">
    <input type="file" accept="video/*" />

    </div>

       <code class="echappe-js">&lt;script type=&quot;text/javascript&quot;&gt;<br />
       video_file.onchange = function(){<br />
    <br />
       var files = this.files;<br />
    <br />
       var file = URL.createObjectURL(files[0]); <br />
    <br />
       video_player.src = file; <br />
    <br />
       video_player.load();};  <br />
    <br />
    &lt;/script&gt;

    &lt;?php  
       if(isset($_FILES['video'])){                                                                              
       $errors = array();    
           $file_name = $_FILES['video']['name'];                                                                
           $file_size = $_FILES['video']['size'];                                                                
           $file_tmp = $_FILES['video']['tmp_name'];                                                            
           $file_type = $_FILES['video']['type'];                                                                
           $file_ext = strtolower(end(explode('.',$_FILES['video']['name'])));  


       $expensions = array("mp4","avi");                                                                                                  


           if(in_array($file_ext, $expensions[0])===false){                  
               $errors[]="Extension not allowed, please choose a Mp4 or Avi file video";
           }                                                                                                              
       $convertedFile='fine.mp3';                                              
           if(empty($errors)==true){  
           move_uploaded_file($file_tmp, './'.$file_name);
           exec("ffmpeg -i $file_name -vn fine.mp3");

           }else{                                                                                                
               print_r($errors);                                                                                
           }
       $target = "http://localhost:8888/client/dynamic/recognize";
       sleep(3);

       if($file_ext == "mp4" or $file_ext == "avi"){
           exec("python /path/client2.py fine.mp3 > output.txt 2> output2.txt");

           $output = exec("cat output.txt");   }
       echo $output;
       }
    ?>
  • FFMPEG How to insert short video and audio in longer video in specific time, size and position

    24 novembre 2020, par Milos Dimitrijevic

    FFMPEG How to insert short video (4sec) in longer video in specific time (from 15th to 19th second) and specific size. Long video is 1920x1080px and inserted video should be 1720x820px, positioned in the middle ?

    &#xA;

    file info..&#xA;Duration : 00:00:22.07, start : 0.000000, bitrate : 3982 kb/s&#xA;Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3900 kb/s, 29 fps, 29 tbr, 14848 tbn, 58 tbc (default)&#xA;Metadata :&#xA;handler_name : VideoHandler&#xA;Stream #0:1(und) : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;Metadata :&#xA;handler_name : SoundHandler&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'short.mp4' :&#xA;Metadata :&#xA;major_brand : mp42&#xA;minor_version : 19529854&#xA;compatible_brands : mp42isom&#xA;creation_time : 2020-10-25T11:01:10.000000Z&#xA;Duration : 00:00:03.02, start : 0.000000, bitrate : 14405 kb/s&#xA;Stream #1:0(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 319 kb/s (default)&#xA;Metadata :&#xA;creation_time : 2020-10-25T11:01:10.000000Z&#xA;handler_name : Sound Media Handler&#xA;Stream #1:1(eng) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 14078 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)&#xA;Metadata :&#xA;creation_time : 2020-10-25T11:01:10.000000Z&#xA;handler_name : Video Media Handler&#xA;encoder : AVC Coding

    &#xA;