Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (58)

  • 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

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

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

Sur d’autres sites (11725)

  • Compliing OpenCV with FFMPEG failing

    20 mai 2016, par moorej

    I’m trying to install OpenCV 3.1.0 on Ubuntu 14.04 with ffmpeg and python 2.7 support. I’m able to compile with :

    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
    -D  INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules
    -D WITH_FFMPEG=OFF -D BUILD_EXAMPLES=ON ..

    But -D WITH_FFMPEG=ON fails with the error :

    /usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o):
    relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
    making a shared object; recompile with -fPIC
    /usr/local/lib/libavcodec.a: error adding symbols: Bad value
    collect2: error: ld returned 1 exit status

    I’m compiling ffmpeg as well and I’ve looked at a number of posts relating to the problem and attempted to add —enable-pic and —enable-shared along with some other options but I have to admit I’m a bit stupid when it comes to anything compilation related. My process for compiling ffmpeg is below. Please help me with my mess. Thanks !

    mkdir ~/ffmpeg_sources

    #libx264
    cd ~/ffmpeg_sources
    wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
    tar xjvf last_x264.tar.bz2
    cd x264-snapshot*
    PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --enable-shared --enable-pic
    PATH="$HOME/bin:$PATH" make -j4
    make install
    make distclean

    #libfdk-aac
    cd ~/ffmpeg_sources
    wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master
    tar xzvf fdk-aac.tar.gz
    cd mstorsjo-fdk-aac*
    autoreconf -fiv
    ./configure --prefix="$HOME/ffmpeg_build" --enable-shared --enable-pic
    make -j4
    make install
    make distclean

    #libmp3lame
    sudo apt-get install nasm
    cd ~/ffmpeg_sources
    wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
    tar xzvf lame-3.99.5.tar.gz
    cd lame-3.99.5
    ./configure --prefix="$HOME/ffmpeg_build" --enable-nasm --enable-shared --enable-pic
    make -j4
    make install
    make distclean

    #libopus
    cd ~/ffmpeg_sources
    wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
    tar xzvf opus-1.1.tar.gz
    cd opus-1.1
    ./configure --prefix="$HOME/ffmpeg_build" --enable-shared --enable-pic
    make -j4
    make install
    make clean

    #libvpx
    cd ~/ffmpeg_sources
    wget http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-1.5.0.tar.bz2
    tar xjvf libvpx-1.5.0.tar.bz2
    cd libvpx-1.5.0
    PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-shared --enable-pic
    PATH="$HOME/bin:$PATH" make -j4
    make install
    make clean

    #ffmpeg
    cd ~/ffmpeg_sources
    wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
    tar xjvf ffmpeg-snapshot.tar.bz2
    cd ffmpeg
    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure
     --prefix="$HOME/ffmpeg_build"
     --pkg-config-flags="--static"
     --extra-cflags="-I$HOME/ffmpeg_build/include"
     --extra-cflags="-fPIC -m64 -I$HOME/ffmpeg_build/include"
     --extra-ldflags="-L$HOME/ffmpeg_build/lib"
     --bindir="$HOME/bin"
     --enable-pic
     --enable-shared
     --enable-gpl
     --enable-libass
     --enable-libfdk-aac
     --enable-libfreetype
     --enable-libmp3lame
     --enable-libopus
     --enable-libtheora
     --enable-libvorbis
     --enable-libvpx
     --enable-libx264
     --enable-nonfree
    PATH="$HOME/bin:$PATH" make -j4
    make install
    make distclean
    hash -r
  • node-mlt - setting argument for watermark

    3 avril 2016, par Ali Davudov

    I have get project where server get json file and media file and convert to xml. Server use mlt with node-mlt lib. My task is add watermark. I did it, but I can’t find any description for node-mlt method arguments except URL to file. node-mlt have example :

    var watermark = new MLT.Filter.Watermark({resource:'/home/jeffrey/Desktop/signature.jpg'});

    Does anybody know how I must setting opacity, size, position for this method ? Standard arguments for mlt this lib don’t recognize.

  • Qt 5.2 / OpenCV 2.4.8 - Can’t open video files via VideoCapture

    4 août 2015, par Zamahra

    I have a big problem that i can’t solve by myself. OpenCV itself works fine, but i’m not able to load videos. Here’s my code :

    PRO- File

    QT       += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = videoredux
    TEMPLATE = app

    INCLUDEPATH += C:/OpenCV/opencv_bin/install/include
    LIBS += -LC:\\OpenCV\\opencv_bin\\bin \
       libopencv_core248d \
       libopencv_highgui248d \
       libopencv_imgproc248d \
       libopencv_features2d248d \
       libopencv_calib3d248d \
       libopencv_video248d \


    SOURCES += main.cpp\
           mainwindow.cpp

    HEADERS  += mainwindow.h

    FORMS    += mainwindow.ui

    and the MainWindow Class :

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <qfiledialog>
    #include <iostream>
    #include
    #include <opencv2></opencv2>core/core.hpp>
    #include <opencv2></opencv2>highgui/highgui.hpp>
    #include <opencv2></opencv2>imgproc/imgproc.hpp>
    #include <opencv></opencv>cv.h>


    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
       ui->setupUi(this);
       ui->videoStatusLabel->setText("Kein Video geladen.");

       // SIGNALS &amp; SLOTS

       QObject::connect(ui->chooseVideoButton,SIGNAL(clicked()),
                    this,SLOT(chooseVideo()));
       QObject::connect(ui->startButton,SIGNAL(clicked()),
                    this,SLOT(startProcess()));

    }

    void MainWindow::chooseVideo(){

       QString fileName = QFileDialog::getOpenFileName(this,
            tr("Open Video"), "/home", tr("Video Files (*.avi *.mp4 *.mpeg *.mpg)"));
       qDebug() &lt;&lt; "Path:" &lt;&lt; fileName;
       ui->videoStatusLabel->setText(fileName);
    }

    void MainWindow::startProcess(){
       QString videoPath = ui->videoStatusLabel->text();
       QFileInfo video(videoPath);
       if(video.exists()){
           const std::string path = videoPath.toUtf8().constData();
           cv::VideoCapture capture(path);
           cv::Mat frame;

           if(!capture.isOpened()){
               qDebug() &lt;&lt; "Error, video not loaded";
           }

           cv::namedWindow("window",1);
           while(true)
           {
               bool success = capture.read(frame);
               if(success == false){
                   break;
               }
               cv::imshow("window",frame);
               cv::waitKey(20);
           }
           cv::waitKey(0);
       }
       else{
           qDebug() &lt;&lt; "Error, File doesn't exist";
       }
    }
    </iostream></qfiledialog>

    The paths are correct, I tried many different video formats but he never loads the videos. I’m running Qt on a Windows 8 machine and i have “K-Lite Codec Pack 10.2.0 Basic” and ffmpeg installed. The videos are playing properly with my video players. I also tried to copy the .dll to the working directory, searched for opencv dll’s in the system32 directory and rebuild OpenCV with mingw on this computer. I know that many people have the same problems, but none of their suggestions solved it. Does anyone know how to solve this problem ?

    Thank you very much !

    Nadine

    ----UPDATE---- I still can’t open video files, so I programmed the application on a Windows7 64-Bit system. It worked fine, but when I try to open the application on a Windows8 computer it still can’t open the file. It doesn’t matter which codecs are installed, because it generally runs on every Windows7 computer and fails on every Windows8 computer.. The same for older OpenCV-Versions. Is there a general problem with OpenCV and Windows8 ?