Recherche avancée

Médias (0)

Mot : - Tags -/api

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (36)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (4865)

  • X264 encoding using Opencv

    29 novembre 2011, par user573193

    I am working with a high resolution camera : 4008x2672. I a writing a simple program which grabs frame from the camera and sends the frame to a avi file. For working with such a high resolution, I found only x264 codec that could do the trick (Suggestions welcome). I am using opencv for most of the image handling stuff. As mentioned in this post http://doom10.org/index.php?topic=1019.0 , I modified the AVCodecContext members as per ffmpeg presets for libx264 (Had to do this to avoid broken ffmpeg defaults settings error). This is output I am getting when I try to run the program

    libx264 @ 0x992d040]non-strictly-monotonic PTS
    1294846981.526675 1 0 //Timestamp camera_no frame_no
    1294846981.621101 1 1
    1294846981.715521 1 2
    1294846981.809939 1 3
    1294846981.904360 1 4
    1294846981.998782 1 5
    1294846982.093203 1 6
       Last message repeated 7 times
    [avi @ 0x992beb0]st:0 error, non monotone timestamps
    -614891469123651720 >= -614891469123651720

    OpenCV Error: Unspecified error (Error while writing video frame) in
    icv_av_write_frame_FFMPEG, file
    /home/ajoshi/ext/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp, line 1034
    terminate called after throwing an instance of 'cv::Exception'
    what():  /home/ajoshi/ext/OpenCV-2.2.0/modules/highgui/src/cap_ffmpeg.cpp:1034:
    error: (-2) Error while writing video frame in function icv_av_write_frame_FFMPEG

    Aborted

    Modifications to the AVCodecContext are :

    if(codec_id == CODEC_ID_H264)
    {
       //fprintf(stderr, "Trying to parse a preset file for libx264\n");
       //Setting Values manually from medium preset
       c->me_method = 7;
       c->qcompress=0.6;
       c->qmin = 10;
       c->qmax = 51;
       c->max_qdiff = 4;
       c->i_quant_factor=0.71;
       c->max_b_frames=3;
       c->b_frame_strategy = 1;
       c->me_range = 16;<br />
       c->me_subpel_quality=7;
       c->coder_type = 1;
       c->scenechange_threshold=40;
       c->partitions = X264_PART_I8X8 | X264_PART_I4X4 | X264_PART_P8X8 | X264_PART_B8X8;
       c->flags = CODEC_FLAG_LOOP_FILTER;
       c->flags2 = CODEC_FLAG2_BPYRAMID | CODEC_FLAG2_MIXED_REFS | CODEC_FLAG2_WPRED | CODEC_FLAG2_8X8DCT | CODEC_FLAG2_FASTPSKIP;
       c->keyint_min = 25;
       c->refs = 3;
       c->trellis=1;
       c->directpred = 1;
       c->weighted_p_pred=2;
    }

    I am probably not setting the dts and pts values which I believed ffmpeg should be setting it for me.

    Any sugggestions welcome.
    Thanks in advance

  • Linker error when compiling ffmpeg for Android

    7 novembre 2011, par Satheesh

    I have try to implement the ffmpeg decoding library in my android project.Dowload FFmpeg.I got the ffmpeg library from the bambuser client version and unpack that into the project jni folder.Then i run the extract command(./extract.sh) in cygwin compiler tool(its becoz am using windows os) after that am trying to build ffmpeg library using the command ./build.sh

    I have googled a lot but i cant make it work. Please help me out from this.

    NDK version : NDKr5b Cygwin tool version : 1.7

    My build.sh file is

    /************Command starts here******************/

    #!/bin/bash

    if [ "$NDK" = "" ]; then
       echo NDK variable not set, assuming ${HOME}/android-ndk
       export NDK=${HOME}/android-ndk
    fi

    SYSROOT=$NDK/platforms/android-8/arch-arm
    # Expand the prebuilt/* path into the correct one
    TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows`
    export PATH=$TOOLCHAIN/bin:$PATH

    rm -rf build/ffmpeg
    mkdir -p build/ffmpeg
    cd ffmpeg

    # Don&#39;t build any neon version for now
    for version in armv5te armv7a
    do

       DEST=../build/ffmpeg
       FLAGS="--target-os=linux --arch=arm"
       FLAGS="$FLAGS --cross-prefix=arm-linux-androideabi- --arch=arm"
       FLAGS="$FLAGS --sysroot=$SYSROOT"
       FLAGS="$FLAGS --soname-prefix=/data/data/org.rifluxyss.androiddev.livewallpapaerffmpeg/lib/"
       FLAGS="$FLAGS --enable-cross-compile --cc=$TOOLCHAIN/bin/arm-linux-androideabi-gcc"
       FLAGS="$FLAGS --enable-shared --disable-symver"
       FLAGS="$FLAGS --nm=$TOOLCHAIN/bin/arm-linux-androideabi-nm"
       FLAGS="$FLAGS --ar=$TOOLCHAIN/bin/arm-linux-androideabi-ar"
       FLAGS="$FLAGS --ranlib=$TOOLCHAIN/bin/arm-linux-androideabi-ranlib"
       FLAGS="$FLAGS --enable-small --optimization-flags=-O2"
       FLAGS="$FLAGS --enable-encoder=mpeg2video --enable-encoder=nellymoser --enable-memalign-hack "
       FLAGS="$FLAGS --disable-ffmpeg --disable-ffplay"
       FLAGS="$FLAGS --disable-ffserver --disable-ffprobe --disable-encoders"
       FLAGS="$FLAGS --disable-muxers --disable-devices --disable-protocols"
       FLAGS="$FLAGS --enable-protocol=file --enable-avfilter"
       FLAGS="$FLAGS --disable-network --enable-pthreads --enable-avutil"
       FLAGS="$FLAGS --disable-avdevice --disable-asm --extra-libs=-lgcc"

       case "$version" in
           neon)
               EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon"
               EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"
               # Runtime choosing neon vs non-neon requires
               # renamed files
               ABI="armeabi-v7a"
               ;;
           armv7a)
               EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp"
               EXTRA_LDFLAGS=""
               ABI="armeabi-v7a"
               ;;
           *)
               EXTRA_CFLAGS=""
               EXTRA_LDFLAGS=""
               ABI="armeabi"
               ;;
       esac
       DEST="$DEST/$ABI"
       FLAGS="$FLAGS --prefix=$DEST"

       mkdir -p $DEST
       echo $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" > $DEST/info.txt
       ./configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" | tee $DEST/configuration.txt
       [ $PIPESTATUS == 0 ] || exit 1
       make clean
       make -j4 || exit 1
       make install || exit 1

    done

    /****************Command ends here************************/

    While compiling this am getting error when linking the archive files into .so files.

    The error is look like
    "arm-linux-androideabi/bin/ld.exe : cannot find -lavutil
    Collect2:ld returned 1 exit status
    make :[libaswscale/libswscale.so] Error 1
    make :
    waititng for unfinished jobs...."

    Please anyone help me to out from this. Thanks in advance

  • Java ffmpeg progress bar

    7 juin 2012, par user1440140

    Even I am working for making a progress bar for ffmpeg in java... So for that I want to read all the progress....

    String[] command = {"gnome-terminal", "-x", "/bin/sh", "-c","ffmpeg -i /home/tmp/F.webm /home/tmp/converted1.mp4"};

    And then just execute this by :

    Process process = Runtime.getRuntime().exec(command);

    This runs perfectly... BUt I want to read all this progress to make a progress bar... SO how can I read this from that terminal...