Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (102)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4778)

  • rstp stream into chunks net c# console application with ffmpeg

    10 juin 2022, par Hasnat Adil

    I developed a c# console application in NET 5 which will get live streams from 5 cameras and create chunks of 5 minutes. Here is my argument of ffmpeg

    


     List<processstartinfo> processes = new List<processstartinfo>();&#xA;        ProcessStartInfo processForChunk = new ProcessStartInfo();&#xA;        processForChunk.CreateNoWindow = false;&#xA;        processForChunk.UseShellExecute = false;&#xA;        processForChunk.FileName = "ffmpeg.exe";&#xA;        string argumentUrl = "-re -threads 0 -thread_queue_size 2048 -rtsp_transport tcp -i \"rtsp://{camUrl}\"   -map 0  -c copy -reset_timestamps 1 -pix_fmt yuv420p -c:v libx264 -preset superfast -profile:v high -bsf:a aac_adtstoasc -vf scale=1280x720 -b:v 900k -r 30 -g 60 -c:a aac -b:a 128k -ac 1 -ar 44100 -bufsize 2500k -f segment  -segment_time 60 -segment_format mp4  \"C:\\Users\\User\\Documents\\LiveStreamVideosAitis\\Soho2-%03d.mp4\" " &#x2B;&#xA;                      //  "-re -threads 0 -thread_queue_size 2048 -rtsp_transport tcp -i \"rtsp://{camUrl}\"  -map 1  -c copy -reset_timestamps 1 -pix_fmt yuv420p -c:v libx264 -preset superfast -profile:v high -bsf:a aac_adtstoasc -vf scale=1280x720 -b:v 900k -r 30 -g 60 -c:a aac -b:a 128k -ac 1 -ar 44100 -bufsize 2500k -f segment  -segment_time 30 -segment_format mp4  \"C:\\Users\\User\\Documents\\LiveStreamVideosAitis\\HS2_1-%03d.mp4\" " &#x2B;&#xA;                      "-re -threads 0 -thread_queue_size 2048 -rtsp_transport tcp -i \"rtsp://{camUrl}\"  -map 1  -c copy -reset_timestamps 1 -pix_fmt yuv420p -c:v libx264 -preset superfast -profile:v high -bsf:a aac_adtstoasc -vf scale=1280x720 -b:v 900k -r 30 -g 60 -c:a aac -b:a 128k -ac 1 -ar 44100 -bufsize 2500k -f segment  -segment_time 60 -segment_format mp4  \"C:\\Users\\User\\Documents\\LiveStreamVideosAitis\\HS2_2-%03d.mp4\" " &#x2B;&#xA;                      "-re -threads 0 -thread_queue_size 2048 -rtsp_transport tcp -i \"rtsp://{camUrl}\" -map 2  -c copy -reset_timestamps 1 -pix_fmt yuv420p -c:v libx264 -preset superfast -profile:v high -bsf:a aac_adtstoasc -vf scale=1280x720 -b:v 900k -r 30 -g 60 -c:a aac -b:a 128k -ac 1 -ar 44100 -bufsize 2500k -f segment  -segment_time 60 -segment_format mp4  \"C:\\Users\\User\\Documents\\LiveStreamVideosAitis\\HS2_3-%03d.mp4\" " &#x2B;&#xA;                      "-re -threads 0 -thread_queue_size 2048 -rtsp_transport tcp -i \"rtsp://{camUrl}\" -map 3 -c copy -reset_timestamps 1 -pix_fmt yuv420p -c:v libx264 -preset superfast -profile:v high -bsf:a aac_adtstoasc -vf scale=1280x720 -b:v 900k -r 30 -g 60 -c:a aac -b:a 128k -ac 1 -ar 44100 -bufsize 2500k -f segment  -segment_time 60 -segment_format mp4 \"C:\\Users\\User\\Documents\\LiveStreamVideosAitis\\HS2_4-%03d.mp4\" ";&#xA;&#xA;&#xA;        //string[] arguments = { cam1, cam2, cam3, cam4, cam5 };&#xA;        string[] arguments = { argumentUrl };&#xA;        processForChunk.Arguments = String.Join(" ", arguments);&#xA;        Console.WriteLine(processForChunk.Arguments);&#xA;        processForChunk.RedirectStandardOutput = true;&#xA;</processstartinfo></processstartinfo>

    &#xA;

    Issue I am facing is sometimes it starts ignoring some camera stream and not creating chunks for that while other cameras are working fine. I want to handle this thing and also how to handle if there is some issue with a single camera then it starts creating chunks. I need to hanlde these problems.

    &#xA;

  • pyglet's video example application not working

    3 octobre 2020, par C. E.

    I'm trying to get the pyglet video player example to work, but I'm getting the following error :

    &#xA;

    &#xA;

    pyglet.media.codecs.ffmpeg.FFmpegException : avformat_open_input in&#xA;ffmpeg_open_filename returned an error opening file&#xA;/home/ce/Downloads/sample-mp4-file.mp4 Error code : -1094995529

    &#xA;

    &#xA;

    I decoded this number, and it turns out that it corresponds to the "INDA" error code in FFMPEG's error.h, which means

    &#xA;

    &#xA;

    Invalid data found when processing input

    &#xA;

    &#xA;

    The example video that I used can be downloaded here. I tried the mp4 one, the avi one and the webm one. I also tried other files that I have locally. They all work in other video players, and in fact some were created using FFMPEG.

    &#xA;

    Finally, I used pyglet.media.have_ffmpeg() to make sure that pyglet agrees with me that I have ffmpeg installed.

    &#xA;

    Originally, I had ffmpeg 3.4 installed globally, i.e. which ffmpeg pointed to a 3.4 binary. I then replaced that binary with a ffmpeg 4.1 binary. However, when I run pyglet.info.dump_ffmpeg() it still say 3.4.8 so I may not have suceeded in trying 4.1. I tried setting os.environ["LD_LIBRARY_PATH"] but it is still printing 3.4.8.

    &#xA;

    Operating system : Ubuntu 18.04. I have gotten it to work on Ubuntu 20.04. It uses a newer FFMPEG which I suspect is important.

    &#xA;

    What can I do ?

    &#xA;

  • ffmpeg native player started from spring application freezes

    21 mars 2018, par Jemo Mgebrishvili

    I have a spring-mvc project, from browser on button click I’m starting ffmpeg player (ffplay) for video/audio streaming, the problem is that, when player window is opened after the button click, it freezes and not responds, it shows one frame and stops frame updates but has audio voice, also I can’t move it and change player position, if I start the ffplay from cmd (outside from my app) it works fine.
    this is how I am starting the player

    Thread({
           val cmd = arrayOf("pathToTheffplay", "-loglevel", "verbose", "rtmp://localhost:portNum/streamName")
           val pb = ProcessBuilder(*cmd)
           pb.start()
           println("player started")
     }).start()

    what I am missing ? Any advice ?