Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (4452)

  • ffserver : don’t leak poll_table if poll fails

    11 mai 2014, par Reynaldo H. Verdejo Pinochet
    ffserver : don’t leak poll_table if poll fails
    

    Should fix Coverity Scan issue #732265

    Signed-off-by : Reynaldo H. Verdejo Pinochet <r.verdejo@sisa.samsung.com>

    • [DH] ffserver.c
  • Problems video playing in some android devices (version 4+) but not in others

    5 juin 2014, par anquegi

    following the settings for video in android developers, http://developer.android.com/guide/appendix/media-formats.html I encoded a video using ffmpeg like this :

    ffmpeg -i gravityTrailer.mp4 -y -f mp4 -vcodec libx264 -profile:v baseline -acodec aac    -strict -2  -profile:a aac_low -b:v 500k -ar 44100 -b:a 128k -ac 2 -r 30 -s 480x360  output_hq.mp4

    which corresponds on sd highquality in table 2 from android developers (link above).

    Then i put this video in a server and use the class android.media.MediaPlayer to reproduce it from that URL like this

    https://cloudapp.somedomain.com/bmftvideos/output_hq.mp4

    The problem is that the video is played on android version 4+

    you can see the video on :
    LG G2,
    Sony xperia S

    you cannot see the video on :
    Samsung galaxy S4,
    BQ (spanish) aquaris 4.5

    And I don not know why

    this is the ffmpeg output :

    ffmpeg version 1.2.6 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  5 2014 08:21:01 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
     configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
     libavutil      52. 18.100 / 52. 18.100
     libavcodec     54. 92.100 / 54. 92.100
     libavformat    54. 63.104 / 54. 63.104
     libavdevice    54.  3.103 / 54.  3.103
     libavfilter     3. 42.103 /  3. 42.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14e5ba0] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x14e5ba0] max_analyze_duration 5000000 reached at 5013333 microseconds
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'gravityTrailer.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       creation_time   : 2013-12-01 03:59:56
       genre           : Trailer
       artist          : Warner Bros.
       title           : Gravity - 2K Trailer
       encoder         : HandBrake 0.9.9 2013051800
       date            : 2013
     Duration: 00:02:27.07, start: 0.000000, bitrate: 20296 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2048x858, 20149 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
       Metadata:
         creation_time   : 2013-12-01 03:59:56
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 153 kb/s
       Metadata:
         creation_time   : 2013-12-01 03:59:56
       Stream #0:2: Video: mjpeg, yuvj420p, 102x150 [SAR 72:72 DAR 17:25], 90k tbr, 90k tbn, 90k tbc
    [libx264 @ 0x1667680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x1667680] profile Constrained Baseline, level 3.0
    [libx264 @ 0x1667680] 264 - core 130 r2282 1db4621 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output_hq.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isomavc1
       date            : 2013
       genre           : Trailer
       artist          : Warner Bros.
       title           : Gravity - 2K Trailer
       encoder         : Lavf54.63.104
       Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x360, q=-1--1, 500 kb/s, 15360 tbn, 30 tbc
       Metadata:
         creation_time   : 2013-12-01 03:59:56
       Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
       Metadata:
         creation_time   : 2013-12-01 03:59:56
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (aac -> aac)
    Press [q] to stop, [?] for help
    frame= 4410 fps= 65 q=-1.0 Lsize=   11154kB time=00:02:27.07 bitrate= 621.3kbits/s dup=885 drop=0    
    video:9062kB audio:1969kB subtitle:0 global headers:0kB muxing overhead 1.115392%
    [libx264 @ 0x1667680] frame I:186   Avg QP:28.41  size:  4446
    [libx264 @ 0x1667680] frame P:4224  Avg QP:29.20  size:  2001
    [libx264 @ 0x1667680] mb I  I16..4: 75.5%  0.0% 24.5%
    [libx264 @ 0x1667680] mb P  I16..4:  7.5%  0.0%  3.6%  P16..4: 23.1%  6.2%  1.8%  0.0%  0.0%    skip:57.7%
    [libx264 @ 0x1667680] final ratefactor: 27.96
    [libx264 @ 0x1667680] coded y,uvDC,uvAC intra: 24.0% 31.9% 8.6% inter: 7.4% 7.6% 0.6%
    [libx264 @ 0x1667680] i16 v,h,dc,p: 58% 15% 13% 14%
    [libx264 @ 0x1667680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28%  9% 27%  7%  6%  8%  5%  7%  3%
    [libx264 @ 0x1667680] i8c dc,h,v,p: 80%  7% 12%  2%
    [libx264 @ 0x1667680] ref P L0: 84.7%  9.4%  5.9%
    [libx264 @ 0x1667680] kb/s:504.98

  • OpenCV and Network Cameras -or- How to spy on my neighbors ?

    12 mai 2014, par Alexander

    A bit of context ; this program was built originally to work with USB cameras - but because of the setup between where the cameras needs to be and where the computer is it makes more sense to switch to cameras run over a network. Now I’m trying to convert the program to accomplish this, but my efforts thus far have met with poor results. I’ve also asked this same question over on the OpenCV forums. Help me spy on my neighbors ! (Totally with their permission, of course !) :D


    I’m using :

    • OpenCV v2.4.6.0
    • C++
    • D-Link Cloud Camera 7100 (Installer is DCS-7010L, according to the instructions.)

    I am trying to access the DLink camera’s video feed through OpenCV.

    I can access the camera through it’s IP address with a browser without any issues. Unfourtunately ; my program is less cooperative. When attempting to access the camera the program gives the OpenCV-generated error :

    warning : Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:529)

    This error occurs with just about everything I try that doesn’t somehow generate more problems.

    For reference - the code in OpenCV’s cap_ffmpeg_impl.hpp around line 529 is as follows :

    522    bool CvCapture_FFMPEG::open( const char* _filename )
    523    {
    524        unsigned i;
    525        bool valid = false;
    526
    527        close();
    528
    529    #if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0)
    530        int err = avformat_open_input(&amp;ic, _filename, NULL, NULL);
    531    #else
    532        int err = av_open_input_file(&amp;ic, _filename, NULL, 0, NULL);
    533    #endif
    ...
    616    }

    ...for which I have no idea what I’m looking at. It seems to be looking for the ffmpeg version - but I’ve already installed the latest ffmpeg on that computer, so that shouldn’t be the issue.

    This is the edited down version I tried to use as per Sebastian Schmitz’s recommendation :

    1    #include <fstream>                            // File input/output
    2    #include <iostream>                           // cout / cin / etc
    3    #include                       // Windows API stuff
    4    #include                             // More input/output stuff
    5    #include <string>                         // "Strings" of characters strung together to form words and stuff
    6    #include <cstring>                            // "Strings" of characters strung together to form words and stuff
    7    #include <streambuf>                      // For buffering load files
    8    #include <array>                          // Functions for working with arrays
    9    #include <opencv2></opencv2>imgproc/imgproc.hpp>        // Image Processor
    10    #include <opencv2></opencv2>core/core.hpp>          // Basic OpenCV structures (cv::Mat, Scalar)
    11    #include <opencv2></opencv2>highgui/highgui.hpp>        // OpenCV window I/O
    12    #include "opencv2/calib3d/calib3d.hpp"
    13    #include "opencv2/features2d/features2d.hpp"
    14    #include "opencv2/opencv.hpp"
    15    #include "resource.h"                     // Included for linking the .rc file
    16    #include                             // For sleep()
    17    #include <chrono>                         // To get start-time of program.
    18    #include <algorithm>                      // For looking at whole sets.
    19
    20    #ifdef __BORLANDC__
    21      #pragma argsused
    22    #endif
    23
    24    using namespace std;                      // Standard operations. Needed for most basic functions.
    25    using namespace std::chrono;              // Chrono operations. Needed getting starting time of program.
    26    using namespace cv;                           // OpenCV operations. Needed for most OpenCV functions.
    27
    28    string videoFeedAddress = "";
    29    VideoCapture videoFeedIP = NULL;
    30    Mat clickPointStorage; //Artifact from original program.
    31
    32    void displayCameraViewTest()
    33    {
    34      VideoCapture cv_cap_IP;
    35      Mat color_img_IP;
    36      int capture;
    37      IplImage* color_img;
    38      cv_cap_IP.open(videoFeedAddress);
    39      Sleep(100);
    40      if(!cv_cap_IP.isOpened())
    41      {
    42          cout &lt;&lt; "Video Error: Video input will not work.\n";
    43          cvDestroyWindow("Camera View");
    44          return;
    45      }
    46      clickPointStorage.create(color_img_IP.rows, color_img_IP.cols, CV_8UC3);
    47      clickPointStorage.setTo(Scalar(0, 0, 0));
    48      cvNamedWindow("Camera View", 0); // create window
    49      IplImage* IplClickPointStorage = new IplImage(clickPointStorage);
    50      IplImage* Ipl_IP_Img;
    51      
    52      for(;;)
    53      {
    54          cv_cap_IP.read(color_img_IP);
    55          IplClickPointStorage = new IplImage(clickPointStorage);
    56          Ipl_IP_Img = new IplImage(color_img_IP);
    57          cvAdd(Ipl_IP_Img, IplClickPointStorage, color_img);
    58          cvShowImage("Camera View", color_img); // show frame
    59          capture = cvWaitKey(10); // wait 10 ms or for key stroke
    60          if(capture == 27 || capture == 13 || capture == 32){break;} // if ESC, Return, or space; close window.
    61      }
    62      cv_cap_IP.release();
    63      delete Ipl_IP_Img;
    64      delete IplClickPointStorage;
    65      cvDestroyWindow("Camera View");
    66      return;
    67    }
    68    
    69    int main()
    70    {
    71      while(1)
    72      {
    73          cout &lt;&lt; "Please Enter Video-Feed Address: ";
    74          cin >> videoFeedAddress;
    75          if(videoFeedAddress == "exit"){return 0;}
    76          cout &lt;&lt; "\nvideoFeedAddress: " &lt;&lt; videoFeedAddress &lt;&lt; endl;
    77          displayCameraViewTest();
    78          if(cvWaitKey(10) == 27){return 0;}
    79      }
    80      return 0;
    81    }
    </algorithm></chrono></array></streambuf></cstring></string></iostream></fstream>

    Using added ’cout’s I was able to narrow it down to line 38 : "cv_cap_IP.open(videoFeedAddress) ;"

    No value I enter for the videoFeedAddress variable seems to get a different result. I found THIS site that lists a number of possible addresses to connect to it. Since there exists no 7100 anywhere in the list & considering that the install is labeled "DCS-7010L" I used the addresses found next to the DCS-7010L listings. When trying to access the camera most of them can be reached through the browser, confirming that they reach the camera - but they don’t seem to affect the outcome when I use them in the videoFeedAddress variable.

    I’ve tried many of them both with and without username:password, the port number (554), and variations on ?.mjpg (the format) at the end.

    I searched around and came across a number of different "possible" answers - but none of them seem to work for me. Some of them did give me the idea for including the above username:password, etc stuff, but it doesn’t seem to be making a difference. Of course, the number of possible combinations is certainly rather large- so I certainly have not tried all of them (more direction here would be appreciated). Here are some of the links I found :

    1. This is one of the first configurations my code was in. No dice.
    2. This one is talking about files - not cameras. It also mentions codecs - but I wouldn’t be able to watch it in a web browser if that were the problem, right ? (Correct me if I’m wrong here...)
    3. This one has the wrong error code/points to the wrong line of code !
    4. This one mentions compiling OpenCV with ffmpeg support - but I believe 2.4.6.0 already comes with that all set and ready ! Otherwise it’s not that different from what I’ve already tried.
    5. Now THIS one appears to be very similar to what I have, but the only proposed solution doesn’t really help as I had already located a list of connections. I do not believe this is a duplicate, because as per THIS meta discussion I had a lot more information and so didn’t feel comfortable taking over someone else’s question - especially if I end up needing to add even more information later.

    Thank you for reading this far. I realize that I am asking a somewhat specific question - although I would appreciate any advice you can think of regarding OpenCV & network cameras or even related topics.


    TLDR : Network Camera and OpenCV are not cooperating. I’m unsure if
    it’s the address I’m using to direct the program to the camera or the
    command I’m using - but no adjustment I make seems to improve the
    result beyond what I’ve already done ! Now my neighbors will go unwatched !