Recherche avancée

Médias (91)

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8863)

  • Compiling x265 with ffmpeg for Android and receiving errors

    5 juillet 2019, par m33ts4k0z

    Trying to compile x265 for use with arm64-v8a. After successuful build of x265 itself, I receive the following error when ffmpeg is about to compile :

    require_pkg_config libx265 x265 x265.h x265_api_get
    check_pkg_config libx265 x265 x265.h x265_api_get
    test_pkg_config libx265 x265 x265.h x265_api_get
    /root/ffmpeg_android/ffmpeg-android-1.6.3/ffmpeg-pkg-config --exists --print-errors x265
    check_func_headers x265.h x265_api_get -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -lx265
    test_ld cc -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -lx265
    test_cc -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib
    BEGIN /tmp/ffconf.xKyjnplW/test.c
       1   #include
       2   #include
       3   long check_x265_api_get(void) { return (long) x265_api_get; }
       4   int main(void) { int ret = 0;
       5    ret |= ((intptr_t)check_x265_api_get) & 0xFFFF;
       6   return ret; }
    END /tmp/ffconf.xKyjnplW/test.c
    /root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/aarch64-linux-android-clang -DANDROID -fpic -fpie -march=armv8-a --sysroot=/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -DANDROID -fpic -fpie -march=armv8-a -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/vpx/android/arm64-v8a/include -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x264/android/arm64-v8a/include/x264 -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/lame/android/arm64-v8a/include -DANDROID -fpic -fpie -march=armv8-a --static -mcpu=cortex-a57 -std=c11 -fPIE -fomit-frame-pointer -fPIC -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -c -o /tmp/ffconf.xKyjnplW/test.o /tmp/ffconf.xKyjnplW/test.c
    clang60: warning: argument unused during compilation: '-L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib' [-Wunused-command-line-argument]
    /root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/aarch64-linux-android-clang -Wl,-z,defs -Wl,--unresolved-symbols=report-all -march=armv8-a -L/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -Wl,-z,relro -Wl,-z,now -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/vpx/android/arm64-v8a/lib -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x264/android/arm64-v8a/lib -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/lame/android/arm64-v8a/lib -Wl,-z,defs -Wl,--unresolved-symbols=report-all -march=armv8-a -L/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -Wl,-z,relro -Wl,-z,now --static --sysroot=/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -mcpu=cortex-a57 -Wl,--as-needed -Wl,-z,noexecstack -fPIE -pie -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -o /tmp/ffconf.xKyjnplW/test /tmp/ffconf.xKyjnplW/test.o -lx265 -lgcc
    clang60: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
    /root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: skipping incompatible /root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib/libx265.a when searching for -lx265
    /root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: skipping incompatible /root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib/libx265.a when searching for -lx265
    /root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lx265
    clang60: error: linker command failed with exit code 1 (use -v to see invocation)
    ERROR: x265 not found using pkg-config

    I use ffmpeg 4.1.3 and the latest version of x265 sources. I use this project to compile and I have succeeded when building without x265. I compile on Debian Buster x64.

  • avformat/matroskadec : Accept more unknown-length elements

    17 mai 2019, par Andreas Rheinhardt
    avformat/matroskadec : Accept more unknown-length elements
    

    The current Matroska specifications mandate that only two elements may
    use an unknown-length length : Segments and clusters. But this was not
    always so : For the greater part of Matroska's existence, all master
    elements were allowed to make use of the unknown-length feature.

    And there were muxers creating such files : For several years
    libavformat's Matroska muxer used unknown-length for all master
    elements when the output wasn't seekable. This only stopped in March
    2010 with 2529bb30. And even afterwards it was possible (albeit
    unlikely) for libavformat to create unknown-length master elements
    that are in violation of today's specifications, namely if the master
    element was so big that the seek backwards to update the size could
    no longer be performed inside the AVIOContext's write buffer. This
    has only been fixed in October 2016 (with the patches that introduced
    support for writing CRC-32 elements).

    Libavformat's Matroska demuxer meanwhile has never really supported
    unknown-length elements besides segments and clusters. Support for the
    latter was hardcoded. This commit changes this : Now all master elements
    for which a syntax to parse them is available are supported. This
    includes the files produced by old versions of libavformat's muxer.

    More precisely, master elements that have unknown length and are about
    to be parsed (not skipped) are supported ; only a warning is emitted for
    them. For normal files, this means that level 1 elements after the
    clusters that are encountered after the clusters have been parsed (i.e.
    not because they are referenced by the seekhead at the beginning of the
    file) are still unsupported (they would be skipped at this point if
    their length were known).

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/matroskadec.c
  • Compiling FFMPEG with x265 has ERROR : x265 not found using pkg-config

    23 mars 2023, par timweiliu

    At first, I have a project with ffmpeg build support x264 for android in Mac OS.

    &#xA;&#xA;

    Now, I want to add x265 support.

    &#xA;&#xA;

    I have compiled the x265 with make & make install like this :

    &#xA;&#xA;

    [ 81%] Built target x265-static&#xA;[100%] Built target cli&#xA;Install the project...&#xA;-- Install configuration: "Release"&#xA;-- Up-to-date: /usr/local/lib/libx265.a&#xA;-- Up-to-date: /usr/local/include/x265.h&#xA;-- Up-to-date: /usr/local/include/x265_config.h&#xA;-- Up-to-date: /usr/local/lib/pkgconfig/x265.pc&#xA;-- Up-to-date: /usr/local/bin/x265&#xA;

    &#xA;&#xA;

    and then, I run this shell script :

    &#xA;&#xA;

    make distclean &#xA;&#xA;NDK_PATH=$NDK_HOME&#xA;NDK_ARM_PATH=${NDK_PATH}/platforms/android-9/arch-arm&#xA;NDK_ARM_BIN_PATH=${NDK_PATH}/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin&#xA;&#xA;CC=${NDK_ARM_BIN_PATH}/arm-linux-androideabi-gcc&#xA;&#xA;chmod &#x2B;x configure&#xA;chmod &#x2B;x version.sh&#xA;&#xA;if [ $APP_ABI = "armeabi-v7a" ]; then&#xA;LOCAL_CFLAGS="-O3 -DANDROID -fpic -I/usr/local/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon"&#xA;ABLES="--enable-asm --enable-thumb --enable-hwaccels --cpu=armv7-a --enable-neon"&#xA;elif [ $APP_ABI = "armeabi" ]; then&#xA;LOCAL_CFLAGS="-O3 -DANDROID -fpic -I/usr/local/include"&#xA;ABLES="--disable-neon"&#xA;fi&#xA;echo $LOCAL_CFLAGS&#xA;echo $ABLES&#xA;echo $PKG_CONFIG_PATH&#xA;&#xA;echo "开始configure"&#xA;./configure \&#xA;--disable-yasm \&#xA;--disable-debug \&#xA;--disable-doc \&#xA;--disable-ffmpeg \&#xA;--disable-ffprobe \&#xA;--disable-ffplay \&#xA;--disable-ffserver \&#xA;--disable-stripping \&#xA;--disable-avdevice \&#xA;--disable-postproc \&#xA;--disable-network \&#xA;--enable-pthreads \&#xA;--enable-small \&#xA;--disable-encoders \&#xA;--enable-encoder=libx264 \&#xA;--enable-encoder=libfdk_aac \&#xA;--enable-libx265 \&#xA;--pkg-config-flags="--static" \&#xA;...&#xA;&#xA;echo "开始make"&#xA;make -j4&#xA;&#xA;echo "开始install"&#xA;sudo make install&#xA;

    &#xA;&#xA;

    It results in an error :

    &#xA;&#xA;

    -O3 -DANDROID -fpic -I/usr/local/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon&#xA;--enable-asm --enable-thumb --enable-hwaccels --cpu=armv7-a --enable-neon&#xA;/usr/local/lib/pkgconfig&#xA;开始configure&#xA;ERROR: x265 not found using pkg-config&#xA;

    &#xA;&#xA;

    I looked at the config.log :

    &#xA;&#xA;

    use_pkg_config x265 x265.h x265_api_get&#xA;check_pkg_config x265 x265.h x265_api_get&#xA;false --exists --print-errors x265&#xA;ERROR: x265 not found using pkg-config&#xA;

    &#xA;&#xA;

    but, the file of x265.pc is existing on the path. Its content is :

    &#xA;&#xA;

    prefix=/usr/local&#xA;exec_prefix=${prefix}&#xA;libdir=${exec_prefix}/lib&#xA;includedir=${prefix}/include&#xA;&#xA;Name: x265&#xA;Description: H.265/HEVC video encoder&#xA;Version: 0.0&#xA;Libs: -L${libdir} -lx265&#xA;Libs.private: -lstdc&#x2B;&#x2B; -lm -lgcc -ldl -lgcc -ldl&#xA;Cflags: -I${includedir}&#xA;

    &#xA;&#xA;

    and the x265.h is in include path too.

    &#xA;&#xA;

    I run

    &#xA;&#xA;

    pkg-config --list-all&#xA;

    &#xA;&#xA;

    It also finds x265 :

    &#xA;&#xA;

    TIMWEILIU-MC0:libSrc timweiliu$ pkg-config --list-all&#xA;libecpg_compat libecpg_compat - PostgreSQL libecpg_compat library&#xA;fdk-aac        Fraunhofer FDK AAC Codec Library - AAC codec library&#xA;apr-1          APR - The Apache Portable Runtime library&#xA;apr-util-1     APR Utils - Companion library for APR&#xA;libpq          libpq - PostgreSQL libpq library&#xA;libpcre        libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support&#xA;libpgtypes     libpgtypes - PostgreSQL libpgtypes library&#xA;libecpg        libecpg - PostgreSQL libecpg library&#xA;x264           x264 - H.264 (MPEG4 AVC) encoder library&#xA;x265           x265 - H.265/HEVC video encoder&#xA;libpcreposix   libpcreposix - PCREPosix - Posix compatible interface to libpcre&#xA;libiodbc       iODBC - iODBC Driver Manager&#xA;

    &#xA;&#xA;

    Now, I don’t know why it does not work.&#xA;Why does pkg-config still not find the x265 ?

    &#xA;