Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (68)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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 (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (10307)

  • Compile FFmpeg with librtmp ERROR : librtmp not found

    10 juin 2014, par 谢小进

    Environment : Mac OS X 10.9.2, Xcode 5.1.

    I have compiled librtmp, libogg and libspeex successfully, they are in the directories named fat-librtmp, fat-libogg and fat-libspeex , then I run the shell script as below to coompile them into FFmpeg :

    #!/bin/sh

    # OS X Mavericks, Xcode 5.1

    set -ex

    VERSION="2.2.2"
    CURRPATH=`pwd`
    DSTDIR="ffmpeg-built"
    SCRATCH="scratch"
    LIBRTMP=$CURRPATH/librtmp
    ARCHS="i386 x86_64 armv7 armv7s arm64"

    CONFIGURE_FLAGS="--enable-shared \
                   --disable-doc \
                   --disable-stripping \
                   --disable-ffmpeg \
                   --disable-ffplay \
                   --disable-ffserver \
                   --disable-ffprobe \
                   --disable-decoders \
                   --disable-encoders \
                   --disable-protocols \
                   --enable-protocol=file \
                   --enable-protocol=rtmp \
                   --enable-librtmp \
                   --enable-encoder=flv \
                   --enable-decoder=flv \
                   --disable-symver \
                   --disable-asm \
                   --enable-cross-compile"

    rm -rf $DSTDIR
    mkdir $DSTDIR

    if [ ! `which yasm` ]; then
       if [ ! `which brew` ]; then
           ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
       fi
       brew install yasm
    fi

    if [ ! `which gas-preprocessor.pl` ]; then
       curl -3L https://github.com/libav/gas-preprocessor/raw/master/gas-preprocessor.pl -o /usr/local/bin/gas-preprocessor.pl
       chmod +x /usr/local/bin/gas-preprocessor.pl
    fi

    if [ ! -e ffmpeg-$VERSION.tar.bz2 ]; then
       curl -O http://www.ffmpeg.org/releases/ffmpeg-$VERSION.tar.bz2
    fi

    tar jxf ffmpeg-$VERSION.tar.bz2


    export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
    export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

    for ARCH in $ARCHS; do
       mkdir -p $DSTDIR/$SCRATCH/$ARCH
       cd $DSTDIR/$SCRATCH/$ARCH

       CFLAGS="-arch $ARCH"
       if [ $ARCH == "i386" -o $ARCH == "x86_64" ]; then
           PLATFORM="iPhoneSimulator"
           CFLAGS="$CFLAGS -mios-simulator-version-min=6.0"
       else
           PLATFORM="iPhoneOS"
           CFLAGS="$CFLAGS -mios-version-min=6.0"
           if [ $ARCH == "arm64" ]; then
               EXPORT="GASPP_FIX_XCODE5=1"
           fi
       fi

       XCRUN_SDK=`echo $PLATFORM | tr '[:upper:]' '[:lower:]'`
       CC="xcrun -sdk $XCRUN_SDK clang"
       CFLAGS="$CFLAGS -I$LIBRTMP/include"
       CXXFLAGS="$CFLAGS"
       LDFLAGS="$CFLAGS -L$LIBRTMP/lib"

       $CURRPATH/ffmpeg-$VERSION/configure \
       --target-os=darwin \
       --arch=$ARCH \
       --cc="$CC" \
       $CONFIGURE_FLAGS \
       --extra-cflags="$CFLAGS" \
       --extra-cxxflags="$CXXFLAGS" \
       --extra-ldflags="$LDFLAGS" \
       --prefix=$CURRPATH/$DSTDIR/$ARCH

       make -j3 install $EXPORT

       cd $CURRPATH
    done

    rm -rf $DSTDIR/$SCRATCH
    mkdir -p $DSTDIR/lib
    cd $DSTDIR/$ARCH/lib
    LIBS=`ls *.a`
    cd $CURRPATH

    for LIB in $LIBS; do
       lipo -create `find $DSTDIR -name $LIB` -output $DSTDIR/lib/$LIB
    done

    cp -rf $DSTDIR/$ARCH/include $DSTDIR

    for ARCH in $ARCHS; do
       rm -rf $DSTDIR/$ARCH
    done

    Unluckily, the config.log shows :

    check_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
    pkg-config --exists --print-errors librtmp
    Package librtmp was not found in the pkg-config search path.
    Perhaps you should add the directory containing `librtmp.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'librtmp' found
    ERROR: librtmp not found

    I have googled and knew that configure contains a line enabled librtmp  && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket, which maybe be wrong. Right ? Can somebody help me to solve it ?

    UPDATE at 2014/06/10

    I think it’s about pkgconfig or something, so I have create a file named librtmp.pc at /usr/local/lib/pkgconfig, which contains below text :

    prefix=/usr/local/librtmp
    exec_prefix=${prefix}
    libdir=${prefix}/lib
    includedir=${prefix}/include

    Name: librtmp
    Description: RTMP implementation
    Version: v2.3
    Requires:
    URL: http://rtmpdump.mplayerhq.hu
    Libs: -L${libdir} -lrtmp -lz
    Cflags: -I${includedir}

    Also I have moved built librtmp to /usr/local. After above being done, I run the shell script again, but still same error ! Can somebody told me why and how to solve it ?

  • FFMPEG stops with muxing overhead of 20538950942720.000000% after takeoff command is sent to AR.Drone 2.0

    7 mai 2014, par user38931

    I start ffmpeg -i tcp://192.168.1.1:5555 -f image2 -pix_fmt bgr8 -update 1 frame.bmp to decode a h264 stream from AR.Drone 2.0. Everything works fine, until I send a takeoff command to the drone and it lifts up. For those who are not familiar with AR.Drone 2.0 architecture, the commands are sent to another socket and shouldn’t interfere with the video socket.

    Then for some reason, ffmpeg stops with a muxing overhead of insane 20538950942720.000000% !

    Are there common causes for such a crazy muxing overhead ?
    I would like to know what could cause such a massive muxing overhead, before I can move on to troubleshoot what the source of the problem is.

    Here is the full output I have :

    ffmpeg -i tcp://192.168.1.1:5555 -f image2 -pix_fmt bgr8 -update 1 frame.bmp
    ffmpeg version N-62058-gfd2bcfc Copyright (c) 2000-2014 the FFmpeg developers
    built on Apr  3 2014 05:12:32 with gcc 4.6 (Debian 4.6.3-1)
    configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
     libavutil      52. 71.100 / 52. 71.100
     libavcodec     55. 56.107 / 55. 56.107
     libavformat    55. 36.101 / 55. 36.101
     libavdevice    55. 11.100 / 55. 11.100
     libavfilter     4.  3.100 /  4.  3.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, h264, from 'tcp://192.168.1.1:5555':
     Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (Baseline), yuv420p, 640x360, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    [swscaler @ 0xb21e600] No accelerated colorspace conversion found from yuv420p to bgr8.
    Output #0, image2, to 'frame.bmp':
     Metadata:
       encoder         : Lavf55.36.101
       Stream #0:0: Video: bmp, bgr8, 640x360, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> bmp)
    Press [q] to stop, [?] for help
    frame=  388 fps= 29 q=0.0 Lsize=N/A time=00:00:15.52 bitrate=N/A    
    video:87708kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 20538950942720.000000%
  • FFMpeg : no essence (Invalid data found when processing input)

    8 mai 2014, par Flock Dawson

    I’m trying to convert a 4K MXF file to a low res WEBM file. I’ve upgraded FFMpeg and codecs to the latest versions. When I initiate the conversion, however, I get following error :

    ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
     built on May  8 2014 12:03:23 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      52. 81.100 / 52. 81.100
     libavcodec     55. 60.103 / 55. 60.103
     libavformat    55. 37.102 / 55. 37.102
     libavdevice    55. 13.101 / 55. 13.101
     libavfilter     4.  5.100 /  4.  5.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    [mxf @ 0x272de60] no essence
    /tmp/TEST_4K.MXF: Invalid data found when processing input

    The file is quite large ( 30GB). Could this have something to do with this issue ? I googled for the no essence error but this doesn’t seem to provide any useful information. I checked the permissions on the file and those are not an issue. Also, I tried the same command for a smaller file (approx. 12 GB, which does work). Has anyone had any problems handling large files with FFMpeg ? Thanks !