Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (78)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (4721)

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

    21 février 2014, 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&#39;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 ?

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

  • Command build failed ndk

    1er janvier 2021, par ALI RAZA

    I want to integrate ffmpeg lib in my android app . So i am using ndk ,but i am stuck on this issue,I dont know why the error is appearing ,Thanks in advance ;

    &#xA;

    It is the gradle code that i am using in my app and also the ffmpeg-android-maker path is provided

    &#xA;

    plugins {&#xA;id &#x27;com.android.application&#x27;&#xA;

    &#xA;

    &#xA;

    android &#xA;compileSdkVersion 30&#xA;buildToolsVersion "30.0.3"

    &#xA;

    defaultConfig {&#xA;    applicationId "com.reactive.myapplication"&#xA;    minSdkVersion 16&#xA;    targetSdkVersion 30&#xA;    versionCode 1&#xA;    versionName "1.0"&#xA;&#xA;    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"&#xA;    externalNativeBuild {&#xA;        cmake {&#xA;            cppFlags ""&#xA;        }&#xA;    }&#xA;}&#xA;flavorDimensions "market"&#xA;productFlavors {&#xA;    google {&#xA;        dimension "market"&#xA;        ndk {&#xA;            // Since the App Bundle is used, there is no problem in packaging all these ABIs&#xA;            abiFilters &#x27;x86&#x27;, &#x27;x86_64&#x27;, &#x27;armeabi-v7a&#x27;, &#x27;arm64-v8a&#x27;&#xA;        }&#xA;    }&#xA;    amazon {&#xA;        dimension "market"&#xA;        applicationIdSuffix ".amzn"&#xA;        ndk {&#xA;            // Amazon Appstore doesn&#x27;t support multiple APKs for non-Amazon devices.&#xA;            // There is no point in x86 support here, as the majority of devices with the&#xA;            // Amazon Appstore are ARM-based. And it seems to be a common practice for other&#xA;            // apps in this market.&#xA;            abiFilters &#x27;armeabi-v7a&#x27;&#xA;        }&#xA;    }&#xA;    huawei {&#xA;        dimension "market"&#xA;        applicationIdSuffix ".huawei"&#xA;        ndk {&#xA;            // Huawei App Gallery supports App Bundle format&#xA;            abiFilters &#x27;x86&#x27;, &#x27;x86_64&#x27;, &#x27;armeabi-v7a&#x27;, &#x27;arm64-v8a&#x27;&#xA;        }&#xA;    }&#xA;}&#xA;sourceSets {&#xA;    main {&#xA;        // let gradle pack the shared library into the apk&#xA;        jniLibs.srcDirs = [&#x27;../ffmpeg-android-maker/output/lib&#x27;]&#xA;    }&#xA;}&#xA;&#xA;bundle {&#xA;    language {&#xA;        enableSplit = true&#xA;    }&#xA;    density {&#xA;        enableSplit = true&#xA;    }&#xA;    abi {&#xA;        enableSplit = true&#xA;    }&#xA;}&#xA;&#xA;buildTypes {&#xA;    release {&#xA;        minifyEnabled false&#xA;        proguardFiles getDefaultProguardFile(&#x27;proguard-android-optimize.txt&#x27;), &#x27;proguard-rules.pro&#x27;&#xA;    }&#xA;}&#xA;externalNativeBuild {&#xA;    cmake {&#xA;        path "src/main/cpp/CMakeLists.txt"&#xA;        version "3.10.2"&#xA;    }&#xA;}&#xA;compileOptions {&#xA;    sourceCompatibility JavaVersion.VERSION_1_8&#xA;&#xA;    targetCompatibility JavaVersion.VERSION_1_8&#xA;}&#xA;

    &#xA;

    &#xA;

    dependencies

    &#xA;

    implementation &#x27;androidx.appcompat:appcompat:1.1.0&#x27;&#xA;implementation &#x27;com.google.android.material:material:1.1.0&#x27;&#xA;implementation &#x27;androidx.constraintlayout:constraintlayout:1.1.3&#x27;&#xA;testImplementation &#x27;junit:junit:4.&#x2B;&#x27;&#xA;androidTestImplementation &#x27;androidx.test.ext:junit:1.1.1&#x27;&#xA;androidTestImplementation &#x27;androidx.test.espresso:espresso-core:3.2.0&#x27;&#xA;

    &#xA;

    &#xA;

    And It is cmake ,&#xA;it is image of cmake.txt

    &#xA;

    And this is error i am facing :&#xA;Build command failed.&#xA;Error while executing process /home/ali/Android/Sdk/cmake/3.10.2.4988404/bin/ninja with arguments -C /home/ali/AndroidStudioProjects/FfmpegApp/app/.cxx/cmake/amazonDebug/armeabi-v7a native-lib&#xA;ninja : Entering directory `/home/ali/AndroidStudioProjects/FfmpegApp/app/.cxx/cmake/amazonDebug/armeabi-v7a'

    &#xA;

    ninja : error : '/home/ali/AndroidStudioProjects/FfmpegApp/app/src/main/ffmpeg-android-maker/output/lib/armeabi-v7a/libavutil.so', needed by '/home/ali/AndroidStudioProjects/FfmpegApp/app/build/intermediates/cmake/amazonDebug/obj/armeabi-v7a/libnative-lib.so', missing and no known rule to make it

    &#xA;