Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (37)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (6291)

  • ffmpeg horizonal flip makes video shorter

    26 mai 2020, par Adam Gosztolai

    I am trying to use the following command to flip my video horizontally

    



    ffmpeg -i video.mp4 -vf hflip -c:a copy video_flip.mp4


    



    However, I discovered that it makes the video shorter, which I did not intend.

    



    I originally created the video using FFMpegWriter in Python, the code looks something like this

    



    metadata = dict(title='video', artist='me', comment='Watch this!')
writer = FFMpegWriter(fps=25, metadata=metadata)
with writer.saving(fig, "video.mp4", 100):
    for t in range(100):
        ax.cla()        
        ax.plot(x,y)

        writer.grab_frame()


    



    What am I doing wrong ?

    


  • Able to get HLS to play on VLC viewer but not on browser

    6 mai 2022, par Tamothee

    so i have been trying to get ipcamera to connect to a react app and show live video. i found and followed this tutorial https://www.youtube.com/watch?v=-a5MAaEaizU&t=185s .

    


    i am able to get vlc viewer to run the hls server link and display what the camera sees. however when i plug the link into my code or a browser hls viewer like https://hls-js.netlify.app/demo/ , the m3u8 link does not play. there is no error and when i inspect the network, i do receive the m3u8 and .ts links.
this is what i see on the network portion

    


    ffmpeg -i rtsp://admin:Password1234@192.168.1.64:554/Streaming/Channels/101 -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_list_size 3 -vcodec copy -y ./index.m3u8


    


    this is the ffmpeg command that i ran to convert my rtsp output to hls.

    


    var http = require('http');
var fs = require('fs');

const port = 1234

http.createServer(function (request, response) {
console.log('request starting...');

var filePath = '.' + request.url;

fs.readFile(filePath, function(error, content) {
    response.writeHead(200, { 'Access-Control-Allow-Origin': '*' });
    if (error) {
        if(error.code == 'ENOENT'){
            fs.readFile('./404.html', function(error, content) {
                response.end(content, 'utf-8');
            });
        }
        else {
            response.writeHead(500);
            response.end('Sorry, check with the site admin for error: '+error.code+' ..\n');
            response.end(); 
        }
    }
    else {
        response.end(content, 'utf-8');
    }
});

}).listen(port);
console.log(`Server running at http://127.0.0.1:${port}/`);


    


    this is the code for the hls server that receives the request and sends the user the m3u8 and ts files.

    


     


    


    and i'm trying to play the link like this using react-hls-player

    


    hope this is not a stupid question as i'm a beginner and hope that someone could help me with this problem.

    


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