Recherche avancée

Médias (91)

Autres articles (65)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

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

Sur d’autres sites (10333)

  • How to properly parse the H.265 RTSP stream from the Bosch DINION IP 3000iIR (CPP7.3) camera

    5 août 2024, par Pirlo Zhang

    Description :

    


    I am trying to parse the H.265 RTSP stream from two Bosch cameras :

    


    DINION IP 3000iIR (CPP7.3), commercial model NBE-3502-AL
DINION IP 4000i IR (CPP7.3), commercial model NBE-4502-AL
These cameras are configured in the BVMS management software to stream via RTSP on port 554 with H.265 video encoding.

    


    Despite extensive testing, I am unable to properly parse the stream using :

    


    VLC software
FFmpeg software
Custom programs

    


    None of these methods seem to work. The stream does not parse correctly or is not displayed at all.

    


    We have tried various stream URLs including :

    


    rtsp ://user:password@10.177.100.xxx:554/h265/ch1/main/av_stream
rtsp ://user:password@10.177.100.xxx:554/h264/ch1/main/av_stream
rtsp ://user:password@10.177.100.xxx:554/h265/ch1/sub/av_stream
rtsp ://user:password@10.177.100.xxx:554/h264/ch1/sub/av_stream

    


    Additionally, when testing other models with BVMS configured to use H.264, we can successfully retrieve the video stream.

    


    Has anyone experienced similar issues or have any insights on how to resolve this ? Any help would be greatly appreciated.

    


  • ffplay does not exit in forked child

    6 septembre 2019, par user12030145

    ffplay  -autoexit does not exit in a forked child

    I need to pipe my application (stdout) to ffplay (stdin). I do this by forking ffplay as a child and using -i pipe:0 as argument.

    #include
    #include
    #include <sys></sys>types.h>
    #include <sys></sys>wait.h>

    int main(int argc, const char** argv)
    {
    int tube[2];
    int c;
    FILE* f = fopen(argv[1], "rb");
    pid_t pid;
    if (argc &lt; 2) return -1;
    if (pipe(tube))  {
       perror("Pipe");
       return -1;
     }

    // main process cats a .mlp file to stdout, sent to a child ffplay stdin through a pipe
    char* const arg[] = {"-i", "pipe:0", "-f", "mlp", "-nodisp", "-autoexit", NULL};
    switch (pid = fork())    {
               case -1:
                   fprintf(stderr,"%s\n", "Could not launch ffplay");
                   break;

               case 0:
                   close(tube[1]);
                   dup2(tube[0], STDIN_FILENO);
                   execv("/usr/bin/ffplay", arg);
                   fprintf(stderr, "%s\n", "Runtime failure in ffplay child process");
                   return -2;

               default:
                   close(tube[0]);
                   dup2(tube[1], STDOUT_FILENO);
           }

    // Here the main process code sending the .mlp file to stdout...

    while ((c = fgetc(f)) != EOF) putchar(c);

    waitpid(pid, NULL, 0);
    fclose(f);

    // main never returns
    return 0;
    }

    The issue is that in this context, ffplay -autoexit never exits (GNU-Linux platform). In a main process, ffplay -autoexit always exits at the end of a media file.
    Is there a pure C workaround without using system, popen or scripting ?
    Is this a feature or a bug of ffplay (I cannot tell) ?

  • Fastest way to extract moving dynamic crop from video using ffmpeg

    5 avril 2024, par NateW

    I'm working on an AI project that involves object detection and action recognition on roughly 30 minute videos.

    &#xA;

    My pipeline is the following :

    &#xA;

      &#xA;
    • determine crops using object detection model
    • &#xA;

    • extract crops using Python and write them to disk as individual images for each frame.
    • &#xA;

    • use action recognition model by inputting a series of the crops.
    • &#xA;

    &#xA;

    The models are fast but actual writing of the crops to disk is slow. Sure, using an SSD would speed it up but I'm sure ffmpeg would greatly speed it up.

    &#xA;

    Some of the challenges with the crops :

    &#xA;

      &#xA;
    • the output size is always 128x128
    • &#xA;

    • the input size is variable
    • &#xA;

    • the crop moves on every frame
    • &#xA;

    &#xA;

    My process for extracting crops is simple using cv2.imwrite(output_crop_path, crop) in a for loop.

    &#xA;

    I've done experiments trying to use sndcommand and filter_complex. I tried this https://stackoverflow.com/a/67508233/4447761 but it outputs an image with black below the crop and the image gets wrapped around on the x axis.

    &#xA;

    enter image description here

    &#xA;