Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (54)

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

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9290)

  • C# process FFMPEG output from standard out (pipe) [duplicate]

    30 janvier 2018, par Alexander Streckov

    This question already has an answer here :

    I want to extract the current image from the FFMPEG standard output and show it on a C# form. The stream source itself is a h264 raw data which converted into image and piped to the standard output. Here is my code, but I have no idea how to process the output (maybe MemoryStream) :

    public Process ffproc = new Process();
    private void xxxFFplay()
    {
       ffproc.StartInfo.FileName = "ffmpeg.exe";
       ffproc.StartInfo.Arguments = "-y -i udp://127.0.0.1:8888/ -q:v 1 -huffman optimal -update 1 -f mjpeg -";

       ffproc.StartInfo.CreateNoWindow = true;
       ffproc.StartInfo.RedirectStandardOutput = true;
       ffproc.StartInfo.UseShellExecute = false;

       ffproc.EnableRaisingEvents = true;
       ffproc.OutputDataReceived += (o, e) => Debug.WriteLine(e.Data ?? "NULL", "ffplay");
       fproc.ErrorDataReceived += (o, e) => Debug.WriteLine(e.Data ?? "NULL", "ffplay");
       ffproc.Exited += (o, e) => Debug.WriteLine("Exited", "ffplay");
       ffproc.Start();

       worker = new BackgroundWorker();
       worker.DoWork += worker_DoWork;
       worker.WorkerReportsProgress = true;
       worker.ProgressChanged += worker_ProgressChanged;
       worker.RunWorkerAsync();
    }

    public void worker_DoWork(object sender, DoWorkEventArgs e)
    {
       try
       {
           var internalWorker = sender as BackgroundWorker;
           Process p = e.Argument as Process;
           buffer = new MemoryStream();
           bufferWriter = new BinaryWriter(buffer);
           using (var reader = new BinaryReader(p.StandardOutput.BaseStream))
           {
               while (true)
               {
                   bufferWriter.Write(1);
                   var img = (Bitmap)Image.FromStream(buffer);
                   pictureBox1.Image = img;
                   //get the jpg image
               }
            }
        }
        catch (Exception ex)
        {
              // Log the error, continue processing the live stream
        }
    }

    Any help would be appreciated !

  • lavu : use address-of operator checking clock_gettime

    8 décembre 2020, par Marvin Scholz
    lavu : use address-of operator checking clock_gettime
    

    When targeting a recent enough macOS/iOS version that has clock_gettime
    it won't be a weak symbol, in which case clang warns for this check
    as it's always true :

    warning : address of function 'clock_gettime' will always
    evaluate to 'true'

    This warning is silenced by using the address-of operator to make
    the intent explicit.

    • [DH] libavutil/time.c
  • CreateProcess fails when dshow is used in commandline

    3 juillet 2019, par ark1974

    Trying to launch ffmpeg using CreateProcess.

    Issues :

    1) Can’t use dshow in the commandline.

    2) RTMP streaming with the STDIN piped don’t show the stream.

    Questions :

    1) What are the ceveats in the commandline pertaining to CreateProcess api ?

    2) What’s is the way round ? How can the issue be fixed ?

    This code works :

    BOOL bSuccess = CreateProcess(NULL,
       L"ffmpeg.exe -y -loop 1 -i kites.jpg  out.mp4",        
       NULL,  
       NULL,
       TRUE,
       CREATE_NEW_CONSOLE,
       NULL,
       NULL,
       &siStartInfo,
       &piProcInfo);

    CreateProcess fails when dshow is used. However it works as command line in console.

    BOOL bSuccess = CreateProcess(NULL,
       L"ffmpeg.exe -y -loop 1 -i kites.jpg  -f dshow  -i audio=\"Stereo Mix(Realtek High Definition Audio)\"  out.mp4",
       NULL,
       NULL,
       TRUE,
       CREATE_NEW_CONSOLE,
       NULL,
       NULL,
       &siStartInfo,
       &piProcInfo);

    Edited : ( with absolute path, still no luck)

    std::wstring cmdArgslistSetChannel = L"ffmpeg.exe -y -loop 1 -i c:\test\kites.jpg  -f dshow  -i audio=\"Stereo Mix(Realtek High Definition Audio)\"  out.mp4";
    bSuccess = CreateProcess(NULL,
           &cmdArgslistSetChannel[0],
           NULL,          
           NULL,          
           TRUE,          
           CREATE_NEW_CONSOLE,            
           NULL,          
           NULL,          
           &siStartInfo,
           &piProcInfo);