
Recherche avancée
Autres articles (78)
-
Organiser par catégorie
17 mai 2013, parDans 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, parUtilité
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 2011Contrairement à 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 ZamahraI 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.uiand 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 & 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() << "Path:" << 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() << "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() << "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 ?
-
Qt 5.2 / OpenCV 2.4.8 - Can’t open video files via VideoCapture
4 août 2015, par ZamahraI 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.uiand 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 & 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() << "Path:" << 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() << "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() << "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 RAZAI 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 ;


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


plugins {
id 'com.android.application'





android 
compileSdkVersion 30
buildToolsVersion "30.0.3"


defaultConfig {
 applicationId "com.reactive.myapplication"
 minSdkVersion 16
 targetSdkVersion 30
 versionCode 1
 versionName "1.0"

 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 externalNativeBuild {
 cmake {
 cppFlags ""
 }
 }
}
flavorDimensions "market"
productFlavors {
 google {
 dimension "market"
 ndk {
 // Since the App Bundle is used, there is no problem in packaging all these ABIs
 abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
 }
 }
 amazon {
 dimension "market"
 applicationIdSuffix ".amzn"
 ndk {
 // Amazon Appstore doesn't support multiple APKs for non-Amazon devices.
 // There is no point in x86 support here, as the majority of devices with the
 // Amazon Appstore are ARM-based. And it seems to be a common practice for other
 // apps in this market.
 abiFilters 'armeabi-v7a'
 }
 }
 huawei {
 dimension "market"
 applicationIdSuffix ".huawei"
 ndk {
 // Huawei App Gallery supports App Bundle format
 abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
 }
 }
}
sourceSets {
 main {
 // let gradle pack the shared library into the apk
 jniLibs.srcDirs = ['../ffmpeg-android-maker/output/lib']
 }
}

bundle {
 language {
 enableSplit = true
 }
 density {
 enableSplit = true
 }
 abi {
 enableSplit = true
 }
}

buildTypes {
 release {
 minifyEnabled false
 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 }
}
externalNativeBuild {
 cmake {
 path "src/main/cpp/CMakeLists.txt"
 version "3.10.2"
 }
}
compileOptions {
 sourceCompatibility JavaVersion.VERSION_1_8

 targetCompatibility JavaVersion.VERSION_1_8
}





dependencies


implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'







And this is error i am facing :
Build command failed.
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
ninja : Entering directory `/home/ali/AndroidStudioProjects/FfmpegApp/app/.cxx/cmake/amazonDebug/armeabi-v7a'


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