Recherche avancée

Médias (91)

Autres articles (66)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (12292)

  • FFmpeg video is very distorted after a pixel-perfect start

    7 septembre 2022, par AlvinfromDiaspar

    I am using the following FFMpeg command to convert a H.264 UDP streamed video from a Tello drone to another address.

    



    ffmpeg -i udp://0.0.0.0:11111 -preset ultrafast -vcodec libx264 -tune zerolatency -b 900k -f h264 udp://127.0.0.1:5000


    



    Then I simply use the following OpenCv to read from that new address :

    



    this.Capture = new OpenCvSharp.VideoCapture("udp://127.0.0.1:5000", OpenCvSharp.VideoCaptureAPIs.FFMPEG);


    



    From this Capture reference, i obtain the next frame by calling this.Capture.Read(mat).
When i assigned the convert image to the UI, the image is pixel perfect !

    



    However, after the initial rendering, i am not seeing immediate updates. But i do see very laggy video updates that is very distorted. It looks like each consecutive frame is just the delta/difference drawn on top of the previous frame.

    



    Is there anything i can tweak/modify in my FFMpeg command to resolve this distorted video rendering ?

    



    Update 1
I was able to make some progress. The video updates, still with distortion, but overall distortion is a bit less. And the frames update more responsively.

    



    To get to this point, i simply added this parameter to my FFMpeg command :

    



    -g 100


    



    I also tried :

    



    -g 300


    


  • Using GStreamer to receive and send h264 video (from OBS)

    16 mars 2020, par Ivorius

    I’ve been trying to set up using GStreamer to get support for some input I can output from OBS.

    OBS : rtp_mpegts to udp ://localhost:5000

    http-launch 8080 webmmux streamable=true name=stream udpsrc uri=udp://localhost:5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T-ES, payload=(int)
    33" ! gstrtpjitterbuffer latency=200 ! application/x-rtp ! rtpmp2tdepay ! video/mpegts ! mpegtsdemux ! video/x-h264 ! queue ! decodebin ! vp8enc ! stream.   audiotestsrc ! vorbisenc ! stream.

    However, using this it seems to accept connections, but just closes them again after a while. Any clues on what I am doing wrong ? I am open to any format changes as long as they’re supported by OBS / ffmpeg.

    As a bonus, how do I add support for audio as well ?

    Background

    I’ve found https://github.com/sdroege/http-launch, which works well in displaying a GStreamer video over http:

    <video autoplay="autoplay" controls="">
       <source src="https://localhost:8080" type="video/mp4" codecs="avc1.4D401E, mp4a.40.2">
       You browser doesn't support element <code>video

    .

    I’ve managed to set up a pipeline where I can use a GStreamer source to pipe into a http-launch
    pipeline and display it on video :

    http-launch 8080 webmmux streamable=true name=stream udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! mpegtsdemu
    x ! h264parse ! TIViddec2 ! videoconvert ! vp8enc ! stream.   audiotestsrc ! vorbisenc ! stream.

    gst-launch-1.0 -v videotestsrc ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000

    However, I don’t think OBS supports rpt over UDP. It uses ffmpeg to send these packets, which can stream rtp_mpegts. I’ve found some code snippets which claim to support the format, and stitch together the above pipeline.

  • Creating Thumbnail Image from Video using FFMPEG is not working in ASP.NET Core

    17 août 2020, par TanvirArjel

    I am trying to create thumbnail image for uploaded video with FFMPEG in ASP.NET Core as follows :

    &#xA;&#xA;

    private void GetThumbnail(IFormFile file)&#xA;{&#xA;        var fileName = CreateEmployeeViewModel.Video.FileName;&#xA;        var webRootPath = _webHostEnvironment.WebRootPath;&#xA;        var filePath = Path.Combine(webRootPath, "videos", fileName);&#xA;&#xA;        var fileExtension = Path.GetExtension(filePath);&#xA;        var thumbnailImageName = fileName.Replace(fileExtension, ".jpg");&#xA;        var thumbnailImagePath = Path.Combine(webRootPath, "thumbnails", thumbnailImageName);&#xA;&#xA;        ProcessStartInfo startInfo = new ProcessStartInfo();&#xA;&#xA;        string arguments = $"-i {filePath} -ss 00:00:14.435 -vframes 1 {thumbnailImagePath}";&#xA;&#xA;        startInfo.FileName = Path.Combine(Directory.GetCurrentDirectory(), "Ffmpeg\\ffmpeg.exe");&#xA;        startInfo.CreateNoWindow = false;&#xA;        startInfo.UseShellExecute = false;&#xA;        startInfo.RedirectStandardError = true;&#xA;        startInfo.RedirectStandardOutput = true;&#xA;        startInfo.WindowStyle = ProcessWindowStyle.Hidden;&#xA;        startInfo.Arguments = arguments;&#xA;&#xA;        try&#xA;        {&#xA;            Process process = Process.Start(startInfo);&#xA;            process.WaitForExit(5000);&#xA;            process.Close();&#xA;        }&#xA;        catch&#xA;        {&#xA;            // Log error.&#xA;        }&#xA;&#xA;}&#xA;

    &#xA;&#xA;

    It's not showing any error but it's also not generating the thumbnail image. am I missing anything please ?

    &#xA;&#xA;

    Note : if I execute the above configuration from command line its works !

    &#xA;