Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (8)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (3995)

  • Need help finding a way to use avconv or ffmpeg to convert any video to an exact size and shape

    29 octobre 2013, par mikecole79

    This is for work. We have a system that supports streaming video, but we support multiple players. I have multiple systems that I COULD use for this. Currently, I've been using the media server that we use to stream the video, which has ffmpeg on it (running Red Hat 4). On that system, I've used :

    ffmpeg -i INPUT_FILE.mp4 -c:v libx264 -crf 23 -maxrate 3000k -bufsize 30000k -c:a aac -strict experimental -b:a 192k -filter:v "scale=iw*min($width/iw\,$height/ih):ih*min($width/iw\,$height/ih), pad=$width:$height:($width-iw*min($width/iw\,$height/ih))/2:($height-ih*min($width/iw\,$height/ih))/2" -f OUTPUT_FILE.mp4

    And I thought that it worked well. On one file I used to test, it seemed to display properly on both player types. On a different file, it did not appear properly. The input files are also in varying formats (mostly mp4, with a few m4g files) and different aspect ratios.

    We also have many desktop/laptop machines that are running Ubuntu 13.04 (comes with avconv) that I'd like to be able to use to format video as well. If I can get at least one of these systems to properly format video, that would be great, but ideally I'd like to figure out how to do this with both avconv AND ffmpeg so I can use any system.

    The problem that we're trying to solve is that one player is an Android DMP device, which will play a video of varying sizes properly by adding black bars at the sides or top/bottom as needed to keep the video sized properly. The other player is a Samsung Smart TV, which is SO Smart that it can reformat videos to fit the screen. Which sucks horribly, because if they're not sized to exactly the right format, it will stretch them one direction or another to make them be sized right. The resulting video show's people that appear to be 8 feet tall weighing 130 pounds, or 4 feet tall and 3 feet wide.

    Obviously, this isn't what we desire, but I lack the knowledge of avconv/ffmpeg to do anything to fix it. I need an expert, and I am not he. Nor is anyone I currently work with an expert on this subject. Anyone that is, I'd appreciate your help more than I can express via a web interface.

    Thanks !

  • errors while building ffmpeg with ndk16b standalone toolchain

    11 octobre 2018, par soni sahu

    I am trying to build ffmpeg with android ndk18b toolchain. My configuration looks like this.

    TOOLCHAIN_PREFIX=/home/git/ndks/stand_alone_toolchain_ndk16b
    NDK_SYSROOT=$TOOLCHAIN_PREFIX/sysroot
    NDK_ARCH='arm'
    NDK_ABIARCH='arm-linux-androideabi'
    target_host=arm-linux-androideabi
    export CPP="${CROSS_PREFIX}clang++"
    export PATH=${TOOLCHAIN_PREFIX}/bin:$PATH
    export CROSS_PREFIX=${TOOLCHAIN_PREFIX}/bin/${NDK_ABIARCH}-
    export CC="${CROSS_PREFIX}clang"
    export CXX="${CROSS_PREFIX}clang++"
    export AS="${CROSS_PREFIX}clang"
    export AR="${CROSS_PREFIX}ar"
    export LD="${CROSS_PREFIX}ld"
    export RANLIB="${CROSS_PREFIX}ranlib"
    export STRIP="${CROSS_PREFIX}strip"
    export OBJDUMP="${CROSS_PREFIX}objdump"
    export CPP="${CROSS_PREFIX}cpp"
    export GCONV="${CROSS_PREFIX}gconv"
    export NM="${CROSS_PREFIX}nm"
    export SIZE="${CROSS_PREFIX}size"

    # Tell configure what flags Android requires.
    export CFLAGS="-fPIE -fPIC"
    export LDFLAGS="-pie"

    ./configure \
       --cpu="armv7-a" \
       --enable-pic \
       --disable-runtime-cpudetect \
       --enable-pthreads \
       --enable-hardcoded-tables \
       --prefix=$PREFIX \
       --disable-doc \
       --disable-ffplay \
       --disable-ffprobe \
       --disable-ffserver \
       --disable-doc \
       --disable-network \
       --enable-libmp3lame \
       --enable-libx264 \
       --enable-gpl \
       --extra-ldflags="-latomic -L${NDK_SYSROOT}/usr/lib -L$TOOLCHAIN_PREFIX/arm-linux-androideabi/lib -L$TOOLCHAIN_PREFIX/lib -Llibmp3lame/lib -Lx264/android/armeabi-v7a/lib $LDFLAGS -v -lc -lm -ldl -llog -march=armv7-a"\
       --extra-cflags="-ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16 -Ilibmp3lame/include -Ix264/android/armeabi-v7a/include $CFLAGS -march=armv7-a -marm -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -mthumb -D__thumb__ -fno-exceptions -fno-rtti -march=armv7-a -Wl,--fix-cortex-a8" \
       --arch=arm\
       --target-os=linux \
       --enable-cross-compile \
       --cross-prefix=$TOOLCHAIN_PREFIX/bin/arm-linux-androideabi- \
       --nm=${NM} \
       --cc=${CC} \
       --cxx=${CXX} \
       --ld=${LD} \
       --ar=${AR} \
       --as=${AS} \
       --strip=${STRIP}

    I have build libmp3lame using this http://developer.samsung.com/android/technical-docs/Porting-and-using-LAME-MP3-on-Android-with-JNI and placed inside libmp3lame/lib folder.

    I am getting these undefined errors in config.log.

    /home/git/ndks/stand_alone_toolchain_ndk18b/bin/arm-linux-androideabi-clang
    -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -fPIE -fPIC -ffast-math -funroll-loops -mfloat-abi=softfp -mfpu=vfpv3-d16 -Ilibmp3lame/include -Ix264/android/armeabi-v7a/include -fPIE -fPIC -march=armv7-a -marm -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 -mthumb -D__thumb__ -fno-exceptions -fno-rtti -march=armv7-a -Wl,—fix-cortex-a8 -march=armv7-a -std=c11 -fomit-frame-pointer -fPIC -mthumb -c -o /tmp/ffconf.PT1BY4UI.o /tmp/ffconf.5z69vrhC.c clang70 : warning :
    -Wl,—fix-cortex-a8 : ’linker’ input unused [-Wunused-command-line-argument]
    /home/git/ndks/stand_alone_toolchain_ndk18b/bin/arm-linux-androideabi-ld
    -pie -latomic -L/home/git/ndks/stand_alone_toolchain_ndk18b/sysroot/usr/lib -L/home/git/ndks/stand_alone_toolchain_ndk18b/arm-linux-androideabi/lib
    -L/home/git/ndks/stand_alone_toolchain_ndk18b/lib -Llibmp3lame/lib -Lx264/android/armeabi-v7a/lib -pie -v -lc -lm -ldl -llog -march=armv7-a -o /tmp/ffconf.o9IsP7bS /tmp/ffconf.PT1BY4UI.o -lmp3lame -lm -lz libmp3lame/lib/libmp3lame.a(set_get.o)(.ARM.exidx.text.lame_set_num_samples+0x0) :
    error : undefined reference to ’__aeabi_unwind_cpp_pr0’
    libmp3lame/lib/libmp3lame.a(set_get.o)(.ARM.exidx.text.lame_set_ogg+0x0) :
    error : undefined reference to ’__aeabi_unwind_cpp_pr0’
    libmp3lame/lib/libmp3lame.a(set_get.o)(.ARM.exidx.text.lame_get_ogg+0x0) :
    error : undefined reference to ’__aeabi_unwind_cpp_pr0’
    libmp3lame/lib/libmp3lame.a(set_get.o)(.ARM.exidx.text.lame_set_quality+0x0) :
    error : undefined reference to ’__aeabi_unwind_cpp_pr0’
    D :/work_dir/battefield3/chimpoon/proj.android/app/jni/../../../../lame/lame-3.100/./libmp3lame/set_get.c:2161 :
    error : undefined reference to ’__aeabi_uidiv’
    D :/work_dir/battefield3/chimpoon/proj.android/app/jni/../../../../lame/lame-3.100/./libmp3lame/set_get.c:2165 :
    error : undefined reference to ’__aeabi_uidivmod’
    D :/work_dir/battefield3/chimpoon/proj.android/app/jni/../../../../lame/lame-3.100/./libmp3lame/set_get.c:2170 :
    error : undefined reference to ’__aeabi_uidiv’

    Please help me to resolve this issue. Thanks.

  • Capture camera + mic and encode to h264/aac on macOS

    16 décembre 2018, par Flock Dawson

    I’m having trouble capturing and encoding audio+video on-the-fly on macOS.

    I tried two options :

    1. ffmpeg

      ffmpeg -threads 0 -f avfoundation -s 1920x1080 -framerate 25 -I 0:0 -async 441 -c:v libx264 -preset medium -pix_fmt yuv420p -crf 22 -c:a libfdk_aac -aq 95 -y
    2. gstreamer

      gst-launch-1.0 -ve avfvideosrc device-index=0 ! video/x-raw,width=1920,height=1080,framerate=25/1 ! vtenc_h264 ! queue ! mp4mux name=mux ! filesink location=out.mp4  osxaudiosrc device=0 ! audio/x-raw ! faac midside=false ! queue ! mux.

    The ffmpeg option works, but only for lower resolutions. With higher resolutions, the Mac mini (2018 gen) can’t do the heavy lifting. I think because I installed ffmpeg with brew, so it wasn’t compiled on my machine, meaning it doesn’t use the h264 hardware encoder in the Mac ?

    The gstreamer option works as well, but there’s a slight audio/video sync issue (audio is 100ms ahead of the video). I can’t seem to add delay to the GStreamer queue (it ignores it) :

    queue max-size-buffers=0 max-size-time=0 max-size-bytes=0 min-threshold-time=100000000

    Anyone who has any experience with this ? Thanks !