Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (52)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6412)

  • Opencv RTSP streaming with ffmpeg and gstreamer

    14 septembre 2015, par ironman

    I am using an ip camera which has mainstream (with resolution 1920x1080) and substream (with resolution 720x576). My aim is to detect the motion by using the substream, if motion occurs I take a snopshot from the mainstream and do some processing on this image. Here is my code’

       VideoCapture cap;   //video capture device captures the pal stream
       VideoCapture cap2;  //video capture device captures the main stream

       // cap.set(CV_CAP_PROP_BUFFERSIZE,1);
       // cap2.set(CV_CAP_PROP_BUFFERSIZE,1);
       //cap.set(CV_CAP_GSTREAMER_QUEUE_LENGTH,1);
       //cap2.set(CV_CAP_GSTREAMER_QUEUE_LENGTH,1);
       cap.open("rtsp://usr:pass@x.x.x.x:554/Streaming/Channels/2?transportmode=unicast&profile=Profile_2",CAP_FFMPEG);  //open substream
       cap2.open("rtsp:///usr:pass@x.x.x.x:554/Streaming/Channels/1?transportmode=unicast&profile=Profile_1",CAP_FFMPEG);  //open mainstream
       bool frame_read = false;
       int motion val;

       while (true) {
           frame_read = cap.read(rgb_im); //read the frame from substream
           //cap2.grab();
           if (!frame_read) {
               break;
           }
           cvtColor(rgb_im, gray_im, CV_BGR2GRAY);
           motion_val = detect_motion(gray_im);   //find the motion value

           if (motion_val > MOTION_OCCURRED)    //check if motion occurs
           {
               cap2>>frame_big;    //get one frame from the main stream
               process(frame_big);  //do processing
           }
           imshow("1", rgb_im);
               if (waitKey(1) >= 0)
                   break;
       }`

    When, I open the stream with CAP_FFMPEG flag latency is very low (under 1 sec). As seen above I regularly read the substream and if motion occurs I read the mainstream. But the frames which I read from the mainstream is not synchronous with the substream. Most probably I grab the frames which waits in the buffer. So I miss the frame with motion and I get an older frame. How can I handle this issue ? Somehow I have to make buffer size 1 frame but I cannot find any way.

    I have tried
    cap.set(CV_CAP_PROP_BUFFERSIZE,1); but since it needs DC1394 support it does not solve my problem.

    Secondly, I have tried cap2.grab() after I read the substream but it increases the latency(make latency about 3 seconds).

    Thirdly, I have tried to open videocapture objects with cv_cap_gstreamer flag cap.open("rtsp://usr:pass@x.x.x.x:554/Streaming/Channels/2transportmode=unicast&profile=Profile_2",CV_CAP_GSTREAMER); . It solves my buffering problem. In other words, when I detect the motion from the substream, I am able to capture the same instant from the mainstream. But with the gstreamer I have huge delay about 3 seconds which is not desirable for my case.(with gstreamer I tried to read several rtsp streams with different resolutions and latency remains the same) How can I solve the latency issue when I am using gstreamer with opencv ?

  • Evolution #3953 : formulaire de date sur les rubriques

    12 février 2021, par RastaPopoulos ♥

    Dans tous les cas il me semble nécessaire de pouvoir agir sur les dates des objets, sachant qu’historiquement les dates des rubriques sont liées automatiquement à la date de leur dernier article, faudrait-il trouver une solution pour bloquer/débloquer cet automatisme ?

    1) Les dates des rubriques sont liés aux articles, mais il me semble que soit la doc n’est pas assez explicite, soit le code ne va pas jusqu’au bout (mais ça impliquerait possiblement des trop gros tests). En effet, la date des rubriques n’est pas liée vaguement à la date du contenu le plus récent publié dedans. :) C’est plus fourbement précis : c’est la date du dernier contenu dont le statut a été mis en publié pendant qu’il était dans cette rubrique. Et ça à défaut de changer le code pour l’instant, il faudrait au moins le dire moins sibyllin. Concrètement ça signifie que si on déplace un article (publié bien sûr) depuis une autre rubrique dedans après coup, avec une date plus récente, ça ne change rien à la date de la rubrique (dont le contenu a pourtant changé toute autant qu’en publiant direct depuis dedans). En théorie il faudrait que ça change en cascade la date de tous les parents quand on déplace un article (la rubrique de destination et toute la hiérarchie). Et possiblement d’autres cas de ce genre.

    2) Quoiqu’il en soit, même s’il y a un changement de date par défaut, je pense aussi qu’il faut pouvoir décider qu’on veut la changement manuellement après coup. Si on a une liste de rubriques "par date de contenu récent", on peut rien corriger actuellement si les dates ne vont pas. Là j’ai le cas après une migration WP par exemple.

    En attendant faudrait un mini plugin tout simple pour ajouter le form de date sur les rubriques comme le montre touti au début. Mais est-ce ça devrait pas être natif directement ?

  • Processing3 get "Error=2 No such file or directory" with a file that actually doesn't exist at the first place

    29 octobre 2016, par Tuang Pingfavilunda

    I cannot figure it out what happen to my Processing file. I am trying to use VideoExport library and my Macbook Pro cannot play it, but the Mac-mini is able to do so.

    Before the error happened it is another error=13 permission denied thing, so I messed in the terminal for a while with chmod 777 and finding the file with ls. I don’t know if that may be the reason that caused this happen. FYI, I also installed ffmpeg already.

    And this is the full error :

       java.io.IOException: Cannot run program "/Users/Tuang/Desktop/DMA_WORKS/Work1_Facial Muscles/Cam_Rec/sketch_161027a/sketch_161027a.pde": error=2, No such file or directory
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
       at com.hamoid.VideoExport.startFfmpeg(Unknown Source)
       at com.hamoid.VideoExport.initialize(Unknown Source)
       at com.hamoid.VideoExport.saveFrame(Unknown Source)
       at Basic.draw(Basic.java:32)
       at processing.core.PApplet.handleDraw(PApplet.java:2412)
       at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1540)
       at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)
    Caused by: java.io.IOException: error=2, No such file or directory
       at java.lang.UNIXProcess.forkAndExec(Native Method)
       at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
       at java.lang.ProcessImpl.start(ProcessImpl.java:134)
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
       ... 7 more
    VideoExport error: Ffmpeg failed. Study /Users/Tuang/Desktop/DMA_WORKS/Work1_Facial_Muscles/Camera_Recorder/Basic/basic.mp4.txt for more details.
    Could not run the sketch (Target VM failed to initialize).
    For more information, read revisions.txt and Help → Troubleshooting.
    </init>

    1) The java.io.IOException : trying to call "/Work1_Facial Muscles/Cam_Rec/sketch_161027a/sketch_161027a.pde" which doesn’t exist for real. It is gone for a long time but seems like the program stuck here.

    2) "basic" is a file name from the Example of the Library. I just use it to test. Surprisingly, Every files that have been saved and changed the name still get the java.io.IOException’s error of the missing sketch_161027a.pde file.


    What I have done :
    1 I have already done the Homebrew thing to install ffmpeg.
    2 I deleted everything of Processing and reinstall it again.

    Any suggestion ?