Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (54)

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

Sur d’autres sites (7395)

  • Compiling FFMPEG for android app

    7 mars 2016, par Sanat Pandey

    I have to extract audio from Video file and join multiple images to single video with audio, therefore I have to compile FFMPEG source for our android app. But when I run my build_android.sh it returns some unexpected error. Please suggest any solution regarding the same.

    build_android.sh :

    #!/bin/bash

    NDK=/Users/sanatpandey/Desktop/android-sdk-macosx/android-ndk-r10e
    PLATFORM=$NDK/platforms/android-9/arch-arm/
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64

    function build_one
    {
       ./configure --target-os=linux \
           --prefix=$PREFIX \
           --enable-cross-compile \
           --extra-libs="-lgcc" \
           --arch=arm \
           --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
           --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
           --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
           --sysroot=$PLATFORM \
           --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex \
           -fasm -Wno-psabi -fno-short-enums  -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \
           --disable-shared \
           --enable-static \
           --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib  -nostdlib -lc -lm -ldl -llog" \
           --enable-parsers \
           --enable-encoders  \
           --enable-decoders \
           --disable-muxers \
           --enable-demuxers \
           --enable-swscale  \
           --disable-ffmpeg \
           --disable-ffplay \
           --disable-ffprobe \
           --disable-ffserver \
           --enable-network \
           --enable-indevs \
           --disable-bsfs \
           --enable-filters \
           --enable-protocols  \
           --enable-asm \
           $ADDITIONAL_CONFIGURE_FLAG

           #make clean
           make  -j4 install
           $PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o

           $PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib \
               -L$PLATFORM/usr/lib  -soname libffmpeg.so -shared -nostdlib \
               -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so \
               libavcodec/libavcodec.a libavdevice/libavdevice.a libavfilter/libavfilter.a \
               libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a \
               libswresample/libswresample.a -lc -lm -lz -ldl -llog \
               --dynamic-linker=/system/bin/linker \
               $PREBUILT/lib/gcc/arm-linux-androideabi/4.6/libgcc.a
    }

    #arm v6 ¹öÀü ÄÄÆÄÀÏ
    CPU=armv6
    OPTIMIZE_CFLAGS="-marm -march=$CPU"
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=
    #build_one

    #arm v7vfpv3 ¹öÀü ÄÄÆÄÀÏ
    CPU=armv7-a
    OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=
    #build_one

    #arm v7vfp ¹öÀü ÄÄÆÄÀÏ
    CPU=armv7-a
    OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU "
    PREFIX=./android/$CPU-vfp
    ADDITIONAL_CONFIGURE_FLAG=
    build_one

    #arm v7n ¹öÀü ÄÄÆÄÀÏ
    CPU=armv7-a
    OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=neon -marm -march=$CPU -mtune=cortex-a8"
    PREFIX=./android/$CPU
    ADDITIONAL_CONFIGURE_FLAG=--enable-neon
    #build_one

    #arm v6+vfp ¹öÀü ÄÄÆÄÀÏ
    CPU=armv6
    OPTIMIZE_CFLAGS="-DCMP_HAVE_VFP -mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU"
    PREFIX=./android/${CPU}_vfp
    ADDITIONAL_CONFIGURE_FLAG=
    #build_one

    Error :

    :android-sdk-macosx sanatpandey$ ./build_android.sh
    ./build_android.sh : line 1 : rtf1ansiansicpg1252cocoartf1347cocoasubrtf570 : command not found
    ./build_android.sh : line 2 : syntax error near unexpected token

    }'
    ./build_android.sh: line 2:

    \fonttbl\f0\fmodern\fcharset0 Courier ;
    :android-sdk-macosx sanatpandey$

    Thanks in advance

  • FFMPEG gives an error for rtp_mpegts on fedora

    6 mars 2017, par chaitanya kiran

    While executing below ffmpeg command on fedora 21 i m facing "Requested output format ’rtp_mpegts’ is not a suitable output format" ; whereas same works on Ubuntu any ideas please.

    ffmpeg -f v4l2 -i /dev/video0 -s 720x480 -pix_fmt yuv420p -vcodec h264 -r 30 -g 15 -ar 0 -streamid 0:48 -bf 2  -f rtp_mpegts rtp://239.0.32.0:50000

    ffmpeg version 2.4.11 Copyright (c) 2000-2015 the FFmpeg developers
    built on Aug 26 2015 19:46:08 with gcc 4.9.2 (GCC) 20150212 (Red Hat
    4.9.2-6) configuration : —prefix=/usr —bindir=/usr/bin —datadir=/usr/share/ffmpeg —incdir=/usr/include/ffmpeg —libdir=/usr/lib —mandir=/usr/share/man —arch=i686 —optflags=’-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables’ —enable-bzlib —disable-crystalhd —enable-frei0r —enable-gnutls —enable-ladspa —enable-libass —enable-libcdio —enable-libdc1394 —disable-indev=jack —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-openal —enable-opencl —enable-libopencv —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvorbis —enable-libv4l2 —enable-libvpx —enable-libx264 —enable-libx265 —enable-libxvid —enable-x11grab —enable-avfilter —enable-avresample —enable-postproc —enable-pthreads —disable-static —enable-shared —enable-gpl —disable-debug —disable-stripping —shlibdir=/usr/lib —cpu=i686 —enable-runtime-cpudetect libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat 56. 4.101 /
    56. 4.101 libavdevice 56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 /
    1. 1.100 libpostproc 53. 0.100 / 53. 0.100 Input #0, video4linux2,v4l2, from ’/dev/video0’ : Duration : N/A, start :
    554538.584009, bitrate : 199065 kb/s
    Stream #0:0 : Video : rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 199065 kb/s, 6 fps, 6 tbr, 1000k tbn, 1000k tbc

    [NULL @ 0x8e94d00] Requested output format ’rtp_mpegts’ is not a suitable output format rtp ://239.0.32.0:50000 : Invalid argument

  • libffmpeg.so Not Executing ffmpeg 2.8.4 Commands

    27 janvier 2016, par Chirag Darji
    • libffmpeg.so is not working with command line arguments
    • I have successfully compiles ffmpeg and get static libffmpeg.so library.
    • I installed using android.mk and its installed successfully
    • but unable to execute ffmpeg command.

      *My build.sh is as follows
      function build_r8b_test
      {
      bash configure --target-os=linux \
      --arch=arm \
      --cpu=cortex-a8 \
      --enable-runtime-cpudetect \
      --prefix=$PREFIX \
      --enable-pic \
      --disable-shared \
      --enable-static \
      --enable-cross-compile \
      --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
      --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
      --sysroot="$PLATFORM" \
      --extra-cflags="-I../x264 -mfloat-abi=softfp -mfpu=neon -fPIE -pie -fPIC -DANDROID -marm -march=armv7-" \
      --extra-ldflags="-L../x264 -L$PREBUILT/lib/gcc/arm-linux-androideabi/4.9" \
      --extra-libs="-lgcc" \
      --enable-gpl \
      --enable-version3 \
      --enable-nonfree \
      --disable-doc \
      --enable-yasm \
      --enable-decoders \
      --enable-encoders \
      --enable-muxers \
      --enable-demuxers \
      --enable-parsers \
      --enable-protocols \
      --enable-filters \
      --disable-indevs \
      --disable-outdevs \
      --enable-hwaccels \
      --disable-ffmpeg \
      --disable-ffplay \
      --disable-ffprobe \
      --disable-ffserver \
      --disable-network \
      --enable-zlib \
      --enable-demuxer=mov \
      --enable-demuxer=h264 \
      --enable-protocol=file \
      --enable-avformat \
      --enable-avcodec \
      --enable-decoder=rawvideo \
      --enable-decoder=mjpeg \
      --enable-decoder=h263 \
      --enable-decoder=mpeg4 \
      --enable-decoder=h264 \
      --enable-parser=h264 \
      --enable-encoder=mpeg4 \
      --disable-asm \
      --enable-neon \
      --enable-armv5te \
      --disable-network \
      --enable-avfilter \
      --disable-avdevice \
      --enable-postproc \

      $ADDITIONAL_CONFIGURE_FLAG
      make clean
      make
      make  -j4 install
      $PREBUILT/bin/arm-linux-androideabi-ld -rpath-          link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib  -soname libffmpeg.so -shared -nostdlib  -z noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libavfilter/libavfilter.a libpostproc/libpostproc.a libswresample/libswresample.a libswscale/libswscale.a   -lc -lm -lz -ldl -llog  --warn-search-mismatch  --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.9/libgcc.a
      }
      #arm v7vfpv3
      CPU=armv7-a
      OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
      PREFIX=./android/$CPU
      ADDITIONAL_CONFIGURE_FLAG=
      build_r8b_test

      * and my androi.mk is as follow
      LOCAL_PATH := $(call my-dir)
      APP_ABI := armeabi-v7a
      include $(CLEAR_VARS)
      LOCAL_MODULE =myffmpeg
      LOCAL_SRC_FILES :=libffmpeg.so
      include $(PREBUILT_SHARED_LIBRARY)
      include $(CLEAR_VARS)
      PATH_TO_FFMPEG_SOURCE:=$(LOCAL_PATH)/ffmpeg
      LOCAL_C_INCLUDES += $(PATH_TO_FFMPEG_SOURCE)
      LOCAL_MODULE=ffmpeg-jni
      LOCAL_LDLIBS := -L/home/admin/android-sdk-linux/ndk-bundle/platforms/android-21/arch-arm/usr/lib -L$(LOCAL_PATH) -llog -ljnigraphics -lz -ldl -lgcc -lm
      LOCAL_SRC_FILES := ffmpeg-jni.c ffmpeg/cmdutils.h ffmpeg/cmdutils.c ffmpeg/ffmpeg.h ffmpeg/ffmpeg_opt.c ffmpeg/ffmpeg_filter.c

      LOCAL_SHARED_LIBRARIES:=myffmpeg
      include $(BUILD_SHARED_LIBRARY)
      • I have successfully installed armeabi obj and armeabi-v7a
        But it is not works simple ffmpeg command like (ffmpeg -y -i /mnt/sdcard/app.mp4 /mnt/sdcard/app.mkv).
        Applciation is terminate at ret = ffmpeg_parse_options(argc, argv) ; in ffmpeg-jni.c
        which is copied from ffmpeg.c.
        If i am doing wrond build please help me to get out this.