Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (29)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • 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

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

  • Why doesnt this method redirect my output from .exe [ffmpeg] ?

    4 octobre 2013, par Exitos

    I have the method :

    public static string StartProcess(string exePathArg, string argumentsArg, int timeToWaitForProcessToExit)
       {
           string retMessage = "";

           using (Process p = new Process())
           {
               p.StartInfo.FileName = exePathArg;
               p.StartInfo.RedirectStandardOutput = true;
               p.StartInfo.Arguments = argumentsArg;
               p.StartInfo.UseShellExecute = false;



               try
               {
                   p.Start();
                   StreamReader myOutput = p.StandardOutput;

                   retMessage = "STANDARD OUTPUT: " +  myOutput.ReadToEnd();

                   p.WaitForExit(timeToWaitForProcessToExit);
               }
               catch (Exception ex)
               {
                   retMessage = "EXCEPTION THROWN: " + ex.ToString();

               }
               finally
               {
                   try
                   {
                       p.Kill();
                   }
                   catch { }
               }
           }

           return retMessage;
       }

    But it doesnt redirect my output to retMessage. Anyone any ideas ? I tested the arguments in a bat file and output is definitely output.

    Cheers,
    Pete

  • How to re-run ffmpeg rtsp to rtmp conversion process if the process gives error ?

    25 janvier 2023, par Samsul Islam

    currently, I am working on a project where I need to run rtsp to rtmp conversion using ffmpeg. but some how I am getting error after several minutes running the process and the process getting exited.
I want to run the process even if it gets error. I am using this command ffmpeg -re -rtsp_transport tcp -i rtsp://my-link -c:v copy -c:a aac -ar 44100 -ac 1 -f flv -flvflags no_duration_filesize rtmp://my-url

    


    I tried this bash script.

    


    #!/bin/bash
cmd="ffmpeg -re -rtsp_transport tcp -i $1 -c:v copy -c:a aac -ar 44100 -ac 1 -f flv -flvflags no_duration_filesize $2"
while true; do $cmd && break; done


    


    using this script I am able to run the process again if I get any error. but the problem is it doesn't stop even if I run kill -9 my-pid. it just re-runs the process.

    


  • Convert video MP4 audio to MP3 using C#

    13 mars, par Tom Lee

    I have some videos in MP4 format and I'm trying to extract the audio from them.

    



    My code is :

    



    public static void Converter(string toConvert)
{
    toConvert = VideoFile + ".mp4";

    var join = VideoFile.Split("-").ToList();

    VideoFile = string.Format("{0} - {1}", join[0], join[1]);

    var outputFile = VideoFile + ".mp3";
    var mp3Out = "";

    var ffmpegProcess = new Process
    {
        StartInfo =
        {
            UseShellExecute = false,
            RedirectStandardInput = true,
            RedirectStandardOutput = true,
            RedirectStandardError = true,
            CreateNoWindow = true,
            FileName = Directory,
            Arguments = " -i " + toConvert + " -vn -f mp3 -ab 320k output " + outputFile
        }
    };

    ffmpegProcess.Start();
    ffmpegProcess.StandardOutput.ReadToEnd();
    mp3Out = ffmpegProcess.StandardError.ReadToEnd();
    ffmpegProcess.WaitForExit();

    if (!ffmpegProcess.HasExited)
    {
        ffmpegProcess.Kill();
    }
    Console.WriteLine(mp3Out);
}


    



    However, I get this error message :

    



    


    System.ComponentModel.Win32Exception : 'Access is denied'

    


    



    Any Ideas ?