Recherche avancée

Médias (91)

Autres articles (32)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (4105)

  • How to create multiple quality video streaming system by using ffmpeg ?

    22 avril 2021, par rahulchanchardbabaji

    I am creating a streaming app like youtube while I am creating it I am facing many challenges related to different quality video converting.

    


    My question is

    


    Should I convert orginal video file into multiple video file (like 240p, 480p and 720p) and storage them ? Or there is anyway where I can create a single video file which can be play in multiple qualities like youtube.

    


  • Streaming engines best practice in C

    20 novembre 2014, par ash

    LANG : C / ENV : Linux

    I am developing a streaming engine, for now I am able to start, stop and pause the stream, but seeking is the operation that’s giving me a lot of headache, I already asked a question here before and fixed some issues inside the code from the answers.

    Using lseek() function, I am passing the open streaming file descriptor as first argument, plus I am using UDP for transmitting, something like the following code :

    transport_fd = open(tsfile, O_RDONLY);
    int offset = 1024;
    off_t offsetIndicator;
    if ((offsetIndicator=lseek(transport_fd, offset, SEEK_CUR))<0) printf("Error seeking\n");

    Whenever I try to seek while streaming, the streaming stops and the pictures hangs.

    Is there anything I should pay attention to ?, i.e : like attempting to sleep() or nanosleep() after seeking into the file in order for the changes to take effect.

    I couldn’t find examples, papers or realted articles for best practices in such engines.

    EDIT :

    After testing, it seems like the file continued to stream but receiving devices on the network didn’t catch the stream connection anymore, and calculating the time it took to finish after subtract seeking time, the stream seems to be finished normally.

    CODE SNIPPET :

    while (!completed)
    {
       while (/* Comparing conditions */ && !completed)
       {
           if (seekLck == 1) // seekLck is a semaphore to test seek signal from father process initiated by 0
           {
               int offset = 1024;
               off_t offsetIndicator;
               if ((offsetIndicator=lseek(transport_fd, offset, SEEK_CUR))<0)
                   printf("Error seeking\n");
               nanosleep(&nano_sleep_packet, 0); //Try to sleep to see if it is still hanging, didn't work
               seekLck = 0;
           }  
           len = read(transport_fd, send_buf, packet_size);
           if(len < 0) {
               fprintf(stderr, "File read error \n");
               completed = 1;
           }
           else if (len == 0)
           {
               fprintf(stderr, "Sent done\n");
               completed = 1;
           }
           else
           {
               sent = sendto(sockfdstr, send_buf, len, 0, (struct sockaddr *)&addr, sizeof(struct sockaddr_in));
               if(sent <= 0)
               {
                   perror("send(): error ");
                   completed = 1;
               }
           }
       }
       nanosleep(&nano_sleep_packet, 0);
    }
    close(transport_fd);
    close(sockfdstr);
    free(send_buf);
    printf("cleaning up\n");
    return 0;
    }
  • node js (or other) as streaming server

    20 décembre 2013, par Abdul Ali

    Apologies if a simple question but cannot find anything helpful . Am also new to the streaming concept.

    Goal is to set up a server which keeps on listening for data on a speific port. The user will be sending sequence of images from their iphone (# of images unknown).

    when the data is receieved, ffmpeg should start to get data from that port (as input) and send those images to ffserver to be streamed as a live video.

    did try Nginx-Rtmp module but the iphone developer have informed that in iphone, only ip and port can be given to open a stream (and no other part of the url can be given e.g. streamname and application name in case of nginx-rtmp)

    Any help and guide will be appreciatd that what can be used to set up a free and very simple sever that simply receives the images which ffmpeg can capture and send to ffserver .