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 (6198)

  • Error in compiling FFmpeg with lame

    20 mars 2016, par user5761723

    I am trying to compile ffmpeg with lame for mp3 conversion. i am using Xcode 7.2 and ffmpeg-3.0, lame-3.99.5.

    I compiled lame library using following script...

    Build_lame.sh Script file :-

    #!/bin/sh

    CONFIGURE_FLAGS="--disable-shared --disable-frontend"

    ARCHS="arm64 armv7s x86_64 i386 armv7"

    # directories
    SOURCE="lame"
    FAT="fat-lame"

    SCRATCH="scratch-lame"
    # must be an absolute path
    THIN=`pwd`/"thin-lame"

    COMPILE="y"
    LIPO="y"

    if [ "$*" ]
    then
       if [ "$*" = "lipo" ]
       then
           # skip compile
           COMPILE=
       else
           ARCHS="$*"
           if [ $# -eq 1 ]
           then
               # skip lipo
               LIPO=
           fi
       fi
    fi

    if [ "$COMPILE" ]
    then
       CWD=`pwd`
       for ARCH in $ARCHS
       do
           echo "building $ARCH..."
           mkdir -p "$SCRATCH/$ARCH"
           cd "$SCRATCH/$ARCH"

           if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]
           then
               PLATFORM="iPhoneSimulator"
               if [ "$ARCH" = "x86_64" ]
               then
                   SIMULATOR="-mios-simulator-version-min=7.0"
                           HOST=x86_64-apple-darwin
               else
                   SIMULATOR="-mios-simulator-version-min=5.0"
                           HOST=i386-apple-darwin
               fi
           else
               PLATFORM="iPhoneOS"
               SIMULATOR=
                       HOST=arm-apple-darwin
           fi

           XCRUN_SDK=`echo $PLATFORM | tr '[:upper:]' '[:lower:]'`
           CC="xcrun -sdk $XCRUN_SDK clang -arch $ARCH"
           #AS="$CWD/$SOURCE/extras/gas-preprocessor.pl $CC"
           CFLAGS="-arch $ARCH $SIMULATOR"
           if ! xcodebuild -version | grep "Xcode [1-6]\."
           then
               CFLAGS="$CFLAGS -fembed-bitcode"
           fi
           CXXFLAGS="$CFLAGS"
           LDFLAGS="$CFLAGS"

           CC=$CC $CWD/$SOURCE/configure \
               $CONFIGURE_FLAGS \
                       --host=$HOST \
               --prefix="$THIN/$ARCH" \
                       CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"

           make -j3 install
           cd $CWD
       done
    fi

    if [ "$LIPO" ]
    then
       echo "building fat binaries..."
       mkdir -p $FAT/lib
       set - $ARCHS
       CWD=`pwd`
       cd $THIN/$1/lib
       for LIB in *.a
       do
           cd $CWD
           lipo -create `find $THIN -name $LIB` -output $FAT/lib/$LIB
       done

       cd $CWD
       cp -rf $THIN/$1/include $FAT
    fi

    and i'm compiling FFmpeg libraries with lame by using the following script..



    build_ffmpeg.sh

    #!/bin/bash

    ###########################################################################
    #  Choose your ffmpeg version and your currently-installed iOS SDK version:
    #
    VERSION="3.0"
    SDKVERSION="9.2"




    #
    #
    ###########################################################################
    #
    # Don't change anything under this line!
    #
    ###########################################################################

    # No need to change this since xcode build will only compile in the
    # necessary bits from the libraries we create
    ARCHS="arm64 armv7 armv7s i386"

    DEVELOPER=`xcode-select -print-path`

    cd "`dirname \"$0\"`"
    REPOROOT=$(pwd)

    # Where we'll end up storing things in the end
    OUTPUTDIR="${REPOROOT}/dependencies"
    mkdir -p ${OUTPUTDIR}/include
    mkdir -p ${OUTPUTDIR}/lib
    mkdir -p ${OUTPUTDIR}/bin


    BUILDDIR="${REPOROOT}/build"
    mkdir -p $BUILDDIR

    # where we will keep our sources and build from.
    SRCDIR="${BUILDDIR}/src"
    mkdir -p $SRCDIR
    # where we will store intermediary builds
    INTERDIR="${BUILDDIR}/built"
    mkdir -p $INTERDIR

    ########################################

    cd $SRCDIR

    # Exit the script if an error happens
    set -e

    if [ ! -e "${SRCDIR}/ffmpeg-${VERSION}.tar.bz2" ]; then
       echo "Downloading ffmpeg-${VERSION}.tar.bz2"
       curl -LO http://ffmpeg.org/releases/ffmpeg-${VERSION}.tar.bz2
    else
       echo "Using ffmpeg-${VERSION}.tar.bz2"
    fi

    tar zxf ffmpeg-${VERSION}.tar.bz2 -C $SRCDIR
    cd "${SRCDIR}/ffmpeg-${VERSION}"

    set +e # don't bail out of bash script if ccache doesn't exist
    CCACHE=`which ccache`
    if [ $? == "0" ]; then
       echo "Building with ccache: $CCACHE"
       CCACHE="${CCACHE} "
    else
       echo "Building without ccache"
       CCACHE=""
    fi
    set -e # back to regular "bail out on error" mode

    for ARCH in ${ARCHS}
    do
       if [ "${ARCH}" == "i386" ];
       then
           PLATFORM="iPhoneSimulator"
           EXTRA_CONFIG="--arch=i386 --disable-asm --enable-cross-compile --target-os=darwin --cpu=i386"
           EXTRA_CFLAGS="-arch i386 -I/Users/akash/Desktop/lame-ios-build-master/fat-lame/include"
           EXTRA_LDFLAGS="-I${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk/usr/lib -L/Users/akash/Desktop/lame-ios-build-master/fat-lame/lib -mfpu=neon"
        elif [ "${ARCH}" == "arm64" ];
        then

            PLATFORM="iPhoneOS"

            EXTRA_CONFIG="--arch=arm64 --target-os=darwin --enable-cross-compile --disable-armv5te"

           EXTRA_CFLAGS="-w -arch ${ARCH} -I/Users/akash/Desktop/lame-ios-build-master/fat-lame/include -mfpu=neon"

           EXTRA_LDFLAGS="-L/Users/akash/Desktop/lame-ios-build-master/fat-lame/lib -mfpu=neon"

       else
           PLATFORM="iPhoneOS"
           EXTRA_CONFIG="--arch=arm --target-os=darwin --enable-cross-compile --cpu=cortex-a9 --disable-armv5te"
           EXTRA_CFLAGS="-w -arch ${ARCH} --I/Users/akash/Desktop/lame-ios-build-master/fat-lame/include -mfpu=neon"

           EXTRA_LDFLAGS="-L/Users/akash/Desktop/lame-ios-build-master/fat-lame/lib -mfpu=neon"
    fi

       mkdir -p "${INTERDIR}/${ARCH}"

       ./configure --prefix="${INTERDIR}/${ARCH}" --disable-armv6 --disable-armv6t2 --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-iconv --disable-bzlib --enable-avresample        --enable-gpl  --enable-libmp3lame --enable-nonfree --disable-pthreads --sysroot="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk" --cc="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc"  --extra-cflags="${EXTRA_CFLAGS} -miphoneos-version-min=7.0 -I${OUTPUTDIR}/include " --extra-ldflags="-arch ${ARCH} ${EXTRA_LDFLAGS} -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk -miphoneos-version-min=7.0 -L${OUTPUTDIR}/lib" ${EXTRA_CONFIG} --enable-pic --extra-cxxflags="$CPPFLAGS -I${OUTPUTDIR}/include -isysroot ${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDKVERSION}.sdk"

       make && make install && make clean

    done

    mkdir -p "${INTERDIR}/universal/lib"

    cd "${INTERDIR}/armv7/lib"
    for file in *.a
    do

    cd ${INTERDIR}
    xcrun -sdk iphoneos lipo -output universal/lib/$file  -create -arch arm64 arm64/lib/$file -arch armv7 armv7/lib/$file -arch armv7s armv7s/lib/$file -arch i386 i386/lib/$file
    echo "Universal $file created."

    done
    cp -r ${INTERDIR}/armv7/include ${INTERDIR}/universal/

    echo "Done."



    =======================

    During compilation i'm getting following Errors :-

    CC  libavcodec/lclenc.o
    CC  libavcodec/libmp3lame.o
    In file included from libavcodec/libmp3lame.c:27:
    In file included from /Users/akash/Desktop/lame-ios-build-master/fat-lame/include/lame/lame.h:23:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CoreAudioKit.h:1:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CAInterAppAudioSwitcherView.h:13:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:11:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:436:1: error:
         expected identifier or '('
    @class NSString, Protocol;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:438:19: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:439:44: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
                                              ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:441:19: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:442:54: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT Class __nullable NSClassFromString(NSString *aClassName);
                                                        ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:444:19: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto) NS_AVA...
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:444:50: error:
         unknown type name 'Protocol'
    FOUNDATION_EXPORT NSString *NSStringFromProtocol(Protocol *proto) NS_AVA...
                                                    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:445:19: error:
         unknown type name 'Protocol'
    FOUNDATION_EXPORT Protocol * __nullable NSProtocolFromString(NSString *n...
                     ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:445:62: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT Protocol * __nullable NSProtocolFromString(NSString *n...
                                                                ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:449:30: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
                                ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:449:53: error:
         format argument not an NSString
    FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
                                ~~~~~~~~~~~~~~~~       ^                  ~
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:98:49: note:
         expanded from macro 'NS_FORMAT_FUNCTION'
           #define NS_FORMAT_FUNCTION(F,A) __attribute__((format(__NSString...
                                                          ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:450:31: error:
         unknown type name 'NSString'
    FOUNDATION_EXPORT void NSLogv(NSString *format, va_list args) NS_FORMAT_...
                                 ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:450:63: error:
         format argument not an NSString
     ...void NSLogv(NSString *format, va_list args) NS_FORMAT_FUNCTION(1,0);
                    ~~~~~~~~~~~~~~~~                ^                  ~
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:98:49: note:
         expanded from macro 'NS_FORMAT_FUNCTION'
           #define NS_FORMAT_FUNCTION(F,A) __attribute__((format(__NSString...
                                                          ^
    In file included from libavcodec/libmp3lame.c:27:
    In file included from /Users/akash/Desktop/lame-ios-build-master/fat-lame/include/lame/lame.h:23:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CoreAudioKit.h:1:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/CoreAudioKit.framework/Headers/CAInterAppAudioSwitcherView.h:13:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:11:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8:1: error:

    Can someone tell me what wrong with my approach ?
    can someone help me to solve this problem ?

  • Iterate through URLs

    16 février 2016, par cclloyd

    If I wanted to use ffmpeg to download a bunch of .ts files from a website, and the url format is

    http://example.com/video-1080Pxxxxx.ts

    Where the xxxxx is a number from 00000 to 99999 (required zero padding), how would I iterate through that in bash so that it tries every integer starting at 00000, 00001, 00002, etc.?

  • ffmpeg overlay a watermark image on a video every 15 minutes ?

    21 janvier 2016, par Charles

    So I have a snippet from a bash script that overlays a transparent image watermark onto a video file, like this :

    /usr/bin/ffmpeg -i input.mp4 -i out.png -filter_complex "overlay=10:10" /outputfolder/output.mp4

    Works beautifully, and fast.

    What I really need though, is to have the watermark only show up at the start of the video, and then every 15 minutes through the video afterwards, for 30 seconds at a time.

    Is this possible without multiple passes ?

    Thanks in advance for all the help !