Recherche avancée

Médias (91)

Autres articles (65)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5963)

  • Build FFmpeg with Freetype2 for ARM

    28 avril 2016, par Pawel Cala

    I’m trying to build FFmpeg binary file with freetype library included ( I need it for drawtext filter ). Unfortunately I cannot configure ffmpeg properly and every try ends with "freetype not found" error.

    PS I’ve tried to build guardian-ffmpeg project but i’m getting errors during configure process.

    PS2 Building plain ffmpeg works perfectly well

    Configuration script :

    make distclean &./configure --target-os=linux \
    --cross-prefix=arm-linux-androideabi- \
    --arch=arm \
    --cpu=armv7-a \
    --enable-libfreetype --enable-filter=drawtext \ #!Freetype params
    --disable-network \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --enable-protocol=file \
    --sysroot=${ANDROID_NDK_ROOT_PATH}/platforms/${ANDROID_API_VERSION}/arch-arm \
    --prefix=build/armeabi-v7a \
    --disable-asm \
    --extra-cflags='-DANDROID -Ifreetype2/ -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp' \
    --extra-ldflags='-Wl,--fix-cortex-a8 -Lfreetype2/ -L../android-libs -Wl,-rpath-link,../android-libs' \
    --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
    make -j6 && make install || exit 0

    Directories sctructure :

    ffmpeg/
      -ffmpeg dirs/
      -freetype2/
      -rest of ffmpeg files ( including configure, make, etc )

    I’ve checked patch sources in guardian-project and I’ve found that ffmpeg configure file might need some changes in require_libfreetype method ?!

    Thanks in advance ( and sorry for my bad english )

    EDIT :
    Building on OSX Mavericks,
    Last 3 lines of config.log ; OSX hasn’t got pkg-config therefore false in 2nd line :

    require_libfreetype
    false --exists --print-errors freetype
    ERROR: freetype not found

    EDIT :
    SOLUTION !!!

    I’ve manadged to solve my issue. I’ve used Xubuntu 14.04 64bit + Freetype 2.5.3 + newest FFmpeg repo + install linux package "pkg_config" and small modifications in ffmpeg configure script ( find pkg_config and check initialization variable )

    config file for freetype :

    NDK_BASE=/home/dpc/Documents/android-ndk-r9d/
    NDK_PROCESSOR=x86_64
    NDK_PLATFORM_LEVEL=9
    NDK_ABI=arm
    NDK_COMPILER_VERSION=4.6

    # Android NDK setup
    NDK_PLATFORM_LEVEL=9
    NDK_ABI=arm
    NDK_COMPILER_VERSION=4.6
    NDK_SYSROOT=$NDK_BASE/platforms/android-$NDK_PLATFORM_LEVEL/arch-$NDK_ABI
    NDK_UNAME=`uname -s | tr '[A-Z]' '[a-z]'`
    if [ $NDK_ABI = "x86" ]; then
       HOST=i686-linux-android
       NDK_TOOLCHAIN=$NDK_ABI-$NDK_COMPILER_VERSION
    else
       HOST=$NDK_ABI-linux-androideabi
       NDK_TOOLCHAIN=$HOST-$NDK_COMPILER_VERSION
    fi
    NDK_TOOLCHAIN_BASE=$NDK_BASE/toolchains/$NDK_TOOLCHAIN/prebuilt/$NDK_UNAME-$NDK_PROCESSOR
    echo "dpc:" $NDK_TOOLCHAIN_BASE

    CC="$NDK_TOOLCHAIN_BASE/bin/$HOST-gcc --sysroot=$NDK_SYSROOT"
    LD=$NDK_TOOLCHAIN_BASE/bin/$HOST-ld
    STRIP=$NDK_TOOLCHAIN_BASE/bin/$HOST-strip
    PREFIX=$(pwd)/build

    simple_config(){
    make clean
    ./configure --host=arm-linux-androideabi --without-zlib --without-png --prefix=
    make -j4
    make install DESTDIR=$(pwd)
    }

    complex_config(){

       ./configure \
       CC="$CC" \
       LD="$LD" \
       CFLAGS="-std=gnu99 -mcpu=cortex-a8 -marm -mfloat-abi=softfp -mfpu=neon" \
       --host=$HOST \
       --with-sysroot="$NDK_SYSROOT" \
       --enable-static \
       --disable-shared \
       --prefix=$PREFIX
       --without-bzip2

       make -j4
       make install
    }


    make clean
    complex_config

    ffmpeg config file :

    #!/bin/sh

    ANDROID_NDK_ROOT_PATH=/home/dpc/Documents/android-ndk-r9d
    ANDROID_API_VERSION=android-9
    #export PATH=${ANDROID_NDK_ROOT_PATH}:${ANDROID_NDK_ROOT_PATH}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/:$PATH
    export PATH=${ANDROID_NDK_ROOT_PATH}:${ANDROID_NDK_ROOT_PATH}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/:$PATH
    echo $PATH
    #export PKG_CONFIG_PATH=/home/dpc/Documents/freetype-2.5.3/build/lib/pkgconfig/
    #echo $PKG_CONFIG_PATH

    #armv7-a neon
    #export ARCH=armeabi-v7a-neon
    #./configure --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a --sysroot=${ANDROID_NDK_ROOT_PATH}/platforms/${ANDROID_API_VERSION}/arch-arm --disable-avdevice --disable-decoder=h264_vdpau  --prefix=build/armeabi-v7a-neon --extra-cflags='-DANDROID -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-Wl,--fix-cortex-a8 -L../android-libs -Wl,-rpath-link,../android-libs' --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
    #make -j6 && make install && make distclean|| exit 0

    #armv7-a
    export ARCH=armeabi-v7a
    ./configure --target-os=linux \
    --cross-prefix=arm-linux-androideabi- \
    --arch=arm \
    --enable-libfreetype \
    --cpu=armv7-a \
    --sysroot=${ANDROID_NDK_ROOT_PATH}/platforms/${ANDROID_API_VERSION}/arch-arm \
    --disable-avdevice \
    --disable-decoder=h264_vdpau  \
    --prefix=build/armeabi-v7a \
    --extra-cflags='-DANDROID -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp' \
    --extra-ldflags='-Wl,--fix-cortex-a8 -L../android-libs -Wl,-rpath-link,../android-libs' \
    --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
    make -j6 && make install && make distclean|| exit 0

    Hope it helps someone (cc : @SinhHo )

  • OpenGL (GLEW) + FFMPEG + VS2010 release build

    6 décembre 2015, par rickhik

    Currently I am working on a application that uses OpenGL (GLEW) and FFMPEG (libav’s) in Visual Studio 2010. The GLEW libs are included as Additional Libraries. The libav is set via a header file with extern "c" and pragma comment lib.

    The application opens a OpenGL window which draws some quads with textures via FFMPEG. I want to use this application for my volunteer job at a TV station of a Childrens Hospital.

    The problem I have is building a release version of my project. When I am building a Debug version it all works fine. I get a OpenGL Window with the quads. When I change Debug into Release and start the Debugger, it gives me the message "entry point of procedure __GLEW_EXT_framebuffer_object not found in DLL avcodec-56.dll", which is a bit strange to me because of the fact that the GLEW is not part of the avcodec-56.dll ?

    I can solve this issue by going to the project settings -> Linker -> Optimization and switch References from Yes(/OPT:REF) to No(/OPT:NOREF). I start the debugger to build the solution and it works as well. Now when I go to the Release folder of the project and start the build executable, the OpenGL Window stays black without giving me an error message.

    I hope you guys can help me out.

    @michael-iv I saw you had a similar issue

  • getting a lot of errors when reading udp stream with avconv

    5 août 2015, par eladm26

    I’m trying to read a udp video stream and I’m getting mostly errors :)
    here is my input and output :

    avconv   -i udp://**.**.**.**:**** output.ts
    avconv version 11.4, Copyright (c) 2000-2014 the Libav developers
     built on Jul 14 2015 12:43:36 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
    [mpeg2video @ 0x25a7060] Invalid frame dimensions 0x0.
       Last message repeated 13 times
    [mpegts @ 0x2582040] Estimating duration from bitrate, this may be inaccurate
    Input #0, mpegts, from 'udp://239.1.1.1:59001':
     Duration: N/A, start: 17336.030511, bitrate: 24640 kb/s
     Program 3
       Stream #0.0[0x31]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 24000 kb/s, 29.97 fps, 90k tbn, 59.94 tbc
       Stream #0.1[0x34](eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s
       Stream #0.2[0x35](spa): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    File 'output.ts' already exists. Overwrite ? [y/N] y
    Output #0, mpegts, to 'output.ts':
     Metadata:
       encoder         : Lavf56.1.0
       Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc56.1.0 mpeg2video
       Stream #0.1(eng): Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
       Metadata:
         encoder         : Lavc56.1.0 mp2
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
     Stream #0:1 -> #0:1 (ac3 (native) -> mp2 (native))
    Press ctrl-c to stop encoding
    [mpeg2video @ 0x25c85e0] warning: first frame is no keyframe
    Continuity check failed for pid 49 expected 12 got 5 bitrate=3922.8kbits/s
    [mpegts @ 0x2582040] Continuity check failed for pid 52 expected 6 got 1
    [mpegts @ 0x2582040] Continuity check failed for pid 53 expected 7 got 14
    [mpegts @ 0x2582040] Continuity check failed for pid 0 expected 4 got 1
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 2 53
    [mpeg2video @ 0x25c85e0] 00 motion_type at 19 38
    [mpeg2video @ 0x25c85e0] 00 motion_type at 18 54
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 1 39
    [mpeg2video @ 0x25c85e0] 00 motion_type at 48 55
    [mpeg2video @ 0x25c85e0] 00 motion_type at 2 56
    [mpeg2video @ 0x25c85e0] 00 motion_type at 17 40
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 5 60
    [mpeg2video @ 0x25c85e0] 00 motion_type at 1 61
    [mpeg2video @ 0x25c85e0] 00 motion_type at 16 41
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 15 46
    [mpeg2video @ 0x25c85e0] 00 motion_type at 6 62
    [mpeg2video @ 0x25c85e0] 00 motion_type at 24 42
    [mpeg2video @ 0x25c85e0] 00 motion_type at 16 47
    [mpeg2video @ 0x25c85e0] mb incr damaged
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 3 44
    [mpeg2video @ 0x25c85e0] 00 motion_type at 8 63
    [mpeg2video @ 0x25c85e0] 00 motion_type at 11 65
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 1 66
    [mpeg2video @ 0x25c85e0] invalid mb type in P Frame at 42 50
    [mpeg2video @ 0x25c85e0] 00 motion_type at 9 51
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 45 67
    [mpeg2video @ 0x25c85e0] 00 motion_type at 48 52
    [mpeg2video @ 0x25c85e0] MVs not available, ER not possible.
    [mpegts @ 0x2582040] PES packet size mismatch
       Last message repeated 1 times
    [ac3 @ 0x25c8b00] exponent out-of-range
    [ac3 @ 0x25c8b00] error decoding the audio block
    [mpegts @ 0x2582040] Continuity check failed for pid 49 expected 13 got 5
    [mpegts @ 0x2582040] Continuity check failed for pid 52 expected 12 got 14
    [mpeg2video @ 0x25c85e0] 00 motion_type at 97 65
    [mpeg2video @ 0x25c85e0] 00 motion_type at 1 4
    [mpeg2video @ 0x25c85e0] invalid cbp at 18 5
    [mpeg2video @ 0x25c85e0] 00 motion_type at 1 6
    [mpeg2video @ 0x25c85e0] mb incr damaged
    [mpeg2video @ 0x25c85e0] 00 motion_type at 34 8
    [mpeg2video @ 0x25c85e0] 00 motion_type at 8 9
    [mpeg2video @ 0x25c85e0] 00 motion_type at 6 11
    [mpeg2video @ 0x25c85e0] invalid cbp at 5 18
    [mpeg2video @ 0x25c85e0] 00 motion_type at 13 19
    [mpeg2video @ 0x25c85e0] 00 motion_type at 3 20
    [mpeg2video @ 0x25c85e0] 00 motion_type at 16 21
    [mpeg2video @ 0x25c85e0] invalid cbp at 3 22
    [mpeg2video @ 0x25c85e0] invalid mb type in B Frame at 4 23
    [mpeg2video @ 0x25c85e0] invalid mb type in B Frame at 3 24

    I’ve searched stack overflow and couldn’t find any similar.
    maybe it has something to do with avconv cant handle the udp frames fast enough ?
    I lost any hope so any help is very welcomed.

    Thanks.