Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (70)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (10812)

  • Trying to use FFMPEG for android. Compiling but still not working

    15 avril 2014, par Austin Mueller

    So to start off... Im trying to use ffmpeg to compile an array of images into a video on Android.

    I have followed a variety of tutorials online and have gotten as far as being able to compile the lib for Android and still have to project run.
    The repo im now using can be found here : https://github.com/Batterii/android-ffmpeg-x264

    I made a couple tweaks to the setttings.sh just to correct ndk location. Besides that, I followed the instructions and it seemed to work flawlessly.

    After that, I converted the "Project" project into an Android stdio library module.
    Screenshot of android studio module

    I am not getting any compile errors, nor am I getting any runtime errors, or any other errors that I can detect... Nothing on logcat... But I am definitely not getting any video called out.mp4.
    In an onCreate of a particular activity, I am running this code :

    Videokit vk = new Videokit();
    vk.run(new String[]{"ffmpeg", "-r", "1/5", "-i", "%d.jpg", "-c:v", "libx264", "-r", "30", "-pix_fmt", "yuv420p", project.getProjectDirectory() + "/out.mp4"});

    This command is taken from the command line example found here :
    https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images

    Thank you in advance for anyone taking the time to look through this post... I am pretty baffled at this point, as there are no errors I can find and no video...
    Thanks

    ======================================================================

    Update

    Turns out it is not actually compiling correctly... but i have found a few things.
    here is the make file from the Eclipse version of the project

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_MODULE  := videokit
    # These need to be in the right order
    FFMPEG_LIBS := $(addprefix ffmpeg/, \
    libavdevice/libavdevice.a \
    libavformat/libavformat.a \
    libavfilter/libavfilter.a \
    libavcodec/libavcodec.a \
    libswscale/libswscale.a \
    libavutil/libavutil.a \
    libswresample/libswresample.a \
    libpostproc/libpostproc.a )
    # ffmpeg uses its own deprecated functions liberally, so turn off that annoying noise
    LOCAL_CFLAGS += -g -Iffmpeg -Ivideokit -Wno-deprecated-declarations
    LOCAL_LDLIBS += -llog -lz $(FFMPEG_LIBS) x264/libx264.a
    LOCAL_SRC_FILES :=  ffmpeg/cmdutils.c ffmpeg/ffmpeg.c videokit/uk_co_halfninja_videokit_Videokit.c
    include $(BUILD_SHARED_LIBRARY)

    and here is the make file that gradle is auto-generating for me... thanks to Android Studio...

    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)

    LOCAL_MODULE := videokit
    LOCAL_CFLAGS := -g -Isrc/main/jni/ffmpeg -Isrc/main/jni/videokit -Wno-deprecated-declarations
    LOCAL_LDLIBS := \
       -lffmpeg/libavformat/libavformat.a \
       -lffmpeg/libavcodec/libavcodec.a \
       -lffmpeg/libswresample/libswresample.a \
       -lffmpeg/libavfilter/libavfilter.a \
       -lffmpeg/libpostproc/libpostproc.a \
       -lffmpeg/libavdevice/libavdevice.a \
       -lx264/libx264.a \
       -lffmpeg/libavutil/libavutil.a \
       -llog \
       -lz \
       -lffmpeg/libswscale/libswscale.a \

    LOCAL_SRC_FILES := \
       Project/Module/src/main/jni/ffmpeg/cmdutils.c \
       Project/Module/src/main/jni/ffmpeg/ffmpeg.c \
       Project/Module/src/main/jni/videokit/com_t10_project_util_FfmpegHelper.c \

    LOCAL_C_INCLUDES += Project/Module/src/main/jni/ffmpeg/cmdutils.c
    LOCAL_C_INCLUDES += Project/Module/src/main/jni/ffmpeg/ffmpeg.c
    LOCAL_C_INCLUDES += Project/Module/src/main/jni/videokit/com_t10_project_util_FfmpegHelper.c
    LOCAL_C_INCLUDES += Project/Module/src/arm/jni
    LOCAL_C_INCLUDES += Project/Module/src/debug/jni
    LOCAL_C_INCLUDES += Project/Module/src/armDebug/jni

    include $(BUILD_SHARED_LIBRARY)

    And finally, here is my build.gradle

    apply plugin: 'android'

    android {
       compileSdkVersion 19
       buildToolsVersion '19.0.1'

       defaultConfig {
           minSdkVersion 14
           targetSdkVersion 19
           versionCode 1
           versionName "1.0"

           ndk {
               moduleName "videokit"
               stl "stlport_shared"
               ldLibs "log", "z",
                       "ffmpeg/libavdevice/libavdevice.a",
                       "ffmpeg/libavformat/libavformat.a",
                       "ffmpeg/libavfilter/libavfilter.a",
                       "ffmpeg/libavcodec/libavcodec.a",
                       "ffmpeg/libswscale/libswscale.a",
                       "ffmpeg/libavutil/libavutil.a",
                       "ffmpeg/libswresample/libswresample.a",


                 "ffmpeg/libpostproc/libpostproc.a",
                   "x264/libx264.a"
               cFlags "-g -Isrc/main/jni/ffmpeg -Isrc/main/jni/videokit -Wno-deprecated-declarations"

           }
       }

       sourceSets.main {
           jniLibs.srcDir 'src/main/libs'
           jni.srcDirs = ['src/main/jni/ffmpeg/cmdutils.c',
                          'src/main/jni/ffmpeg/ffmpeg.c',
                          'src/main/jni/videokit/com_t10_project_util_FfmpegHelper.c']
       }

       productFlavors {
           x86 {
               versionCode Integer.parseInt("6" + defaultConfig.versionCode)
               ndk {
                   abiFilter "x86"
               }
           }
           mips {
               versionCode Integer.parseInt("4" + defaultConfig.versionCode)
               ndk {
                   abiFilter "mips"
               }
           }
           armv7 {
               versionCode Integer.parseInt("2" + defaultConfig.versionCode)
               ndk {
                   abiFilter "armeabi-v7a"
               }
           }
           arm {
               versionCode Integer.parseInt("1" + defaultConfig.versionCode)
               ndk {
                   abiFilter "armeabi"
               }
           }
           fat
       }

       buildTypes {
           release {
               runProguard false
               proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
           }
       }
    }

    dependencies {
       compile 'com.android.support:support-v4:19.0.0'
       compile fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    }

    As you can see, my build.gradle generates something that is pretty close to the original... but not the same. When i try to run/compile it, gradle spits this out

    Executing tasks: [:Project:assembleArmDebug]

    :Project:compileArmDebugNdkcc1: warning: Project/Module/src/main/jni/ffmpeg/cmdutils.c: not a directory [enabled by default]
    cc1: warning: Project/Module/src/main/jni/ffmpeg/ffmpeg.c: not a directory [enabled by default]
    cc1: warning: Project/Module/src/main/jni/videokit/com_t10_project_util_FfmpegHelper.c: not a directory [enabled by default]
    In file included from Project/Module/src/main/jni/ffmpeg/cmdutils.c:32:0:
    Project/Module/src/main/jni/ffmpeg/libavformat/avformat.h:82:32: fatal error: libavcodec/avcodec.h: No such file or directory
    compilation terminated.
    make: *** [Project/Module/build/ndk/arm/debug/obj/local/armeabi/objs/videokit/Project/Module/src/main/jni/ffmpeg/cmdutils.o] Error 1
    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':Project:compileArmDebugNdk'.
    > com.android.ide.common.internal.LoggedErrorException: Failed to run command:
       android-ndk-r9d/ndk-build NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=Project/Module/build/ndk/arm/debug/Android.mk APP_PLATFORM=android-19 NDK_OUT=Project/Module/build/ndk/arm/debug/obj NDK_LIBS_OUT=Project/Module/build/ndk/arm/debug/lib APP_STL=stlport_shared APP_ABI=armeabi
     Error Code:
       2
     Output:
       cc1: warning: Project/Module/src/main/jni/ffmpeg/cmdutils.c: not a directory [enabled by default]
       cc1: warning: Project/Module/src/main/jni/ffmpeg/ffmpeg.c: not a directory [enabled by default]
       cc1: warning: Project/Module/src/main/jni/videokit/com_t10_project_util_FfmpegHelper.c: not a directory [enabled by default]
       In file included from Project/Module/src/main/jni/ffmpeg/cmdutils.c:32:0:
       Project/Module/src/main/jni/ffmpeg/libavformat/avformat.h:82:32: fatal error: libavcodec/avcodec.h: No such file or directory
       compilation terminated.
       make: *** [Project/Module/build/ndk/arm/debug/obj/local/armeabi/objs/videokit/Project/Module/src/main/jni/ffmpeg/cmdutils.o] Error 1


    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 8.184 secs

    I've been messing around with it for a couple hours now and pretty much every time, i get gradle yelling at me about the fact that it can't find some file. I'm beginning to think that maybe it is because my LOCAL_LDLIBS aren't in the same order as the original...? Im not entirely sure... Does anyone else have any ideas...?

  • how to save h264 stream into .264 file

    6 mars 2015, par user3547405

    I’m using nginx-rtmp-module build hls server, when I play it on safari, it does not shows image,then i use this command ffmpeg -i rtmp://192.168.4.213/hls/testH264 -c copy -map 0 -f segment -segment_list playlist.m3u8 -segment_time 5 output%03d.ts, it shows missing picture in access unit with size 28184,so i think maybe the raw h264 stream has some problem,then i directly save the h264 stream into .264 file,but when i play the .264 file with vlc,the screen is fuzzy,help

  • Libav linking error : undefined references

    22 février 2017, par Fedech

    Here’s my problem :

    • I built ffmpeg from source (version 1.2), the libav* libraries are in /usr/local/lib and they’re static
    • I’m compiling a ns3 (www.nsnam.org) module, so my only control over the linker is through the env variable LINKFLAGS
    • In the source the headers are in a "extern C" block, so it’s not the usual g++ name mangling
    • I set LINKFLAGS="-I/usr/local/include/libavformat -I/usr/local/include/libavcodec -I/usr/local/include/libavutil -L/usr/local/lib -lavformat -lavcodec -lavutil", and the linker can’t seem to find any of the libav* functions I call (I get a lot of "undefined reference" and then "collect2 : error : ld returned status 1"

    Can anyone help me ? Thanks...

    edit : here are a few of the undefined reference messages :

       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_guess_format'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_read_frame'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `avformat_write_header'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_interleaved_write_frame'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_find_stream_info'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_register_all'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_init_packet'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `avformat_alloc_context'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `av_dump_format'
       ./libns3.14.1-qoe-monitor-debug.so: undefined reference to `avio_close'

    edit2 : here is the message I get after "build failed" :

    -> task in 'scratch-simulator' failed (exit status 1):
    {task 53952272: cxxprogram scratch-simulator.cc.1.o -> scratch-simulator}
    ['/usr/bin/g++', '-I/usr/local/include/libavcodec', '-I/usr/local/include/libavformat/',
    '-I/usr/local/include/libavutil/', '-L/usr/local/lib', '-I/usr/local
    /include/libavcodec', '-I/usr/local/include/libavformat/', '-I/usr/local/include
    /libavutil/', '-L/usr/local/lib', '-pthread', '-pthread', '-Wl,-z,relro',
    'scratch/scratch-simulator.cc.1.o', '-o', '/home/fede/Thesis/ns-allinone-3.14.1
    /ns-3.14.1/build/scratch/scratch-simulator', '-Wl,-Bstatic', '-Wl,-Bdynamic',
    '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
    '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
    '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
    '-L.', '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-lns3.14.1-test-debug', '-lns3.14.1-
    csma-layout-debug', '-lns3.14.1-point-to-point-layout-debug', '-lns3.14.1-netanim-
    debug', '-lns3.14.1-lte-debug', '-lns3.14.1-spectrum-debug', '-lns3.14.1-antenna-
    debug', '-lns3.14.1-aodv-debug', '-lns3.14.1-dsdv-debug', '-lns3.14.1-dsr-debug',
    '-lns3.14.1-mesh-debug', '-lns3.14.1-olsr-debug', '-lns3.14.1-csma-debug', '-lns3.14.1-
    wimax-debug', '-lns3.14.1-applications-debug', '-lns3.14.1-virtual-net-device-debug',
    '-lns3.14.1-uan-debug', '-lns3.14.1-energy-debug', '-lns3.14.1-flow-monitor-debug',
    '-lns3.14.1-nix-vector-routing-debug', '-lns3.14.1-tap-bridge-debug', '-lns3.14.1-
    visualizer-debug', '-lns3.14.1-internet-debug', '-lns3.14.1-bridge-debug', '-lns3.14.1-
    point-to-point-debug', '-lns3.14.1-mpi-debug', '-lns3.14.1-wifi-debug', '-lns3.14.1-
    buildings-debug', '-lns3.14.1-propagation-debug', '-lns3.14.1-mobility-debug',
    '-lns3.14.1-config-store-debug', '-lns3.14.1-tools-debug', '-lns3.14.1-stats-debug',
    '-lns3.14.1-emu-debug', '-lns3.14.1-topology-read-debug', '-lns3.14.1-network-debug',
    '-lns3.14.1-qoe-monitor-debug', '-lns3.14.1-core-debug', '-lrt', '-lgsl',
    '-lgslcblas', '-lm', '-ldl', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0',
    '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo',
    '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lxml2',
    '-lpython2.7']