Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (15)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4638)

  • Can FFmpeg perform audio phase subtraction ? [closed]

    22 avril 2023, par Calarpo

    I can do audio phase subtraction in Adobe Audition like so : https://www.youtube.com/watch?v=vNvJKBg3yds

    


    How can I do this with FFmpeg ? Is it possible ?

    


    I've googled for audio phase subtraction, and looked at https://ffmpeg.org/ffmpeg-filters.html, nothing seems to work for me.

    


    I want to do phase subtraction in batches and support for stereo audio.

    


  • Can't obtain thumbnail with ffmpeg codeigniter

    2 avril 2015, par DMBorges

    I have used the following tutorial ( https://www.youtube.com/watch?v=qT4hN5o57hI) to try to obtain a thumbnail from a uploaded video using codeigniter as a framework. As I am new to all this I don’t understand if at the end of supposedly uploading my video the code failed to create a thumbnail, if my created thumbnail is somewhere lost in my computer of by some settings reasons ffmpeg is not working.

    Where does my $imageFile goes to ?

    Here is my code.

    MY VIEW

    <div>

               &lt;?php echo form_open_multipart('gallery/save/'); ?>
                   <table class="table">
                       <tr>
                           <td>Video</td>
                           <td>&lt;?php echo form_upload('pic'); ?></td>
                       </tr>
                       <tr>
                           <td>Descrição</td>
                           <td>&lt;?php echo form_input('description'); ?></td>
                       </tr>
                       <tr>
                           <td></td>
                           <td>&lt;?php echo form_submit('upload', 'Guardar', 'class="btn btn-primary"'); ?></td>
                       </tr>      
                   </table>

       </div>

    MY CONTROLLER

    &lt;?php
    class Gallery extends CI_Controller{
       public function index(){
           //Load View
           $data['main_content'] = 'gallery';
           $this->load->view('layouts/main', $data);
       }

       public function save()
       {
           $url = $this->do_upload();
           $ffmpeg = "C:\\xampp\\htdocs\\ffmpeg\\bin";
           $videoFile = $_FILES["pic"]["tmp_name"];
           $imageFile = "1.jpg";
           $size = "120x90";
           $getFromSecond = 5;
           $cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile ";
           echo $cmd;
           if(!shell_exec($cmd)){
               echo 'thumbnail created!';
           }
           else {
               echo 'ERROR!';
           }

           /* $config = array(
                           'source_image' => $url,
                           'new_image' =>"./assets/images/gallery/thumbs/",
                           'maintain_ration' => true,
                           'width' => 150,
                           'height'=> 100
                           );
                   $this -> load -> library('image_lib', $config);
                   $this ->image_lib-> resize();
                   $description = $_POST["description"];
                   $user = $this->session->userdata('user_id');
                   $this->Gallery_model->save($description, $url, $user);
                   redirect('gallery'); */
       }
       private function do_upload()
       {
           $type = explode('.', $_FILES["pic"]["name"]);
           $type = strtolower($type[count($type)-1]);
           $id = uniqid(rand());
           $url = "./assets/images/gallery/".$id.'.'.$type;
           if(in_array($type, array("wmv", "mp4", "avi", "flv")))
               if(is_uploaded_file($_FILES["pic"]["tmp_name"]))
                   if(move_uploaded_file($_FILES["pic"]["tmp_name"],$url))
                       return $url;
           return "";
       }
    }
  • FFMPEG reports different (wrong) video resolution compared to how it actually plays

    30 mars 2015, par Emiliano

    Quick question, i have a movie, which was cut and rendered with Sony Vegas from its original format to a .wmv file. Here comes the tricky part, movie when played, either with VLC or WMP, has a resolution of 656x480 ... BUT when i run a ffmpeg -i on it, it says it has a resolution of 600x480 ....

    I took the time of actually capturing a frame and croping it with photoshop and its 656 and not 600 like ffmpeg its reporting, why would this could be happening ? How could i fix the headers resolution ? Would that have any impact on video re-rendering ? As i said, VLC and WMP seems not to care about the incorrect headers and are playing it right, BUT, jwplayer seems to be using the header information, which i don’t blame him, its correct to do that, but why the video headers could be wrong ?

    ffmpeg -i trailer.wmv
    Input #0, asf, from ’trailer.wmv’ :
    Duration : 00:01:04.93, start : 3.000000, bitrate : 2144 kb/s
    Stream #0.0 : Audio : wmav2, 44100 Hz, mono, 32 kb/s
    Stream #0.1 : Video : wmv3, yuv420p, 600x480 [PAR 59:54 DAR 295:216], 2065 kb/
    s, 25.00 tb(r)

    And yeah, the PAR/DAR parameters are also wrong, but honestly, i don’t understand that technical shit, usually watch video and make sure it look good, any feedback would be appreciated :P

    Is there a way to change the container information with ffmpeg so applications that actually do use the container information don’t render video incorrectly ?