Recherche avancée

Médias (91)

Autres articles (105)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (5349)

  • compile ffmpeg report "libprotokit.a : No such file or directory"

    5 juillet 2022, par razvan

    On kubuntu 21.04 I successfully compiled ffmpeg from latest snapshot.

    


    Now I try to add "—enable-libzmq" to configure command :

    


    PATH="$HOME/.ffmpeg/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-ldflags="-L$HOME/.ffmpeg/build/lib" \
  --extra-libs="-lpthread -lm" \
  --ld="g++" \
  --bindir="$HOME/.ffmpeg/bin" \
  --extra-version="...." \
  --arch=x86_64 \
  --enable-gpl \
  --enable-version3 \
...
  --enable-libxml2 \
  --enable-lv2 \
  --enable-libxcb \
  --enable-libxcb-shm \
  --enable-libzmq \
  --enable-nonfree  && \
PATH="$HOME/.ffmpeg/bin:$PATH" make -j4 && \
make install


    


    and configure end with this error in config.log :

    


    require_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new
check_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new
test_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new
pkg-config --exists --print-errors libzmq >= 4.2.1
check_func_headers zmq.h zmq_ctx_new -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -lzmq -lstdc++ -lpthread -lrt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lsodium -pthread -lpgm -lpthread -lm -lnorm libprotokit.a -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm -lbsd -ldl -lmd
test_ld cc -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -lzmq -lstdc++ -lpthread -lrt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lsodium -pthread -lpgm -lpthread -lm -lnorm libprotokit.a -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm -lbsd -ldl -lmd
test_cc -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -pthread libprotokit.a
BEGIN /tmp/ffconf.AIehU3Rh/test.c
    1   #include 
    2   #include 
    3   long check_zmq_ctx_new(void) { return (long) zmq_ctx_new; }
    4   int main(void) { int ret = 0;
    5    ret |= ((intptr_t)check_zmq_ctx_new) & 0xFFFF;
    6   return ret; }
END /tmp/ffconf.AIehU3Rh/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/home/raz/.ffmpeg/build/include -std=c11 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1 -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/home/raz/.ffmpeg/build/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/openjpeg-2.3 -I/home/raz/.ffmpeg/build/include/opus -I/home/raz/.ffmpeg/build/include/opus -D_REENTRANT -pthread -I/home/raz/.ffmpeg/build/include/libvmaf -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -pthread libprotokit.a -c -o /tmp/ffconf.AIehU3Rh/test.o /tmp/ffconf.AIehU3Rh/test.c
gcc: error: libprotokit.a: No such file or directory
ERROR: libzmq >= 4.2.1 not found using pkg-config


    


    libzmq3-dev is installed and
    
I have this libprotokit.a in
    
/usr/lib/x86_64-linux-gnu/libprotokit.a

    


    Why configure does not find this library ?

    


    libzmq.pc exist on the machine

    


    dpkg -L libzmq3-dev|grep pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libzmq.pc

cat /usr/lib/x86_64-linux-gnu/pkgconfig/libzmq.pc 

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: libzmq
Description: 0MQ c++ library
Version: 4.3.4
Libs: -L${libdir} -lzmq
Libs.private: -lstdc++  -lpthread -lrt
Requires.private:  krb5-gssapi libsodium openpgm-5.3 >= 5.3 norm libbsd
Cflags: -I${includedir} 


    


  • iOS Recorded Video Playback on Android

    1er mars 2015, par Nirav

    I am trying to record video from iPhone device using UIImagePickerController and able to store it in MP4 format. The same video is uploaded on the Amazon S3 cloud.

    When I try to play the same video on Android devices, it fails to play with an error, cannot play.

    I searched forums/google and found that ffmpeg should be used to compress the video before uploading. I want to do the compression on the phone itself rather than on the server. Which is the best way to achieve this ?

    Regards,

    Nirav

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

    


    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 It is cmake ,
it is image of cmake.txt

    


    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