
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (70)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (9286)
-
build ffmpeg library with a sample project and use it in eclipse on Linux operating system
22 juillet 2015, par Harpreet KaurI want to ffmpeg project in eclipse on linux operating system
I am following the link : http://dmitrydzz-hobby.blogspot.in/2012/04/how-to-build-ffmpeg-and-use-it-in.html
I have successfully add the ndk in eclipse but it still shows some error in loading the ffmpeg libraryMy logcat contains error :
Building file: ../jni/ffmpeg/libavcodec/x86/dct32_sse.asm
Invoking: GCC Assembler
as -o "jni/ffmpeg/libavcodec/x86/dct32_sse.o" "../jni/ffmpeg/libavcodec/x86/dct32_sse.asm"
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm: Assembler messages:
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:1: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:2: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:3: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:4: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:5: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:6: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:7: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:7: Error: no such instruction: `you can redistribute it and/or'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:8: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:9: Error: junk at end of line, first unrecognized character is `*'
../jni/ffmpeg/libavcodec/x86/dct32_sse.asm:9: Error: no such instruction: `either' -
How to import FFmpeg into Android project
30 mai, par Vyacheslav ParinovI'm trying to convert series of images into video.
For that I'm adding FFmpeg into my Android project.
However it is not adding properly, so I can't import class FFmpeg into the code.
in the statement "int rc = FFmpeg.execute(command) ;" FFmpeg is highlighted in red.


I think something wrong with libraries. Could you please give suggestion how import libraries correctly ?


My Manifest file below


<?xml version="1.0" encoding="utf-8"?>









 
 
 <action></action>

 <category></category>
 
 





My settings.gradle file


pluginManagement {
repositories {
 google()
 mavenCentral()
 gradlePluginPortal()
}





dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
 google()
 mavenCentral()
}




rootProject.name = "TimelapseLite"
include ':app'


My build.gradle file


plugins {
 id 'com.android.application'
}

android {
 namespace 'ae.vpdev.timelapselite'
 compileSdk 33

defaultConfig {
 applicationId "ae.vpdev.timelapselite"
 minSdk 26
 targetSdk 33
 versionCode 1
 versionName "1.0"

 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
 release {
 minifyEnabled false
 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 }
}
compileOptions {
 sourceCompatibility JavaVersion.VERSION_1_8
 targetCompatibility JavaVersion.VERSION_1_8
}





dependencies


implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.arthenica:mobile-ffmpeg-full:4.5.LTS'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'





My code in MainActivity


private void convertImagesToVideo() {
 StringBuilder imageListFileContent = new StringBuilder();
 for (Uri imageUri : selectedImages) {
 imageListFileContent.append("file '").append(imageUri.getPath()).append("'\n");
 }

 try {
 File imageListFile = new File(getCacheDir(), "image_list.txt");
 FileWriter writer = new FileWriter(imageListFile);
 writer.append(imageListFileContent.toString());
 writer.flush();
 writer.close();

 File outputFile = new File(getExternalFilesDir(null), "output_video.mp4");
 String outputFilePath = outputFile.getAbsolutePath();

 String command = "-f concat -safe 0 -i " + imageListFile.getAbsolutePath() +
 " -vf \"scale=-2:720\" -r 30 -c:v libx264 -pix_fmt yuv420p " + outputFilePath;

 int rc = FFmpeg.execute(command);

 if (rc == RETURN_CODE_SUCCESS) {
 Log.d("FFmpeg", "Video conversion completed successfully");
 // Now you can use the outputFilePath to play or share the video
 } else {
 Log.d("FFmpeg", "Video conversion failed");
 }
 } catch (IOException e) {
 e.printStackTrace();
 }
}



-
Including ffmpeg in qt project on windows causes the program to unexpectedly finish
1er avril 2016, par Burn-ManI am trying to include ffmpeg in my qt project on windows. I am running QT4 and compiling with microsoft visual compiler 2010 on 32 bit windows 7. I am trying to include ffmpeg 2.8 which I got the dev and shared downloads from zeranoe. When I run it I get the following output :
Starting (executable path)...
The program has unexpectedly finished.
(executable path) exited with code -1073741819I am able to produce this output with the following :
ffmpeg_test.pro :
QT += core
TARGET = ffmpeg_test
INCLUDEPATH += (ffmpeg dev path)/include
LIBS += -L(ffmpeg dev path)/lib
LIBS += -lavformat
SOURCES += main.cppmain.cpp :
extern "C"
{
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#include <libavformat></libavformat>avformat.h>
}
int main(int argc, char *argv[])
{
av_register_all();
return 0;
}I have put the .dll files from the ffmpeg share bin into the same folder that QT builds ffmpeg_test.exe into. I have also confirmed that they are found using dependency walker which shows a question mark when they are not in that directory and the avformat-56.dll file path when they are (the fact that the .dll files are found does not effect the output of the program).
Dependency walker does reveal that something weird is going on as there are no expected functions, but the functions found in avformat-56.dll look correct. I also have ran Dumpbin.exe /EXPORTS on avformat.lib and it also looks fine (I can post output if it would be helpful). It is worth noting that I have included this version of ffmpeg in a different application on this machine, it was not a qt project however. That project generated its make file with CMake rather than QMake and was built with Microsoft Visual C++ 2010 rather than QT Creator.
I have also included other .lib/.dll pairs in qt and they have no problems. I am noticing two differences from those pairs. First in the ffmpeg-dev lib folder instead of having only .lib files (as is the case for all my other .lib/.dll pairs) I also have a .def and a .dll.a file for each library. Second ffmpeg is a c library whereas all my other included libraries are c++.
update 3/29 :
I have tried replacing the LIBS lines in my .pro with both of the following :
LIBS += (ffmpeg dev path)/lib/avformat.lib
LIBS += (ffmpeg dev path)/lib/libavformat.dll.a
Both give the same error message. I have also tried adding the following to my .pro file also with no effect.
DEFINES += __STDC_CONSTANT_MACROS
QMAKE_CXX_FLAGS += -D_STDC_CONSTANT_MACROS
Additionally I tried adding
#define inline __inline
to main.cpp as suggested on the ffmpeg website. Any ideas of things to try would be hugely appreciated !update 3/31 :
I have tried to start over with a new Windows build environment but the result remains unchanged with the test code above. (The new environment was able to run a hello world program).
My process for setting up this environment was to install a fresh version of 32 bit windows 7. Install Visual C++ 2010 Express from the Visual Studio 2010 Express All-in-one ISO. Install Qt 4.8.6 for 32 bit windows and Visual Studio 2010. And finally install Qt Creator 2.5.2. To set up Qt creator I went under tools->options and told it where to find the Qt 4.8.6 qmake. I downloaded the dev and shared builds for ffmpeg 2.8 from Zeranoe. I was missing stdint.h and inttypes so I downloaded them and put the files in /include/libavutil. Then I corrected any of the header files that complained from to "stdint.h" ect. I then put the dll files from ffmpeg-2.8-win32-shared/bin into the folder where qt was building ffmpeg_test ffmpeg_test-build-desktop-Qt_4_8_6__4_8_6__Release/release.