Recherche avancée

Médias (91)

Autres articles (75)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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

Sur d’autres sites (11225)

  • lavf/tcp : increase range for listen and call the underlying socket operations accordingly

    21 juillet 2015, par Stephan Holljes
    lavf/tcp : increase range for listen and call the underlying socket operations accordingly
    

    Signed-off-by : Stephan Holljes <klaxa1337@googlemail.com>

    • [DH] libavformat/tcp.c
  • 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 !