Recherche avancée

Médias (91)

Autres articles (68)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (6820)

  • How to enable X264 with thread for Android on Mac OS X ?

    3 janvier 2016, par Jerikc XIONG

    I use the following script to compile x264 :

    #!/bin/bash
    # Based on https://github.com/yixia/x264/blob/master/build_android.sh

    if [ -z "$ANDROID_NDK" ]; then
       echo "You must define ANDROID_NDK before starting."
       echo "They must point to your NDK directories.\n"
       exit 1
    fi

    # Detect OS
    OS=`uname`
    HOST_ARCH=`uname -m`
    export CCACHE=; type ccache >/dev/null 2>&1 && export CCACHE=ccache
    if [ $OS == 'Linux' ]; then
       export HOST_SYSTEM=linux-$HOST_ARCH
    elif [ $OS == 'Darwin' ]; then
       export HOST_SYSTEM=darwin-$HOST_ARCH
    fi


    SOURCE=`pwd`
    PREFIX=$SOURCE/build/android

    SYSROOT=$ANDROID_NDK/platforms/android-12/arch-arm
    CROSS_PREFIX=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/$HOST_SYSTEM/bin/arm-linux-androideabi-
    EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__"
    EXTRA_LDFLAGS="-nostdlib"

    ./configure  --prefix=$PREFIX \
       --cross-prefix=$CROSS_PREFIX \
       --extra-cflags="$EXTRA_CFLAGS" \
       --extra-ldflags="$EXTRA_LDFLAGS" \
       --enable-pic \
       --enable-static \
       --enable-strip \
       --disable-cli \
       --host=arm-linux \
       --sysroot=$SYSROOT

    make clean
    make STRIP= -j4 install || exit 1

    After i add ’-lpthread’ , i got the following compile error :

    $ sh build_android.sh
    No working C compiler found.
    Makefile:3: config.mak: No such file or directory
    ./configure
    platform:      X86_64
    byte order:    little-endian
    system:        MACOSX
    cli:           yes
    libx264:       internal
    shared:        no
    static:        no
    asm:           yes
    interlaced:    yes
    avs:           avxsynth
    lavf:          no
    ffms:          no
    mp4:           no
    gpl:           yes
    thread:        posix
    opencl:        yes
    filters:       crop select_every
    debug:         no
    gprof:         no
    strip:         no
    PIC:           no
    bit depth:     8
    chroma format: all

    You can run 'make' or 'make fprofiled' now.
    dependency file generation...
    clang: error: no such file or directory: '/common/mc.c'
    clang: error: no such file or directory: '/common/predict.c'
    clang: error: no such file or directory: '/common/pixel.c'
    clang: error: no such file or directory: '/common/macroblock.c'
    clang: error: no such file or directory: '/common/frame.c'
    clang: error: no such file or directory: '/common/dct.c'
    clang: error: no such file or directory: '/common/cpu.c'
    clang: error: no such file or directory: '/common/cabac.c'
    clang: error: no such file or directory: '/common/common.c'
    clang: error: no such file or directory: '/common/osdep.c'
    clang: error: no such file or directory: '/common/rectangle.c'
    clang: error: no such file or directory: '/common/set.c'
    clang: error: no such file or directory: '/common/quant.c'
    clang: error: no such file or directory: '/common/deblock.c'
    clang: error: no such file or directory: '/common/vlc.c'
    clang: error: no such file or directory: '/common/mvpred.c'
    clang: error: no such file or directory: '/common/bitstream.c'
    clang: error: no such file or directory: '/encoder/analyse.c'
    clang: error: no such file or directory: '/encoder/me.c'
    clang: error: no such file or directory: '/encoder/ratecontrol.c'
    clang: error: no such file or directory: '/encoder/set.c'
    clang: error: no such file or directory: '/encoder/macroblock.c'
    clang: error: no such file or directory: '/encoder/cabac.c'
    clang: error: no such file or directory: '/encoder/cavlc.c'
    clang: error: no such file or directory: '/encoder/encoder.c'
    clang: error: no such file or directory: '/encoder/lookahead.c'
    clang: error: no such file or directory: '/x264.c'
    clang: error: no such file or directory: 'x264.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/input.c'
    clang: error: no such file or directory: 'input/input.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/timecode.c'
    clang: error: no such file or directory: 'input/timecode.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/raw.c'
    clang: error: no such file or directory: 'input/raw.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/y4m.c'
    clang: error: no such file or directory: 'input/y4m.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/raw.c'
    clang: error: no such file or directory: 'output/raw.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/matroska.c'
    clang: error: no such file or directory: 'output/matroska.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/matroska_ebml.c'
    clang: error: no such file or directory: 'output/matroska_ebml.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/flv.c'
    clang: error: no such file or directory: 'output/flv.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/flv_bytestream.c'
    clang: error: no such file or directory: 'output/flv_bytestream.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/filters.c'
    clang: error: no such file or directory: 'filters/filters.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/video.c'
    clang: error: no such file or directory: 'filters/video/video.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/source.c'
    clang: error: no such file or directory: 'filters/video/source.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/internal.c'
    clang: error: no such file or directory: 'filters/video/internal.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/resize.c'
    clang: error: no such file or directory: 'filters/video/resize.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/cache.c'
    clang: error: no such file or directory: 'filters/video/cache.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/fix_vfr_pts.c'
    clang: error: no such file or directory: 'filters/video/fix_vfr_pts.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/select_every.c'
    clang: error: no such file or directory: 'filters/video/select_every.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/crop.c'
    clang: error: no such file or directory: 'filters/video/crop.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/depth.c'
    clang: error: no such file or directory: 'filters/video/depth.o'
    clang: error: no input files
    clang: error: no such file or directory: '/extras/getopt.c'
    clang: error: no such file or directory: 'extras/getopt.o'
    clang: error: no input files
    make: *** [.depend] Error 1

    How to enable pthread support ?

  • ffmpeg : Dynamically set output duration based on sliding text width

    18 janvier 2016, par John Whiteman

    I need to create a smooth ’news ticker’ on a low powered android device. Unfortunately this is impossible at runtime using HTML or native code as there is always some stutter or glitch.

    I’ve created a solution that gives me a smooth result by encoding an mp4 for each message and displaying one video after the other. This is the code I’m using :

    ffmpeg -f lavfi -i color=c=black:s=1280x100 -vf "drawtext=BebasNeue.otf:fontsize=60:fontcolor=white:y=h-line_h-30:x=-(4*n)+1280:text='Hello world'" -t 10 output.mp4

    Problem :
    I need to set the video’s duration dynamically so that the video stops when the text has completed it’s journey from right to left. The messages will be of varying lengths and I need each message to scroll at a constant speed (ie. an mp4 with a longer message would have a longer duration).

    Is this possible via an expression ? If not is there some clever way I can calculate this outside of ffmpeg and pass it to the ’-t’ (duration) parameter ?

    ** Edit **
    To calculate outside of ffmpeg I can do a calculation like video_width + text_width / video_fps (ie. 1280 + 262 / 25) to give me the duration. So now I’m just looking to see if this is possible within the ffmpeg command line itself. t

    Many thanks

  • FFmpeg error : ratecontrol_init : can't open stats file

    18 décembre 2015, par oldo.nicho

    I’ve setup an AWS EC2 instance running Ubuntu 14.04 and have installed FFmpeg so that I can compress and transcode video.

    I’m trying to do a two pass conversion with the following code :

    ffmpeg -i input-file.avi -codec:v libx264 -profile:v high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=702:-1 -threads 0 -pass 1 -an -f mp4 ~/encoded/null

    and second pass :

    ffmpeg -i input-file.avi -codec:v libx264 -profile:v high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=702:-1 -threads 0 -pass 2 -codec:a libfdk_aac -b:a 128k -f mp4 output-file.mp4

    However I get the following error :

    ffmpeg version N-77283-g91c2a33 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --prefix=/home/ubuntu/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/ubuntu/ffmpeg_build/include --extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
     libavutil      55. 11.100 / 55. 11.100
     libavcodec     57. 17.100 / 57. 17.100
     libavformat    57. 20.100 / 57. 20.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 21.100 /  6. 21.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from 'input-file.avi':
     Duration: 01:18:05.29, start: 0.000000, bitrate: 2025 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 1789 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
       Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 224 kb/s
    [libx264 @ 0x1e04240] using SAR=1/1
    [libx264 @ 0x1e04240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
    [libx264 @ 0x1e04240] ratecontrol_init: can't open stats file
    Output #0, mp4, to '/home/ubuntu/encoded/null':
       Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 29.97 fps
       Metadata:
         encoder         : Lavc57.17.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    The command as written above works fine on my local computer (running OSX). Would anyone have any suggestions as to how to fix this problem ?