Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (82)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

  • How to make ffmpeg to throw exception on try/catch for working directory and for arguments ?

    30 juin 2022, par Sharo SA

    If for example i'm setting the FileName(outputDirectory) to null it will throw exception.

    


    The class when i'm using process of the ffmpeg.exe :

    


    public void Start()
        {
            process = new Process();
            process.StartInfo.FileName = outputDirectory; // Change the directory where ffmpeg.exe is.  
            process.EnableRaisingEvents = false;
            process.StartInfo.WorkingDirectory = workingDirectory; // The output directory  
            process.StartInfo.Arguments = arguments;
            process.StartInfo.UseShellExecute = false;
            process.StartInfo.RedirectStandardInput = true; //Redirect stdin
            process.StartInfo.CreateNoWindow = true;
            process.Start();

            errorMessage = false;
            startRecord = true;
        }


    


    but if i'm setting the WorkingDirectory to null or entering some not valid Arguments like "sadasdasd" it will not throw exception not on the WorkingDirectory and not on the Arguments.

    


    In Form1 :

    


    private void recordStripMenuItem_Click(object sender, EventArgs e)
        {
            recordToggle = !recordToggle;

            if (recordToggle)
            {
                try
                {
                    record.workingDirectory = settingsForm.workingDirectory;
                    record.outputDirectory = settingsForm.outputDirectory;
                    record.arguments = settingsForm.arguments;
                    record.Start();
                }
                catch(Exception ex)
                {
                    recordStripMenuItem.Text = "Record";
                    Icon = iconGreen;
                    TextInfo("Waiting");
                    recordToggle = false;
                    MessageBox.Show("Arguments are not valid : " + ex.Message);
                    
                }
                if (!FFmpeg_Capture.errorMessage)
                {
                    settingsForm.Close();
                    recordStripMenuItem.Text = "Stop";
                    Icon = iconRed;
                    TextInfo("Recording");
                }
            }
            else
            {
                recordStripMenuItem.Text = "Record";
                Icon = iconGreen;
                TextInfo("Waiting");
                record.Stop();
            }
        }


    


    The variable record is instance of the FFmpeg_Capture class with the process of the ffmpeg.
It's throwing exception only on the FileName(outputDirectory).

    


  • ffmpeg assert - throw exception instead of abort

    21 novembre 2011, par ronag

    I'm using ffmpeg in my C++ application.

    When trying to play certain files an assertion inside of ffmpeg fails, which causes it to call abort() which terminates my application. I do not want this behavior, rather I want to get the chance to recover, preferably through an exception.

    Anyone got any ideas as to how I can get around the problem with ffmpeg/assert potentially terminating my application ?

    EDIT :

    The only way I can think of right now is to change the ffmpeg assert macro so that it causes an access violation which I can catch through SEH exceptions. Ugly and potentially bad solution ?

  • Don’t throw an error if the canvasToBlob function is not available.

    6 mars 2012, par Sebastian Tschan

    m js/jquery.fileupload-ip.js Don’t throw an error if the canvasToBlob function is not available.