Recherche avancée

Médias (91)

Autres articles (16)

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (5732)

  • build ffmpeg library with a sample project and use it in eclipse on Linux operating system

    22 juillet 2015, par Harpreet Kaur

    I 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 library

    My 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

    3 août 2023, par Vyacheslav Parinov

    I'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"?>


    


    


    &#xA;&#xA;&#xA;&#xA;    &#xA;        &#xA;            <action></action>&#xA;&#xA;            <category></category>&#xA;        &#xA;    &#xA;&#xA;

    &#xA;&#xA;

    My settings.gradle file

    &#xA;

    pluginManagement {&#xA;repositories {&#xA;    google()&#xA;    mavenCentral()&#xA;    gradlePluginPortal()&#xA;}&#xA;

    &#xA;

    &#xA;

    dependencyResolutionManagement {&#xA;repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)&#xA;repositories {&#xA;    google()&#xA;    mavenCentral()&#xA;}&#xA;

    &#xA;

    &#xA;rootProject.name = "TimelapseLite"&#xA;include ':app'

    &#xA;

    My build.gradle file

    &#xA;

    plugins {&#xA;    id &#x27;com.android.application&#x27;&#xA;}&#xA;&#xA;android {&#xA;    namespace &#x27;ae.vpdev.timelapselite&#x27;&#xA;    compileSdk 33&#xA;&#xA;defaultConfig {&#xA;    applicationId "ae.vpdev.timelapselite"&#xA;    minSdk 26&#xA;    targetSdk 33&#xA;    versionCode 1&#xA;    versionName "1.0"&#xA;&#xA;    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"&#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;compileOptions {&#xA;    sourceCompatibility JavaVersion.VERSION_1_8&#xA;    targetCompatibility JavaVersion.VERSION_1_8&#xA;}&#xA;

    &#xA;

    &#xA;

    dependencies

    &#xA;

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

    &#xA;

    &#xA;

    My code in MainActivity

    &#xA;

    private void convertImagesToVideo() {&#xA;    StringBuilder imageListFileContent = new StringBuilder();&#xA;    for (Uri imageUri : selectedImages) {&#xA;        imageListFileContent.append("file &#x27;").append(imageUri.getPath()).append("&#x27;\n");&#xA;    }&#xA;&#xA;    try {&#xA;        File imageListFile = new File(getCacheDir(), "image_list.txt");&#xA;        FileWriter writer = new FileWriter(imageListFile);&#xA;        writer.append(imageListFileContent.toString());&#xA;        writer.flush();&#xA;        writer.close();&#xA;&#xA;        File outputFile = new File(getExternalFilesDir(null), "output_video.mp4");&#xA;        String outputFilePath = outputFile.getAbsolutePath();&#xA;&#xA;        String command = "-f concat -safe 0 -i " &#x2B; imageListFile.getAbsolutePath() &#x2B;&#xA;                " -vf \"scale=-2:720\" -r 30 -c:v libx264 -pix_fmt yuv420p " &#x2B; outputFilePath;&#xA;&#xA;        int rc = FFmpeg.execute(command);&#xA;&#xA;        if (rc == RETURN_CODE_SUCCESS) {&#xA;            Log.d("FFmpeg", "Video conversion completed successfully");&#xA;            // Now you can use the outputFilePath to play or share the video&#xA;        } else {&#xA;            Log.d("FFmpeg", "Video conversion failed");&#xA;        }&#xA;    } catch (IOException e) {&#xA;        e.printStackTrace();&#xA;    }&#xA;}&#xA;

    &#xA;

  • Including ffmpeg in qt project on windows causes the program to unexpectedly finish

    1er avril 2016, par Burn-Man

    I 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 -1073741819

    I 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.cpp

    main.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.