Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (82)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

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

  • FFMPEG Changes Date of Output Video [closed]

    6 mai 2023, par hello i couldnt think of a goo

    I'd like to make the date of the output video the same as the date of the input video. Is there any command prompt command to do this or a way to put the date in the title of the output video ? Thanks !

    


  • Unable to link FFMpeg libraries in Visual studio 2012

    29 juin 2013, par Pferd

    I have been trying to link the FFMPEG static libraries to Visual studio 2012 in c++ environment. But i get the following error.

    • Error 1 error LNK1104 : cannot open file
      'avcodec.lib' C :\Users\username\Documents\Visual Studio
      2012\Projects\ConsoleApplication5\ConsoleApplication5\LINK ConsoleApplication5

    my lib files were located in C :\Users\username\Documents\Visual Studio 2012\Projects\ConsoleApplication5\ConsoleApplication5\ExtLib\lib

    The compile seems to be fine. The command line is

    • /Yu"stdafx.h" /GS /W3 /Zc:wchar_t
      /I"C :\Users\username\Documents\Visual Studio
      2012\Projects\ConsoleApplication5\ConsoleApplication5\ExtLib\include"
      /Zi /Gm /Od /sdl /Fd"x64\Debug\vc110.pdb" /fp:precise /D "WIN32" /D
      "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /errorReport:prompt
      /WX- /Zc:forScope /RTC1 /Gd /MTd /Fa"x64\Debug\" /EHsc /nologo
      /Fo"x64\Debug\" /Fp"x64\Debug\ConsoleApplication5.pch"

    The main issue seems to be at the linking stage where I have just not been able to get VS2012 to find my ffmpeg .lib files

    The linker command line is below :

    • /OUT :"C :\Users\username\Documents\Visual Studio
      2012\Projects\ConsoleApplication5\x64\Debug\ConsoleApplication5.exe"
      /MANIFEST /NXCOMPAT /PDB :"C :\Users\username\Documents\Visual Studio
      2012\Projects\ConsoleApplication5\x64\Debug\ConsoleApplication5.pdb"
      /DYNAMICBASE "avcodec.lib" "kernel32.lib" "user32.lib" "gdi32.lib"
      "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib"
      "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib"
      /DEBUG /MACHINE:X64 /OPT:NOREF /INCREMENTAL
      /PGD :"C :\Users\username\Documents\Visual Studio
      2012\Projects\ConsoleApplication5\x64\Debug\ConsoleApplication5.pgd"
      /SUBSYSTEM:CONSOLE /MANIFESTUAC :"level='asInvoker' uiAccess='false'"
      /ManifestFile :"x64\Debug\ConsoleApplication5.exe.intermediate.manifest"
      /ERRORREPORT:PROMPT /NOLOGO
      /LIBPATH :"/LIBPATH:C :\Users\username\Documents\Visual Studio
      2012\Projects\ConsoleApplication5\ConsoleApplication5\ExtLib\lib"
      /TLBID:1

    I cant figure out why the linker cant locate my ffmpeg lib files even though they are physically located in the /LIBPATH area - c :...\vs12...\ExtLib\lib

  • my ffmpeg stops streaming after a few seconds

    16 février 2015, par Andrew Simpson

    This is all new to me.

    I am using ffmpeg in my c# desktop app.

    The idea is to use the Process under C# to start ffmpeg on the DOS prompt.

    I then parse each bit of data to ’split’ off my jpegs.

    But after a few seconds the feed just stops.

    This is my code :

    private void button1_Click(object sender, EventArgs e)
       {
           try
           {
               Process process = new Process();
               FileStream baseStream = null;

               string arguments = @" -i rtsp://admin:admin@192.168.0.8:554/video_1 -an -f image2pipe -vf fps=fps=6 -qscale 0 -";
               string file = @"C:\bin\ffmpeg.exe";
               process.StartInfo.FileName = file;
               process.StartInfo.Arguments = arguments;
               process.StartInfo.CreateNoWindow = true;
               process.StartInfo.RedirectStandardError = true;
               process.StartInfo.RedirectStandardOutput = true;
               process.StartInfo.UseShellExecute = false;

               Task.Run(() =>
               {
                   try
                   {
                       process.Start();
                       byte[] buffer = new byte[200000];
                       //var error = process.StandardError.ReadToEnd();
                       //var error = process..ReadToEnd();

                       baseStream = process.StandardOutput.BaseStream as FileStream;
                       bool gotHeader = false;
                       bool imgFound = false;
                       int counter = 0;
                       while (true)
                       {
                           byte bit1 = (byte)baseStream.ReadByte();
                           buffer[counter] = bit1;

                           if (bit1 == 217 && gotHeader)
                           {
                               if (buffer[counter - 1] == 255)
                               {
                                   byte[] jpeg = new byte[counter];
                                   Buffer.BlockCopy(buffer, 0, jpeg, 0, counter);
                                   using (MemoryStream ms = new MemoryStream(jpeg))
                                   {
                                       pictureBox1.Image = Image.FromStream(ms);
                                       ms.Close();
                                   }
                                   imgFound = true;
                               }
                           }
                           else if (bit1 == 216)
                           {
                               if (buffer[counter - 1] == 255)
                               {
                                   gotHeader = true;
                               }
                           }
                           if (imgFound)
                           {
                               counter = 0;
                               buffer = new byte[200000];
                               imgFound = false;
                               gotHeader = false;
                           }
                           else
                           {
                               counter++;
                           }
                       }
                   }
                   catch (Exception ex2)
                   {
                       //log error here
                   }
               });
           }
           catch (Exception ex)
           {
               //log error here
           }
       }

    Like I said it works but then just stops.

    Is there something I should be mindful of ?

    Finally, is there a was to specify the quality of the jpeg ?

    NOTE
    I have already tried this just in the DOS Prompt and that also ’freezes’ after a few seconds.