Recherche avancée

Médias (91)

Autres articles (63)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (5908)

  • Cannot open videos in Opencv

    12 mai 2013, par Mahesh

    I am trying to open .avi file in opencv. When I run the code I do not get any error but the video does not play. I searched around and I guess it requires ffmpeg to be installed. So I installed it using
    sudo apt-get install libavformat-dev libavcodec-dev libavfilter-dev libswscale-dev
    It still does not work. Maybe the compiler needs to know where to find ffmpeg. I am using gcc compiler.
    Thanks.

    @Paul R : I have just copied the code from the Learning Opencv textbook, so wasn't including it. The code :

    #include
    #include
    int main( int argc, char** argv ) {
    cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE );
    CvCapture* capture = cvCreateFileCapture( argv[1] );
    IplImage* frame;
    while(1) {
       printf("Inside");
       frame = cvQueryFrame( capture );
       if( !frame ) break;
       cvShowImage( "Example2", frame );
       char c = cvWaitKey(33);
       if( c == 27 ) break;
    }
    cvReleaseCapture( &capture );
    cvDestroyWindow( "Example2" );

    }

    @praks411 :

    printf("%s",argv[1]);
    CvCapture* capture = cvCreateFileCapture( argv[1] );
    if(!capture)
    {  
           printf("failed\n");
       return -1;
    }

    It prints the argument correctly and the capture fails.

  • avconv : report the error for codec open failure

    20 juin 2013, par Luca Barbato
    avconv : report the error for codec open failure
    

    External codec may have corner case reason to fail at init, better
    report them instead having the user wonder.

    • [DH] avconv.c
  • Ubuntu 16.04 + OpenCV + FFMPEG + CUDA don't open default camera

    20 juillet 2018, par Newton Pasqualini Filho

    I am trying to work with accelerated OpenCV using my own build of FFMPEG with CUDA support for GPU video processing using Python.

    My application must support any kind of video devices, including USB and IP cameras.

    I have a config file parsed with ConfigParser that loads the camera device path, as described in OpenCV documentation we can access usb camera by index number and for IP camera we use RTSP protocol so the path could be sometimes 0 or rtsp://192.168.1.2/0.

    To force the use of FFMPEG behind OpenCV I am trying to open the video capture stream like bellow :

    video_capture = cv.VideoCapture()
    stream_opened = video_capture.open(camera_path, cv.CAP_FFMPEG)

    The problem is when I try to open the default USB camera camera_path = 0 the video_capture.open method always returns false, but when it is a RTSP like camera_path = "rtsp://192.168.1.2/1" it open the video capture stream ok.

    When I let OpenCV decide what backend will be used it calls to GStreammer and it opens the capture stream like this :

    video_capture = cv.VideoCapture(camera_path)

    I suspect that FFMPEG does not have any support for capture video from a USB camera, does it ? Is there some missing feature to my ffmpeg build ?

    ffmpeg version N-91487-g1809f1c Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
    configuration: --prefix=/usr --pkg-config-flags=--static --enable-cuda-sdk --enable-cuvid --enable-libnpp --extra-cflags=-I/usr/local/cuda/include/ --extra-ldflags=-L/usr/local/cuda/lib64/ --nvccflags='-gencode arch=compute_61,code=sm_61 -O2' --enable-gpl --enable-libass --enable-libfdk-aac --enable-libx264 --extra-libs=-lpthread --enable-libx265 --enable-nvenc --enable-nonfree
    libavutil      56. 18.102 / 56. 18.102
    libavcodec     58. 21.105 / 58. 21.105
    libavformat    58. 17.101 / 58. 17.101
    libavdevice    58.  4.101 / 58.  4.101
    libavfilter     7. 26.100 /  7. 26.100
    libswscale      5.  2.100 /  5.  2.100
    libswresample   3.  2.100 /  3.  2.100
    libpostproc    55.  2.100 / 55.  2.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...