Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (68)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (6092)

  • Trouble using ffmpeg in c# how to correctly format string to upscale videos ?

    30 décembre 2020, par user14527374

    So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it.

    


    I think I must have a string format issue :

    


    private void HD_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == null)
            {
                MessageBox.Show("You've not selected your video file yet. Please do so before continuing, cheers.");

            }
            else
            {
             
                    var originFilePath = textBox1.Text;
                    string name = Path.GetFileName(originFilePath);
                    byte[] bytes = null;
                    using (FileStream fileStream = new FileStream(originFilePath, FileMode.Open, FileAccess.Read))
                    {
                        using (MemoryStream ms = new MemoryStream())
                        {
                            fileStream.CopyTo(ms);
                            bytes = ms.ToArray();
                        }

                        var localStoragePath = Path.Combine(Path.GetTempPath(), name);
                        var directoryPath = Path.GetDirectoryName(localStoragePath);
                        Directory.CreateDirectory(directoryPath);
                        File.WriteAllBytes(localStoragePath, bytes);
                        Console.WriteLine($"File copy successful: {File.Exists(localStoragePath)}");
                        var readBack = File.ReadAllBytes(localStoragePath);
                        Console.WriteLine($"Read file Back: {readBack.Length}, {localStoragePath}");
                    var resizedFolderPath = @"C:\upscaledvideohere";
                        Directory.CreateDirectory(resizedFolderPath);
                        var resizedFiePath = Path.Combine(resizedFolderPath, Path.GetFileName(localStoragePath));

                        var psi = new ProcessStartInfo();
                        psi.FileName = @"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\binffmpeg.exe";
                        psi.Arguments = $"-i \"{localStoragePath}\" -vf scale=1080 \"{resizedFiePath}\"";
                        psi.RedirectStandardOutput = false;
                        psi.RedirectStandardError = false;
                        psi.UseShellExecute = true;
                        Console.WriteLine($"Args: {psi.Arguments}");

                        try
                        {
                            using (Process exeProcess = Process.Start(psi))
                            {
                                Console.WriteLine($"process started with processId: {exeProcess.Id}");
                                exeProcess.WaitForExit();
                                Console.WriteLine($"Exit Code: {exeProcess.ExitCode}");
                            }
                        }
                        catch (Exception ex)
                        {
                            Console.WriteLine(ex.StackTrace.ToString());
                            Console.WriteLine(ex.Message.ToString());
                            return;
                        }
                        Console.WriteLine($"process completed");
                        Console.WriteLine($"Temp Out Exists: {File.Exists(resizedFiePath)}");
                    }

                    Console.ReadLine();
                }
            }
        
    


    


    I am wondering where the string format error could be ? Thank you.

    


  • avformat/aaxdec : Check string before strcmp()

    23 octobre 2020, par Michael Niedermayer
    avformat/aaxdec : Check string before strcmp()
    

    Fixes : NULL ptr dereference
    Fixes : 26508/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5694725249826816

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/aaxdec.c
  • Revert "avutil/timecode : fix sscanf format string with garbage at the end"

    16 janvier 2021, par Marton Balint
    Revert "avutil/timecode : fix sscanf format string with garbage at the end"
    

    This reverts commit 6696a07ac62bfec49dd488510a719367918b9f7a.

    It is wrong to restrict timecodes to always contain leading zeros or for hours
    or frames to be 2 chars only.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavutil/timecode.c