Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (67)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5807)

  • Install Piwik with 1-click using Installatron

    28 mars 2013, par Piwik team — Community

    We are proud to announce that Piwik Analytics is now available as one click install from Installatron !

    Installatron is a one-click web application installer that enables Piwik and other top web applications to be instantly installed and effortlessly managed. Get Piwik up and running on your website in seconds and discover just how easy Installatron makes it to manage web applications. Piwik installations managed by Installatron can updated (manually or automated), cloned, backed up and restored, edited to change installation parameters, and more.

    Installatron Piwik 1

    Many web hosting providers provide Installatron through their web hosting control panel. If Installatron is not available from your provider, you can use Installatron directly from Installatron.com.

    To install Piwik through your web hosting provider’s control panel (if available) :

    • Login to your web host’s control panel,
    • navigate to “Installatron”, click “Piwik”, and choose the “Install this application” option.
    • Change any of the install prompts to customize the install. For
      example, you can choose a different default language for Piwik.
    • Click the “Install” button to begin the installation process. You
      will be redirect to a progress page where you can watch as Piwik is
      installed within a few seconds to your website.

    Installatron Piwik 2

    You can also install Piwik directly from Installatron.com, by navigating to Piwik @Installatron and choose the “Install this application” option. After filling in your FTP and Mysql information, you will be redirect to a progress page where you can watch as Piwik is installed within a few seconds to your website. After the installation, you may wish to change your FTP, Mysql password.

    If you experience any problems or want to share your experience using Piwik and Installatron together, email the Installatron team at : feedback (at) installatron.com

  • How to read data from subprocess pipe ffmpeg without block in line when rtsp is disconnected

    22 août 2024, par Jester48

    I have some problems with the ffmpeg subprocess in python where I open an RTSP stream.
One of them is the long time of reading a frame from the pipe, I noticed that reading one frame takes about 250ms -> most of this time is the select.select() line which can take just that long. This makes opening the stream above 4FPS problematic. When I do not use the select.select function, the reading speed is normal, but when the connection to RTSP streams is lost, the program gets stuck in the self.pipe.stdout.read() function and does not exit from it. Is it possible to protect yourself in case of missing data in pipe.stdout.read() without losing frame reading speed as in the case of select.select() ?

    


    class RTSPReceiver(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
        self.ffmpeg_cmd = ['ffmpeg','-loglevel','quiet','-rtsp_transport' ,'tcp','-nostdin','-i',f'rtsp://{config("LOGIN")}:{config("PASS")}@{config("HOST")}/stream=0','-fflags','nobuffer','-flags','low_delay','-map','0:0','-r',f'{config("RTSP_FPS")}','-f','rawvideo','-pix_fmt','bgr24','-']
        self.img_w = 2688
        self.img_h = 1520
        self.image = None
        self.pipe = subprocess.Popen(self.ffmpeg_cmd, stdout=subprocess.PIPE)

    def reconnect(self) -> None:
        if self.pipe:
            self.pipe.terminate()
            self.pipe.kill()
            self.pipe.wait()

    def run(self) -> None:
        self.connect()
        while True:
            try:
                ready, _, _ = select.select([self.pipe.stdout], [], [], 15.0)
                if ready:
                    raw_image = self.pipe.stdout.read(self.img_w*self.img_h*3)
                    if raw_image:
                        with self.lock:
                            self.image = np.frombuffer(raw_image, dtype=np.uint8).reshape(self.img_h, self.img_w, 3)
                else:
                    self.reconnect()
            except Exception as e:
                self.connect()


    


  • how to use ffmpeg to get thumbnails from a video

    23 mai 2017, par okendo

    I have been trying over weeks now to figure out how to use ffmpeg to get thumbnail from a video while upload that video in php.
    This is my code and I don’t where I went wrong please help.

    <?php
    if (logged_in() === true) {
       if (isset($_POST['up'], $_FILES['file'])) {
           $file_name = $_FILES['file']['name'];
           $file_type = explode('.', $file_name);
           $file_type = strtolower(end($file_type));
           $random    = rand();
           $file_tmp  = $_FILES['file']['tmp_name'];

       $file_dir = "jobalertme/includes/video_uploads/$random.$file_type";
       if ($file_type == 'mp4' || $file_type == 'avi' || $file_type == 'wmv' || $file_type == 'mov' || $file_type == 'flv') {
           if (move_uploaded_file($file_tmp, "$file_dir")) {
               $ffmpeg    = "C:\\ffmpeg\\bin\\ffmpeg";
               $img_name  = "1.jpg";
               $img_size  = "120x90";
               $getimgsec = 5;
               $cmd       = "$ffmpeg -i $file_tmp -an -ss $getimgsec -s $img_size  www/jobalertme/includes/img_thumnail/$img_name <br />";
               if (shell_exec($cmd)) {
                   echo "ok";
               } else {
                   echo "not";
               }


               $updat = "UPDATE registration SET video='$file_dir' WHERE uname='$username'";
               $qry   = mysqli_query($con, $updat);
               if ($qry) {
                   echo "<code class="echappe-js">&lt;script&gt; alert('your file has been successfully uploaded ')&lt;/script&gt;

    " ;
    echo "&lt;script&gt;window.open('upload_vid.php','_self')&lt;/script&gt;" ;
    exit() ;
    else
    echo "&lt;script&gt; alert('we ran into some problems')&lt;/script&gt;" ;
    echo "&lt;script&gt;window.open('upload_vid.php','_self')&lt;/script&gt;" ;
    exit() ;

    else
    echo "&lt;script&gt; alert('we ran into some problems')&lt;/script&gt;" ;
    echo "&lt;script&gt;window.open('upload_vid.php','_self')&lt;/script&gt;" ;
    exit() ;

    else
    echo "&lt;script&gt;alert('please this file extension is not allowed, it must be an mp4 file format')&lt;/script&gt;" ;
    echo "&lt;script&gt;window.open('upload_vid.php','_self')&lt;/script&gt;" ;
    exit() ;


    else
    echo "

    &lt;script&gt;alert('please you need login before you can upload resume.')&lt;/scrpt&gt;&quot;;<br />
       echo &quot;&lt;script&gt;window.open('upload_vid.php','_self')&lt;/script&gt;

    " ;
    exit() ;

     ?>

    I have search on google youtube and others but still have not gotten the solution.