Recherche avancée

Médias (91)

Autres articles (50)

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

  • 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

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

Sur d’autres sites (8667)

  • FFMPEG not able to listen for rtmp and turn it into HLS

    19 octobre 2018, par Frogglet

    Based on my understanding, this command should work...

    ffmpeg -listen 1 -i
    rtmp ://my-host-name.com:8000/thing/input.ts
    -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 30 -profile:v baseline -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 stream.m3u8

    It is listening for an rtmp connection on port 8000. After an rtmp stream connects it should start generating an HLS stream on the fly in the current directory.

    Somewhere else I am sending the stream like so :

    ffmpeg -i input.ts -f mpegts
    rtmp ://my-host-name.com:8000/thing/input.ts

    On the sending side things seem to be normal, but on the listening side nothing seems to be happening, except it is throwing lots or errors like this :

    [rtmp @ 0x9a1280] Unknown packet type received 0x78

    [rtmp @ 0x9a1280] Unknown packet type received 0x00

    [rtmp @ 0x9a1280] Unknown packet type received 0x71

    [rtmp @ 0x9a1280] Unknown packet type received 0x00

    I don’t know if those are just superfluous or not. Am I doing something wrong here ?

  • How to check when ffmpeg completes a task ?

    25 mai 2018, par Andrew

    I’m just learning how to use ffmpeg a few hours ago to generate video thumbnails.

    These are some results :

    1

    2

    I’d used the same size (width - height) to Youtube’s. Each image contains max 25 thumbnails (5x5) with the size 160x90.

    Everything looks good until :

    public async Task GetVideoThumbnailsAsync(string videoPath, string videoId)
    {
       byte thumbnailWidth = 160;
       byte thumbnailHeight = 90;

       string fps = "1/2";

       videoPath = Path.Combine(_environment.WebRootPath, videoPath);

       string videoThumbnailsPath = Path.Combine(_environment.WebRootPath, $"assets/images/video_thumbnails/{videoId}");
       string outputImagePath = Path.Combine(videoThumbnailsPath, "item_%d.jpg");

       Directory.CreateDirectory(videoThumbnailsPath);

       using (var ffmpeg = new Process())
       {
           ffmpeg.StartInfo.Arguments = $" -i {videoPath} -vf fps={fps} -s {thumbnailWidth}x{thumbnailHeight} {outputImagePath}";
           ffmpeg.StartInfo.FileName = Path.Combine(_environment.ContentRootPath, "FFmpeg/ffmpeg.exe");
           ffmpeg.Start();
       }

       await Task.Delay(3000);

       await GenerateThumbnailsAsync(videoThumbnailsPath, videoId);
    }

    I’m getting a trouble with the line :

    await Task.Delay(3000);

    When I learn the way to use ffmpeg, they didn’t mention about it. After some hours failed, I notice that :

    An mp4 video (1 min 31 sec - 1.93Mb) requires some delay time 1000ms. And other, an mp4 video (1 min 49 sec - 7.25Mb) requires some delay time 3000ms.

    If I don’t use Task.Delay and try to get all the files immediately, it would return 0 (there was no file in the directory).

    Plus, each file which has a difference length to the others requires a difference delay time. I don’t know how to calculate it.

    And my question is : How to check when the task has completed ?

    P/s : I don’t mean to relate to javascript, but in js, there is something called Promise :

    var promise = new Promise(function (done) {
       var todo = function () {
           done();
       };

       todo();
    });

    promise.then(function () {
       console.log('DONE...');
    });

    I want to edit the code like that.

    Thank you !

  • Add unit tests for word-wise CRC16 functions

    20 mai 2018, par Robert Kausch
    Add unit tests for word-wise CRC16 functions
    

    Update FLAC__BitReader structure in unit test.

    • [DH] src/test_libFLAC/bitreader.c
    • [DH] src/test_libFLAC/crc.c