Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (112)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (9918)

  • Compile error for a simple library in Android using latest FFmpeg library with NDK

    21 mars 2017, par satyres

    I’m trying to get FFmpeg working in Android , and after successfuly compiled it on Ubuntu 64bit , and created the Android.mk under source/ffmpeg-3.4.2/android/arm folder and also the Android.mk in my own Android project
     ! i’m unable to compile a simple program and create the .so file !
    By the way i’ve searched over the net and in Stackoverflow for 2 days now without luck !
    here is the code Android.mk

    LOCAL_PATH:= $(call my-dir)
    include $(CLEAR_VARS)
    LOCAL_MODULE    := MyLibrary
    LOCAL_SRC_FILES := MyNativeFunctions.c
    LOCAL_LDLIBS := -lz -llog
    LOCAL_STATIC_LIBRARIES := libavformat_static libavcodec_static libavutil_static
    include $(BUILD_SHARED_LIBRARY)

    $(call import-module,ffmpeg-3.2.4/android/arm)

    The native functions

       #include <libavformat></libavformat>avformat.h>
       #include <libavcodec></libavcodec>avcodec.h>
       #include <libavutil></libavutil>avutil.h>

       #include <android></android>log.h>
       #define LOG_TAG "mylib"
       #define LOGI(...)  __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
       #define LOGE(...)  __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
       jint Java_com_example_home_hellondk_MyNativeFunctions_TestNdk(JNIEnv * env, jobject this, jstring filename)
       {
            av_register_all();

    return 0;
    }

    when i use NDK-BUILD here is the error i got :

    /home/home/Android/Sdk/ndk-bundle/sources/ffmpeg-3.2.4/android/arm/lib/libavformat.a: error adding symbols: File in wrong format
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [obj/local/arm64-v8a/libMyLibrary.so] Error 1

    [EDIT]
    Build_android.sh

    #!/bin/bash
    NDK=/home/home/Android/Sdk/ndk-bundle
    SYSROOT=$NDK/platforms/android-24/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    function build_one
    {
    ./configure \
    --prefix=$PREFIX \
    --disable-shared \
    --enable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    [EDIT]
    The problem has been solved by adding the missing library in
    LOCAL_STATIC_LIBRARIES := libavformat_static libavcodec_static libswscale_static libavutil_static libswresample_static
    and for all users of Android Studio do not forget to add this line to your gradle otherwise it won’t work.

    sourceSets.main {
           jni.srcDirs = []
           jniLibs.srcDir 'src/main/libs'
       }

    Best regards

  • Undefined symbols av_register_all()

    8 mai 2018, par JaSHin

    Good day,

    I am beginner in Objective-C and Xcode IDE. I am trying use ffmpeg in my iOS application. I cloned https://github.com/kewlbear/FFmpeg-iOS-build-script and build for arm64 and x86_64.

    When I wanted to build app it crashed with

    Ld /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator/CPP3.app/CPP3 normal x86_64
    cd /Volumes/sedy/xcode/CPP3
    export IPHONEOS_DEPLOYMENT_TARGET=9.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -L/Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator -L/Volumes/sedy/xcode/CPP3/CPP3/ffmpeg/lib -F/Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator -filelist /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Intermediates/CPP3.build/Debug-iphonesimulator/CPP3.build/Objects-normal/x86_64/CPP3.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.1 -Xlinker -objc_abi_version -Xlinker 2 -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale -framework AVFoundation -liconv -lbz2 -Xlinker -dependency_info -Xlinker /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Intermediates/CPP3.build/Debug-iphonesimulator/CPP3.build/Objects-normal/x86_64/CPP3_dependency_info.dat -o /Users/nikolajpognerebko/Library/Developer/Xcode/DerivedData/CPP3-eowdhpsbeagmxydsrsscofhtuwtl/Build/Products/Debug-iphonesimulator/CPP3.app/CPP3

    Undefined symbols for architecture x86_64:
     "av_register_all()", referenced from:
         Decoder::Decoder() in ViewController.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    There is zipped project on OneDrive http://1drv.ms/1KkPAia because it is a best way to explain my problem.

    Please help me and explain, what this problem arose.

    Thanks very much.

  • Unable to use concat in stripped down version of ffmpeg

    29 juillet 2020, par Amit Bhandari

    I have compiled ffmpeg for my android app to have only essential components. I have enabled following components.

    &#xA;

    --disable-everything \&#xA;--enable-demuxer=concat \&#xA;--enable-muxer=concat,mp4 \&#xA;--enable-protocol=file,subfile \&#xA;--enable-filter=amix,adelay,volume \&#xA;

    &#xA;

    But when I am trying to concatenate mp4 files using following command

    &#xA;

    ffmpeg -y -f concat -safe 0 -i files.txt -c copy output.mp4&#xA;

    &#xA;

    I am receiving following error

    &#xA;

    [concat @ 0x7bd7d14400] Impossible to open &#x27;file1.mp4&#x27;&#xA;files.txt: Invalid data found when processing input&#xA;

    &#xA;

    Here is complete ffmpeg output for reference

    &#xA;

        Command execution failed with rc=1 and the output below.&#xA;Command execution failed ffmpeg version v4.3-dev-2955 Copyright (c) 2000-2020 the FFmpeg developers&#xA;      built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)&#xA;      configuration: --cross-prefix=aarch64-linux-android- --sysroot=/home/amit/Android/Sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/amit/work/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang&#x2B;&#x2B; --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --disable-openssl --disable-xmm-clobber-test --enable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --d  libavutil      56. 42.102 / 56. 42.102&#xA;      libavcodec     58. 78.102 / 58. 78.102&#xA;      libavformat    58. 42.100 / 58. 42.100&#xA;      libavdevice    58.  9.103 / 58.  9.103&#xA;      libavfilter     7. 77.101 /  7. 77.101&#xA;      libswscale      5.  6.101 /  5.  6.101&#xA;      libswresample   3.  6.100 /  3.  6.100&#xA;    [concat @ 0x7bd7d14400] Impossible to open &#x27;absolute path here/1.mp4&#x27;&#xA;    absolute path here/files.txt: Invalid data found when processing input&#xA;Command execution 7&#xA;

    &#xA;

    Exact same command works when I compile complete ffmpeg. What components I might be missing for getting this error ? Help is appreciated.

    &#xA;