Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (67)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • 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 ;

Sur d’autres sites (10859)

  • Android ndk ffmpeg : Unknown mnemonic error

    1er juin 2016, par Wasabi.Mayo

    I’m building a simple video app and want to embed a watermark on the recorded videos. I am using ffmpeg for this process and have successfully compiled it. The issue is when I try to link it with my project in Android Studio using ndk-build.cmd command, it gives me the following error :

    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s: Assembler messages:
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8547: Error: unknown mnemonic `itt' -- `itt gt'
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8548: Error: unknown mnemonic `movgt' -- `movgt x25,x0'
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8549: Error: unknown mnemonic `movgt' -- `movgt x0,x1'
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8551: Error: unknown mnemonic `it' -- `it le'
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8552: Error: unknown mnemonic `movle' -- `movle x0,x2'
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8554: Error: unknown mnemonic `it' -- `it gt'
    C:\Users\MyPC\AppData\Local\Temp\ccIRLDZn.s:8555: Error: unknown mnemonic `movgt' -- `movgt x25,x0'
    make: *** [obj/local/arm64-v8a/objs/myProject_Videokit/ffmpeg.o] Error 1

    My development environment is

    • OS : Windows10 x86_64
    • Command line : Cygwin 64bit
    • Android NDK version : android-ndk-r11c
    • ffmpeg version : ffmpeg-3.0.2
    • Android Studio : 2.1.1

    First, I installed Cygwin64bit and added ’make’, ’dos2unix’, ’c++ gcc’ packages. And I decompressed ffmpeg folder in C :/android-ndk-r11c/sources. This is the build script I used.

    config.sh

    #!/bin/bash
    NDK=C:/android-ndk-r11c
    SYSROOT=$NDK/platforms/android-9/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64

    #I used cygpath to avoid path errors in Cygwin.

    CUR="$(cygpath -m "$(pwd)")"
    TEMPDIR="$(cygpath -m "/tmp")"
    TMP="$(cygpath -m "/tmp")"
    TMPDIR="$(cygpath -m "/tmp")"
    CPU=arm
    PREFIX=$CUR/android/$CPU
    ADDI_CFLAGS="-marm"

    ./configure
       --prefix=$PREFIX
       --enable-shared
       --disable-static
       --disable-doc
       --disable-ffmpeg
       --disable-ffplay
       --disable-ffprobe
       --disable-ffserver
       --disable-doc
       --disable-symver
       --enable-protocol=concat
       --enable-protocol=file
       --enable-muxer=mp4
       --enable-demuxer=mpegts
       --enable-memalign-hack
       --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi-
       --target-os=linux
       --arch=arm
       --enable-cross-compile
       --sysroot=$SYSROOT
       --extra-cflags="-Os -fpic $ADDI_CFLAGS"
       --extra-ldflags="$ADDI_LDFLAGS"
       $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install

    I ran this .sh in Cygwin(as administrator) but it didn’t work. So I typed each of those lines on Cygwin and it compiled successfully. I tried both --target-os=android and --target-os=linux, but both didn’t solve the problem above.

    Then I followed this tutorial (enoent.fr/blog/2014/06/20/compile-ffmpeg-for-android/). Based on that, I made a native method in my project and built header file and c file.(To do that, I followed this video. youtube.com/watch ?v=kFtxo7rr2HQ)

    After that, I cloned this repo(github.com/HikoQiu/JNI_INVOKE_FFMPEG) and copied - pasted the jni folder into my project. And after making the Android.mk and Application.mk, I ran the C :/android-ndk-r11c/ndk-build.cmd in the Android Studio terminal and it gave me the error above.

    These are the Makefiles I used.

    myProject/app/src/main/jni/Android.mk

    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)
    LOCAL_MODULE    := com_example_project_Videokit
    LOCAL_LDLIBS := -llog -ljnigraphics -lz
    LOCAL_CFLAGS := -Wdeprecated-declarations
    ANDROID_LIB := -landroid
    LOCAL_C_INCLUDES := C:\android-ndk-r11c\sources\ffmpeg-3.0.2
    LOCAL_SRC_FILES := com_example_project_Videokit.c ffmpeg.c ffmpeg_filter.c ffmpeg_opt.c cmdutils.c
    LOCAL_SHARED_LIBRARIES := libavformat libavcodec libswscale libavutil
    include $(BUILD_SHARED_LIBRARY)
    $(call import-module,ffmpeg-3.0.2/android/arm)

    myProject/app/src/main/jni/Application.mk

    APP_ABI := all

    C :/android-ndk-r11c/sources/ffmpeg-3.0.2/android/arm/Android.mk

    LOCAL_PATH:= $(call my-dir)

    include $(CLEAR_VARS)
    LOCAL_MODULE:= libavcodec
    LOCAL_SRC_FILES:= lib/libavcodec-57.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE:= libavformat
    LOCAL_SRC_FILES:= lib/libavformat-57.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE:= libswscale
    LOCAL_SRC_FILES:= lib/libswscale-4.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE:= libavutil
    LOCAL_SRC_FILES:= lib/libavutil-55.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE:= libavfilter
    LOCAL_SRC_FILES:= lib/libavfilter-6.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
    include $(PREBUILT_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE:= libwsresample
    LOCAL_SRC_FILES:= lib/libswresample-2.so
    LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
    include $(PREBUILT_SHARED_LIBRARY)

    And this is my project structure so far. com_example_myProjct.c is the file that I used as a moduleName in build.gradle file and as LOCAL_MODULE in Android.mk .

    app
    - build
    - libs
    - src
      - androidTest
      - main
        - java
           -com.example.myProject
             -MainActivity
             -Videokit   //this is the class where I called the native method.
        - jni
           -Android.mk
           -Application.mk
           -cmdutils.c
           -cmdutils.h
           -com_example_myProject.c
           -com_example_myProject.h
           -ffmpeg.c
           -ffmpeg.h
           -ffmpeg_filter.c
           -ffmpeg_opt.c
           -ffmpeg_opt.h
           -logjam.h
      - obj
      - res
      AndroidManifest.xml
    - test

    app/gradle.build

    apply plugin: 'com.android.application'

    android {
       compileSdkVersion 23
       buildToolsVersion "23.0.2"

       defaultConfig {
           applicationId "com.example.myProjct"
           minSdkVersion 14
           targetSdkVersion 23
           versionCode 1
           versionName "1.0.0"

           ndk {
               moduleName "com_example_myProjet_Videokit"
           }
           sourceSets.main {
               jni.srcDirs = []
               jniLibs.srcDir 'src/main/libs'
           }
       }

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

    dependencies {
       compile fileTree(dir: 'libs', include: ['*.jar'])
       testCompile 'junit:junit:4.12'
       compile 'com.android.support:appcompat-v7:23.4.0'
    }

    Any ideas ?

  • I can't seem to install opencv2.4.13 for Python3.4 on Mac El Capitan

    1er juin 2016, par ThatProgrammerDude

    This has been driving me nuts. I have been working on this non stop for a week. I have looked at many tutorials online they did not help.

    I have tried so much I don’t even remember what I tried. I can say the last thing I tried though.. which is this video https://www.youtube.com/watch?v=U49CVY8yOxw.

    So I download opencv2.4.13, create the build folder, open cmake, configure, generate and then go to terminal and type in make.

    I get this :

    Richie's Macbook Air:build Richie$ make
    [  2%] Built target zlib
    [  6%] Built target libtiff
    [ 10%] Built target libjpeg
    [ 14%] Built target libjasper
    [ 16%] Built target libpng
    [ 23%] Built target IlmImf
    [ 26%] Built target opencv_core
    [ 31%] Built target opencv_imgproc
    [ 32%] Built target opencv_video
    [ 32%] Built target opencv_flann
    [ 32%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o
    In file included from /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg.cpp:45:
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:71:6: error:
         "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"
       #error "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"
        ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:481:9: error:
         use of undeclared identifier 'sws_freeContext'
           sws_freeContext(img_convert_ctx);
           ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:965:17: error:
         use of undeclared identifier 'SWS_BICUBIC'
                   SWS_BICUBIC,
                   ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:998:5: error:
         use of undeclared identifier 'sws_scale'
       sws_scale(
       ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1639:46: error:
         use of undeclared identifier 'SWS_BICUBIC'
                                                SWS_BICUBIC,
                                                ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1645:14: error:
         use of undeclared identifier 'sws_scale'
           if ( sws_scale(img_convert_ctx, input_picture->data,
                ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1693:9: error:
         use of undeclared identifier 'sws_freeContext'
           sws_freeContext(img_convert_ctx);
           ^
    /Users/Richie/Downloads/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:2290:9: warning:
         ignoring return value of function declared with warn_unused_result
         attribute [-Wunused-result]
           avformat_write_header(oc_, NULL);
           ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
    1 warning and 7 errors generated.
    make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1
    make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
    make: *** [all] Error 2
    Richie's Macbook Air:build Richie$

    From what I can see, it says

    "libswscale is necessary to build the newer OpenCV ffmpeg wrapper"

    I have tried googling though to no avail, does anyone know ?

    EDIT : I do have ffmpeg installed... (brew).

  • FFMPEG merge two .mp4 videos - resolution distorted

    9 juin 2016, par Misha Moryachok

    I am trying to merge two .mp4 videos, and in some cases the seconds video part is distorted in the output video. Providing an example below :
    https://www.youtube.com/watch?v=wWMNTBWJ37A

    The real video is : https://www.youtube.com/watch?v=ASio-j-Epi8

    As you can see, we added intro before the real content, however, the real content is stretched.
    In my opinion it happens because first video is 1280x720 and the second is 460x720.

    Providing commands for merging videos :

    *1st step (convert the videos from .mp4 to .ts)

    ffmpeg -i videoPathMP4 -c copy -bsf:v h264_mp4toannexb -f mpegts videoPathTS

    *2nd step (merge videos)

    ffmpeg -i "concat:$video1 | $video2" -c copy -bsf:a aac_adtstoasc $meagePathMP4

    Video output is like you saw in provided videolink on youtube.
    I also tried to change the first video resolution to be like the second video :

    ffmpeg -i inputVideo.mp4 -s 460x720 outputVideo.mp4

    However it doesn’t helped.
    Is anyone know how to solve this ?
    Thanks