Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (99)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (12825)

  • FFMPEG interactive Mode help options

    7 février 2018, par Pliny Ida Plisetsky

    While streaming a simple command like below

    ffmpeg -i "Alien.mkv" -f webm tcp://localhost:8080/listen.webm

    if I press ’ ?’ ffmpeg seems to have an interactive mode with the below options

      ?      show this help

      +      increase verbosity

      -      decrease verbosity

      c      Send command to first matching filter supporting it

      C      Send/Queue command to all matching filters

      D      cycle through available debug modes

      h      dump packets/hex press to cycle through the 3 states

      q      quit

      s      Show QP histogram

    I was curious about option ’c’

    Does this mean that I can execute further commands on the running stream ? Say for instance seeking a new position in a running stream ? (I realise you wouldn’t normally do this)

    I don’t really know anything about these and couldn’t find much in the ffmpeg documentation or else where. If I press ’c’ it suggests the syntax I should use is :

    Enter command: <target>|all <time>|-1 <command>[ <argument>]
    </argument></command></time></target>

    but I still don’t really understand how to execute a command. Would someone please give a few examples ? I suspect that this isn’t used much.

  • Failed to capture a avi file using opencv

    30 avril 2017, par Wei

    I am quite new to c++ compilation. I am trying to work on a simple problem using opencv where I read a video file and display it.

    My code looks like :

    #include <opencv></opencv>cv.h>
    #include <opencv></opencv>highgui.h>
    #include "opencv2/opencv.hpp"
    #include <opencv2></opencv2>core/core.hpp>
    #include <opencv2></opencv2>highgui/highgui.hpp>


    #include
    #include

    #include <algorithm>
    #include
    #include
    #include
    #include <fstream>
    #include <iostream>
    #include <vector>
    #include <list>
    #include <string>


    using namespace cv;

    IplImage* image = 0;
    IplImage* prev_image = 0;

    int show = 1;

    int main( int argc, char** argv )
    {
       int frameNum = 0;

       char* video = argv[1];
       VideoCapture capture(video);

       if( !capture.isOpened() ) {
           printf( "Could not initialize capturing..\n" );
           return -1;
       }

       if( show == 1 )
           cvNamedWindow( "Video", 0 );

       while( true ) {
           IplImage* frame = 0;
           int i, j, c;

           // get a new frame
           //frame = cvQueryFrame( capture );
           Mat mat_img;
           capture >> mat_img;
           IplImage frame1 = mat_img.operator IplImage();
           frame = &amp;frame1;
           if( !frame )
               break;

           if( !image ) {
               image =  cvCreateImage( cvSize(frame->width,frame->height), 8, 3 );
               image->origin = frame->origin;
           }

           cvCopy( frame, image, 0 );

           if( show == 1 ) {
               cvShowImage( "Video", image);
               c = cvWaitKey(3);
               if((char)c == 27) break;
           }

           std::cerr &lt;&lt; "The " &lt;&lt; frameNum &lt;&lt; "-th frame" &lt;&lt; std::endl;
           frameNum++;
       }

       if( show == 1 )
           cvDestroyWindow("Video");

       return 0;
    }
    </string></list></vector></iostream></fstream></algorithm>

    Then I compile it like :

    g++ test.cpp -o Video -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall -I. -I/usr/local/ -O3 -DNDEBUG -ggdb -L/usr/local/ -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lavformat -lavdevice -lavutil -lavcodec -lswscale

    Compilation works fine and no errors returned.

    However, when I was running it, I got :

    (Video:5651): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
    Could not initialize capturing..

    Some other information :
    1. I test my opencv and ffmpeg by running simple examples, which work well.
    2. I can stream frames from my camera and display it using opencv.

    Anyone has idea of what causes this ?

    Any idea is appreciated.

  • ffmpeg. I correct that to insert the logo

    12 mai 2012, par user1390921
    private void btnStart_Click(object sender, EventArgs e)
    {
    this.btnStart.Enabled = false;
    this.progressBar1.Value = 0;

    string srcFile = Path.Combine(this.txtSource.Text, this.lstFiles.SelectedItem.ToString());
    MessageBox.Show(srcFile);
    string dstFile = Path.Combine(this.txtOutput.Text,
    Path.GetFileNameWithoutExtension(this.lstFiles.SelectedItem.ToString())) + "." + this.cboOutputFormat.SelectedItem;
    MessageBox.Show(dstFile);
    string imafile = Path.Combine("movie= "+this.openFileDialog1.SafeFileName);
    MessageBox.Show(imafile);


               string videoRateOption = string.Empty;
    if (this.cboVideoRate.SelectedIndex != 0)
    {
    videoRateOption = " -b:v " + this.cboVideoRate.SelectedItem.ToString().Split(&#39; &#39;)[0] + "k ";
    MessageBox.Show(videoRateOption);
    }

    string videoSizeOption = string.Empty;
    if (this.lstVideoSize.SelectedIndex != 0)
    {
    videoSizeOption = " -s " + this.lstVideoSize.SelectedItem.ToString().Split(&#39; &#39;)[0] + " ";
    }


               this.Text = "Converting...";
    ThreadPool.QueueUserWorkItem((object state) =>
    {
    ConvertFile(srcFile, imafile, dstFile, videoRateOption, videoSizeOption);
    });
    }


    string strFFMPEGOut;
    ProcessStartInfo psiProcInfo = new ProcessStartInfo();
    TimeSpan estimatedTime = TimeSpan.MaxValue;

    StreamReader srFFMPEG;

                   string ste = ""movie=watermarklogo.png [wm];[in][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"";
    string strFFMPEGCmd = " -i "" + srcFile + "" -ar 44100 " + videoRateOption + videoSizeOption +"-vf"+ ste + "-y ""
    + dstFile + """;

    psiProcInfo.FileName = Application.StartupPath + ((IntPtr.Size == 8) ? "\x64" : "\x86") + "\ffmpeg.exe";
    psiProcInfo.Arguments = strFFMPEGCmd;
    psiProcInfo.UseShellExecute = false;
                   psiProcInfo.WindowStyle = ProcessWindowStyle.Hidden;
    psiProcInfo.UseShellExecute = false;
    psiProcInfo.RedirectStandardError = true;
    psiProcInfo.ErrorDialog = true;
    psiProcInfo.RedirectStandardOutput = true;
    psiProcInfo.CreateNoWindow = true;

    prcFFMPEG.StartInfo = psiProcInfo;

    prcFFMPEG.Start();

    There is no response that I push the start button.
    There is no response that I push the start button that I tried to fix the code that I
    inserted the logo in the movie with Ffmpeg.
    Is that be okay if I don't choose the path of logo File. and Is there any something wrong that I did.