Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (70)

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

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (7879)

  • LiveStream My Desktop RTSP with FFMpegConverter.ConvertLiveMedia

    27 octobre 2023, par Luiz

    I'm putting together an application to stream from my desktop to an RTSP server. I used FFMPEG passing the following arguments :

    


    ffmpeg -f gdigrab -rtbufsize 100M -framerate 30 -probesize 10M -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 25 -f rtsp -rtsp_transport tcp rtsp://1.1.1.1:8554/player/1ef8d9a5-b0b3-4dab-93a0-ac2bdef2f8aa/index.m3u8


    


    it worked perfectly, but I need to use FFMPEG within my application and not externally (via process). I looked and found a wrapper for .Net that apparently works very well, but I couldn't make it work with the arguments I used directly in FFMPEG.
The code I am using is the following :

    


     Dim outPath As String = "rtsp://1.1.1.1:8554/player/1ef8d9a5-b0b3-4dab-93a0-ac2bdef2f8aa"
 Dim inPath = "desktop"
 Dim videoConv = New FFMpegConverter()
 Dim ffMpegTask = videoConv.ConvertLiveMedia(inPath, Nothing, outPath, Format.flv, New ConvertSettings() With {
 .VideoFrameSize = "320x200",
 .CustomOutputArgs = "-f gdigrab -rtbufsize 100M -framerate 30 -probesize 10M -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 25 -f rtsp -rtsp_transport tcp rtsp://1.1.1.1:8554/player/1ef8d9a5-b0b3-4dab-93a0-ac2bdef2f8aa/index.m3u8",
 .VideoFrameRate = 30,
 .MaxDuration = 5
 })
 ffMpegTask.Start()


    


    However, it doesn't work, it says that in Input, it must be a stream and that Desktop would not be valid.
Would anyone know how I can convert my argument line so that I can use it in the Video Converter for .NET FFMpeg C# wrapper ????

    


  • How can I capture and record only specific part of the desktop using ffmpeg ?

    23 juillet 2018, par Benzi Avrumi

    This is how I’m using now to record the desktop.

    Using ffmpeg.exe : ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4

    Or using csharp :

    using System;  
       using System.Collections.Generic;  
       using System.Linq;  
       using System.Text;  
       using System.Threading.Tasks;  
       using System.IO;  
       using System.Diagnostics;  

       namespace Ffmpeg_App  
       {  
           class Ffmpeg  
           {  
               Process process;  

               public void Start(string FileName, int Framerate)  
               {  
                   process = new System.Diagnostics.Process();  
                   process.StartInfo.FileName = @"D:\ffmpegx86\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  
                   process.EnableRaisingEvents = false;  
                   process.StartInfo.WorkingDirectory = @"D:\ffmpegx86"; // The output directory  
                   process.StartInfo.Arguments = @"-f gdigrab -framerate " + Framerate + " -i desktop -preset ultrafast -                                                                     pix_fmt yuv420p " + FileName;  
                   process.Start();  
                   process.StartInfo.UseShellExecute = false;  
                   process.StartInfo.CreateNoWindow = false;  
                   Close();  
               }  

               public void Close()  
               {  
                   process.Close();  
               }  
           }  
       }  

    And using it like this for example :

    Ffmpeg fpeg = new Ffmpeg();


       private void Start_Click(object sender, EventArgs e)  
               {  
                   fpeg.Start("test.mp4", 24);  
               }  


       private void Stop_Click(object sender, EventArgs e)  
               {  
                   fpeg.Close();  
               }

    This will record the entire desktop window to a video file.
    But how can I record a specific rectangle area in the desktop ? For example to record only the right bottom corner rectangle size 10x10.

    So when I will play the video file I will see full screen video but only of the right bottom corner of the desktop.

  • Directly download the output file to client desktop

    11 novembre 2020, par jsdbt

    I am processing a video file using ffmpeg, in AWS lambda. My file size is 1gb. I don't want to store the processed file in /tmp folder (or efs).

    


    Is there a way I can directly download the output file to the user's desktop, from AWS lambda ?