Recherche avancée

Médias (0)

Mot : - Tags -/acrobat

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

Autres articles (47)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (3043)

  • Convert WMV to mp4 using ffmpeg get Black screen

    16 mars 2015, par HawkEye000

    When converting an .wmv file to .mp4 i used this command :

    exec("ffmpeg -i file.wmv -vcodec mpeg4 -acodec libfaac -b 1200 -r 15 -s 320x240 -pix_fmt yuv420p file.mp4") ;

    Sound is fine but i have no image (using html5 not when downloaded to pc) .
    this is the outputs :

    FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
     built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
     libavutil     50.15. 1 / 50.15. 1
     libavcodec    52.72. 2 / 52.72. 2
     libavformat   52.64. 2 / 52.64. 2
     libavdevice   52. 2. 0 / 52. 2. 0
     libavfilter    1.19. 0 /  1.19. 0
     libswscale     0.11. 0 /  0.11. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    [wmv3 @ 0xc2daa0]Extra data: 8 bits left, value: 20

    Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
    Input #0, asf, from '/home/xxx/public_html/new/zawmju.wmv':
     Metadata:
       Application     : Windows Movie Maker 2.6.4037.0
       WM/ParentalRating:
       WMFSDKVersion   : 12.0.9200.16384
       WMFSDKNeeded    : 0.0.0.0000
       IsVBR           : 0
       title           :
       author          : SahlaTube
       copyright       :
       comment         :
     Duration: 00:00:04.03, start: 2.000000, bitrate: 740 kb/s
       Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
       Stream #0.1: Video: wmv3, yuv420p, 640x480, 30 tbr, 1k tbn, 1k tbc
    [wmv3 @ 0xc2daa0]Extra data: 8 bits left, value: 20
    Output #0, mp4, to '/home/xxx/public_html/new/zawmju.wmv.mp4':
     Metadata:
       encoder         : Lavf52.64.2
       Stream #0.0: Video: mpeg4, yuv420p, 320x240, q=2-31, 1 kb/s, 15 tbn, 15 tbc
       Stream #0.1: Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.1 -> #0.0
     Stream #0.0 -> #0.1
    Press [q] to stop encoding
    frame=   61 fps=  0 q=24.8 Lsize=      82kB time=4.02 bitrate= 166.4kbits/s dup=0 drop=59    

    video:55kB audio:24kB global headers:0kB muxing overhead 3.828952%
  • Mix 2 mp3 files with FFmpeg for Android

    24 mai 2017, par Thankgod Richard

    I am developing something similar to a karaoke app. I have a sound file(beat) and a recorded file(voice) from android mediarecorder. I am trying to mix the two files to become one file that plays the same time. I have set up ffmpeg provided by writingminds and everything is working fine. I am not familiar with ffmpeg commands so searched for and got few commands that can achieve the task for me. This is the code i got :

     String files = "-i " + currentFile + " -i " + someFile.getAbsolutePath();
               String output = mFileName + "/recorded/test.mp3";
               String cmd = "ffmpeg "+files+
                       " -filter_complex \"aevalsrc=0:d=10[s1];[s1][1:a]concat=n=2:v=0:a=1[ac1];[0:a][ac1]amix[aout]\" -map [aout] -c:a libmp3lame " + output;

    But it not working. this is the error i got :

    04-01 12:09:26.598 21300-21300/com.shixels.thankgodrichard.mixer I/fpeg: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
                                                                              built with gcc 4.8 (GCC)
                                                                              configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
                                                                              libavutil      55. 17.103 / 55. 17.103
                                                                              libavcodec     57. 24.102 / 57. 24.102
                                                                              libavformat    57. 25.100 / 57. 25.100
                                                                              libavdevice    57.  0.101 / 57.  0.101
                                                                              libavfilter     6. 31.100 /  6. 31.100
                                                                              libswscale      4.  0.100 /  4.  0.100
                                                                              libswresample   2.  0.101 /  2.  0.101
                                                                              libpostproc    54.  0.100 / 54.  0.100
                                                                            Output #0, mp3, to 'ffmpeg -i /storage/emulated/0/MyStudio/temps/1491044929409.mp3 -i /storage/emulated/0/temp.mp3 -filter_complex "aevalsrc=0:d=10[s1];[s1][1:a]concat=n=2:v=0:a=1[ac1];[0:a][ac1]amix[aout]" -map [aout] -c:a libmp3lame /storage/emulated/0/recorded/test.mp3':
                                                                            Output file #0 does not contain any stream
    04-01 12:09:26.599 21300-21300/com.shixels.thankgodrichard.mixer I/fpeg: finished

    I read some answers here saying it depends on the version of the ffmpeg your using. I am using the latest ffmpeg for android by writingminds.

  • Cant link against ffmpeg with openssl using cmake

    24 mars 2017, par David Barishev

    I have build ffmpeg libraries statically for x86 android using a custom configuration.Now i wanted to add them in my android project.

    Im using ffmpeg 3.2.git, android studio 2.3.

    I created a folder named distribution which had my binaries, and the minimum headers i needed for it to not tell me about missing header (Except for the avutil- i just included them all), located the root of my project.
    I edited my cmake to include the libraries :

    add_library(
            native-lib
            SHARED
            src/main/cpp/native-lib.cpp )

    set(distribution_DIR ${CMAKE_SOURCE_DIR}/../distribution)

    add_library(lib_avcodec STATIC IMPORTED)
    set_target_properties(lib_avcodec PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/libavcodec/lib/${ANDROID_ABI}/libavcodec.a)

    add_library(lib_avfilter STATIC IMPORTED)
    set_target_properties(lib_avfilter PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/libavfilter/lib/${ANDROID_ABI}/libavfilter.a)

    add_library(lib_avformat STATIC IMPORTED)
    set_target_properties(lib_avformat PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/libavformat/lib/${ANDROID_ABI}/libavformat.a)

    add_library(lib_avutil STATIC IMPORTED)
    set_target_properties(lib_avutil PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/libavutil/lib/${ANDROID_ABI}/libavutil.a)

    add_library(lib_swresample STATIC IMPORTED)
    set_target_properties(lib_swresample PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/libswresample/lib/${ANDROID_ABI}/libswresample.a)


    include_directories(
                             ${distribution_DIR}
                             )

    find_library( # Sets the name of the path variable.
             z-lib

             # Specifies the name of the NDK library that
             # you want CMake to locate.
             z )

    target_link_libraries(
                      native-lib

                      ${z-lib}

                      lib_crypto
                      lib_ssl

                      lib_avfilter
                      lib_avformat
                      lib_avcodec
                      lib_swresample

                      lib_avutil

                       )

    I also restricted the build to only x86, in my app build.gradle :

    ndk {
               // Specifies the ABI configurations of your native
               // libraries Gradle should build and package with your APK.
               abiFilters 'x86'
       }

    The project gradle sync worked successfully.
    I wrote the following code in my cpp file :

    #include


    extern "C"{
       #include "libavformat/avformat.h"
    }
    JNIEXPORT void JNICALL
    Java_com_example_david_testffmpegcpp_MainActivity_stringFromJNI(
           JNIEnv *env,
           jobject /* this */) {

       av_register_all ();
       avformat_network_init ();


    }

    Just to check if the library works, but i cant seem to link against the libraries correctly. It complains about undefined symbols.
    What did i do wrong ?

    EDIT :

    I changed the order of the linked libraries, and was able to remove all error for ffmpeg’s library functions not found, and i added zlib,that removed some more.

    The only error left are those how are related to openssl, its logical since i compiled my ffmpeg libraries with openssl.

    I tried linking my openssl static libraries that i used for compiling ffmpeg like this :

    set(ssl_dir ${CMAKE_SOURCE_DIR}/../../../FFmpegBuild/Openssl/output_19/android)

    add_library(lib_ssl STATIC IMPORTED)
    set_target_properties(lib_ssl PROPERTIES IMPORTED_LOCATION
       ${ssl_dir}/openssl-${ANDROID_ABI}/lib/libssl.a)

    add_library(lib_crypto STATIC IMPORTED)
    set_target_properties(lib_crypto PROPERTIES IMPORTED_LOCATION
       ${ssl_dir}/openssl-${ANDROID_ABI}/lib/libcrypto.a)

    include_directories(      ${ssl_dir}/openssl-${ANDROID_ABI}/include
                             ${distribution_DIR}

                             )

    And linked against them :

    target_link_libraries( # Specifies the target library.
                          native-lib

                          ${z-lib}


                          lib_ssl
                          lib_crypto

                          lib_avfilter
                          lib_avformat
                          lib_avcodec
                          lib_swresample

                          lib_avutil

                           )

    But i’m still getting the error that i state below.
    My question is why ? Also if i already built ffmpeg in static mode, how come i need to relink openssl again ?

    Error :

    Error while executing process D:\AndroidSDK\cmake\3.6.3155560\bin\cmake.exe with arguments {--build D:\AndroidApps\TestFFmpegCpp\app\.externalNativeBuild\cmake\debug\x86 --target native-lib}
    [1/1] Linking CXX shared library ..\..\..\..\build\intermediates\cmake\debug\obj\x86\libnative-lib.so
    FAILED: cmd.exe /C "cd . && D:\AndroidSDK\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe  --target=i686-none-linux-android --gcc-toolchain=D:/AndroidSDK/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64 --sysroot=D:/AndroidSDK/ndk-bundle/platforms/android-19/arch-x86 -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -Wa,--noexecstack -Wformat -Werror=format-security  -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -Wa,--noexecstack -Wformat -Werror=format-security   -O0 -fno-limit-debug-info -O0 -fno-limit-debug-info  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o ..\..\..\..\build\intermediates\cmake\debug\obj\x86\libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o  -lz ../../../../../../../FFmpegBuild/Openssl/output_19/android/openssl-x86/lib/libcrypto.a ../../../../../../../FFmpegBuild/Openssl/output_19/android/openssl-x86/lib/libssl.a ../../../../../distribution/libavfilter/lib/x86/libavfilter.a ../../../../../distribution/libavformat/lib/x86/libavformat.a ../../../../../distribution/libavcodec/lib/x86/libavcodec.a ../../../../../distribution/libswresample/lib/x86/libswresample.a ../../../../../distribution/libavutil/lib/x86/libavutil.a -lm "D:/AndroidSDK/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_static.a" && cd ."
    src/libavformat/tls_openssl.c:125: error: undefined reference to 'BIO_clear_flags'
     src/libavformat/tls_openssl.c:102: error: undefined reference to 'BIO_clear_flags'
     src/libavformat/tls_openssl.c:116: error: undefined reference to 'BIO_clear_flags'
     src/libavformat/tls_openssl.c:116: error: undefined reference to 'BIO_clear_flags'
     src/libavformat/tls_openssl.c:309: error: undefined reference to 'SSL_read'
     src/libavformat/tls_openssl.c:200: error: undefined reference to 'ERR_get_error'
     src/libavformat/tls_openssl.c:200: error: undefined reference to 'ERR_error_string'
     src/libavformat/tls_openssl.c:320: error: undefined reference to 'SSL_write'
     src/libavformat/tls_openssl.c:200: error: undefined reference to 'ERR_get_error'
     src/libavformat/tls_openssl.c:200: error: undefined reference to 'ERR_error_string'
     src/libavformat/tls_openssl.c:154: error: undefined reference to 'SSL_library_init'
     src/libavformat/tls_openssl.c:155: error: undefined reference to 'SSL_load_error_strings'
     src/libavformat/tls_openssl.c:157: error: undefined reference to 'CRYPTO_get_locking_callback'
     src/libavformat/tls_openssl.c:159: error: undefined reference to 'CRYPTO_num_locks'
     src/libavformat/tls_openssl.c:165: error: undefined reference to 'CRYPTO_num_locks'
     src/libavformat/tls_openssl.c:167: error: undefined reference to 'CRYPTO_set_locking_callback'
     src/libavformat/tls_openssl.c:186: error: undefined reference to 'CRYPTO_get_locking_callback'
     src/libavformat/tls_openssl.c:188: error: undefined reference to 'CRYPTO_set_locking_callback'
     src/libavformat/tls_openssl.c:189: error: undefined reference to 'CRYPTO_num_locks'
     src/libavformat/tls_openssl.c:208: error: undefined reference to 'SSL_shutdown'
     src/libavformat/tls_openssl.c:209: error: undefined reference to 'SSL_free'
     src/libavformat/tls_openssl.c:212: error: undefined reference to 'SSL_CTX_free'
     src/libavformat/tls_openssl.c:240: error: undefined reference to 'SSLv23_client_method'
     src/libavformat/tls_openssl.c:240: error: undefined reference to 'SSL_CTX_new'
     src/libavformat/tls_openssl.c:246: error: undefined reference to 'SSL_CTX_ctrl'
     src/libavformat/tls_openssl.c:248: error: undefined reference to 'SSL_CTX_load_verify_locations'
     src/libavformat/tls_openssl.c:251: error: undefined reference to 'SSL_CTX_use_certificate_chain_file'
     src/libavformat/tls_openssl.c:257: error: undefined reference to 'SSL_CTX_use_PrivateKey_file'
     src/libavformat/tls_openssl.c:267: error: undefined reference to 'SSL_new'
     src/libavformat/tls_openssl.c:284: error: undefined reference to 'BIO_new'
     src/libavformat/tls_openssl.c:287: error: undefined reference to 'SSL_set_bio'
     src/libavformat/tls_openssl.c:290: error: undefined reference to 'SSL_accept'
     src/libavformat/tls_openssl.c:240: error: undefined reference to 'SSLv23_server_method'
     src/libavformat/tls_openssl.c:258: error: undefined reference to 'ERR_get_error'
     src/libavformat/tls_openssl.c:258: error: undefined reference to 'ERR_error_string'
     src/libavformat/tls_openssl.c:208: error: undefined reference to 'SSL_shutdown'
     src/libavformat/tls_openssl.c:209: error: undefined reference to 'SSL_free'
     src/libavformat/tls_openssl.c:212: error: undefined reference to 'SSL_CTX_free'
     src/libavformat/tls_openssl.c:290: error: undefined reference to 'SSL_connect'
     src/libavformat/tls_openssl.c:200: error: undefined reference to 'ERR_get_error'
     src/libavformat/tls_openssl.c:200: error: undefined reference to 'ERR_error_string'
     src/libavformat/tls_openssl.c:266: error: undefined reference to 'SSL_CTX_set_verify'
     src/libavformat/tls_openssl.c:289: error: undefined reference to 'SSL_ctrl'
     clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
     ninja: build stopped: subcommand failed.