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)

  • where to save mpd file in raspberry pi so dash.js can access it remotely ?

    11 mai 2016, par Djm

    This is very high level question. I want to stream a live video from raspberry pi. I want to be able to watch live video in the browser remotely being streamed by the Raspberry pi.I want to use DASH stream protocol, and Dash.js as client to HTML5. I have looked through different tutorials but i am still puzzled about how this works.I understand that (assuming you have already prepared your videos with FFMPEG tool) from the client Dash.js
    you have to make a call/request and pass a url to your mpd file. My question is where would you save the file in raspberry pi especially if the Dash client is in a different web app(i want to make the call remotely) ?

  • Extracting a clip from a video with low fps

    1er juin 2016, par superMind

    I want to extract a clip from a video( downloaded from [1]) (which has low frame rate) by specifying the start and end time. In order to do that, I use the following command :

    ffmpeg -i example.webm -ss 116.38 -to 126.38 clip.mpg

    however, I get the following error :


    ffmpeg version N-80026-g936751b Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
    configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
    libavutil 55. 24.100 / 55. 24.100
    libavcodec 57. 42.100 / 57. 42.100
    libavformat 57. 36.100 / 57. 36.100
    libavdevice 57. 0.101 / 57. 0.101
    libavfilter 6. 45.100 / 6. 45.100
    libavresample 3. 0. 0 / 3. 0. 0
    libswscale 4. 1.100 / 4. 1.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Input #0, matroska,webm, from 'example.webm':
    Metadata:
    encoder : Google
    Duration: 00:04:22.29, start: 0.000000, bitrate: 207 kb/s
    Stream #0:0: Video: vp8, yuv420p, 630x360, SAR 1:1 DAR 7:4, 6 fps, 6 tbr, 1k tbn (default)
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    [mpeg1video @ 0x252f200] MPEG1/2 does not support 5/1 fps
    Output #0, mpeg, to 'clip.mpg':
    Metadata:
    encoder : Google
    Stream #0:0: Unknown: none, SAR 1:1 DAR 0:0 (default)
    Metadata:
    encoder : Lavc57.42.100 mpeg1video
    Stream #0:1: Unknown: none (default)
    Metadata:
    encoder : Lavc57.42.100 mp2
    Stream mapping:
    Stream #0:0 -> #0:0 (vp8 (native) -> mpeg1video (native))
    Stream #0:1 -> #0:1 (vorbis (native) -> mp2 (native))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    -----------------------------------------------------

    I tried by adding -r 20 to the above command. It works in this case but not sure this is correct way to do it.
    I was wondering how can I extract the clip from this video given start time and endtime ? what are parameters should I use ? or what is correct way to do it ?

    Thanks.

    [1]https://www.youtube.com/watch?v=Yc52pGHr0xc

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