Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (32)

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

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (6672)

  • ffmpeg main() function in android studio

    21 avril 2016, par Spartan

    Here I am trying to use ffmpeg with gradle experimental plugin.

    This is how I included all my shared libraries and their headers in repositories

    repositories {
       libs(PrebuiltLibraries) {
           libavdevice {
               headers.srcDir "/home/spartan/AndroidStudioProjects/Hello/app/src/main/jni/include"
               binaries.withType(SharedLibraryBinary) {
                   sharedLibraryFile = file("/home/spartan/AndroidStudioProjects/Hello/app/src/main/jniLibs/${targetPlatform.getName()}/libavdevice-57.so")
               }
           }

           libavcodec {
               headers.srcDir "/home/spartan/AndroidStudioProjects/Hello/app/src/main/jni/include"
               binaries.withType(SharedLibraryBinary) {
                   sharedLibraryFile = file("/home/spartan/AndroidStudioProjects/Hello/app/src/main/jniLibs/${targetPlatform.getName()}/libavcodec-57.so")
               }
           }

           libavutil {
               headers.srcDir "/home/spartan/AndroidStudioProjects/Hello/app/src/main/jni/include"
               binaries.withType(SharedLibraryBinary) {
                   sharedLibraryFile = file("/home/spartan/AndroidStudioProjects/Hello/app/src/main/jniLibs/${targetPlatform.getName()}/libavutil-55.so")
               }
           }

           libavformat {
               headers.srcDir "/home/spartan/AndroidStudioProjects/Hello/app/src/main/jni/include"
               binaries.withType(SharedLibraryBinary) {
                   sharedLibraryFile = file("/home/spartan/AndroidStudioProjects/Hello/app/src/main/jniLibs/${targetPlatform.getName()}/libavformat-57.so")
               }
           }

           libswscale {
               headers.srcDir "/home/spartan/AndroidStudioProjects/Hello/app/src/main/jni/include"
               binaries.withType(SharedLibraryBinary) {
                   sharedLibraryFile = file("/home/spartan/AndroidStudioProjects/Hello/app/src/main/jniLibs/${targetPlatform.getName()}/libswscale-4.so")
               }
           }

           libswresample {
               headers.srcDir "/home/spartan/AndroidStudioProjects/Hello/app/src/main/jni/include"
               binaries.withType(SharedLibraryBinary) {
                   sharedLibraryFile = file("/home/spartan/AndroidStudioProjects/Hello/app/src/main/jniLibs/${targetPlatform.getName()}/libswresample-2.so")
               }
           }



       }
    }

    android.ndk {    
           moduleName = "video_trim"
           ldLibs.addAll(["log", "android","jnigraphics"])
       }


       android.sources {
           main {
               jni {
                   dependencies {
                      library "libavdevice" linkage "shared"
                      library "libavcodec" linkage "shared"
                      library "libavutil" linkage "shared"
                      library "libavformat" linkage "shared"
                      library "libswscale" linkage "shared"
                      library "libswresample" linkage "shared"

                   }
               }
           }
       }

    I tested one ffmpeg function(without using main function) which is running successfully. So this configuration seems ok.

    No I want to use ffmpeg.c’smain() function to use cmd for that I manually copy pasted ffmpeg.c,cmdutils.c, cmdutils.h, ffmpeg_filter.c, ffmpeg_opt.c,ffmpeg.h in my jni folder along with video_trim.c.( I took refrence from halfninja ).

    Here I am not using Andoid.mk so instead of LOCAL_C_INCLUDES, tried like this(updated android.ndk) to include ffmpeg folder(cppFlags was not working so I used CFlags also) :

    android.ndk {  
           moduleName = "video_trim"

           cppFlags.add("-I/home/spartan/ndk/android-ndk-r11c/sources/ffmpeg-3.0.1")
           CFlags.add("-I/home/spartan/ndk/android-ndk-r11c/sources/ffmpeg-3.0.1")

           ldLibs.addAll(["log", "android","jnigraphics"])
       }

    But I am getting lot of undefined reference to error.
    Ex :

    /home/spartan/AndroidStudioProjects/Hello/app/src/main/none/cmdutils.c
    Error:(1086) undefined reference to 'avfilter_version'
    Error:(1086) undefined reference to 'avfilter_configuration'
    Error:(1621) undefined reference to 'avfilter_pad_get_type'
    Error:(1618) undefined reference to 'avfilter_pad_get_name'
    Error:(1610) undefined reference to 'avfilter_next'
    Error:(1815) undefined reference to 'avfilter_get_by_name'
    Error:(1834) undefined reference to 'avfilter_pad_count'
  • ffmpeg static link in Visual Studio [duplicate]

    24 avril 2019, par iz25

    I have build ffmpeg static library on Windows. It seems that everything completed with success. The result of build are following files :

    libavcodec.a
    libavdevice.a
    libavfilter.a
    libavformat.a
    libavutil.a
    libswscale.a

    I tried to specify above files in Linker->Input in my C++ libray project, but linking fails. Following is build output :

    1>libavutil.a(samplefmt.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(error.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(log.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(utils.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(avstring.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(bprint.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavformat.a(id3v2.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(opt.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(dict.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavutil.a(pixdesc.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(ratecontrol.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(qsv.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavformat.a(utils.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavformat.a(aviobuf.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(utils.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(ffv1enc.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(exif.o) : error LNK2001: unresolved external symbol ___stdio_common_vsprintf
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_img_wrap
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_version_str
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_version_str
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_build_config
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_build_config
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_err_to_string
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_error
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_error
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_error_detail
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_error_detail
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_destroy
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_destroy
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_control_
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_enc_init_ver
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_enc_config_default
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_encode
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_get_cx_data
    1>libavcodec.a(libvpxenc.o) : error LNK2001: unresolved external symbol _vpx_codec_vp8_cx
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_dec_init_ver
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_decode
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_get_frame
    1>libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_vp8_dx_algo
    1>libavutil.a(opt.o) : error LNK2001: unresolved external symbol ___stdio_common_vsscanf
    1>libavutil.a(parseutils.o) : error LNK2001: unresolved external symbol ___stdio_common_vsscanf
    1>libavcodec.a(h264_sei.o) : error LNK2001: unresolved external symbol ___stdio_common_vsscanf
    1>libavcodec.a(ratecontrol.o) : error LNK2001: unresolved external symbol ___stdio_common_vsscanf
    1>libavcodec.a(qsv.o) : error LNK2001: unresolved external symbol ___stdio_common_vsscanf
    1>libavformat.a(id3v2.o) : error LNK2001: unresolved external symbol ___stdio_common_vsscanf
    1>libavutil.a(log.o) : error LNK2001: unresolved external symbol ___acrt_iob_func
    1>libavutil.a(log.o) : error LNK2001: unresolved external symbol ___stdio_common_vfprintf

    What could be missing here ?

  • Add project files for Visual Studio 2010 and later.

    6 juillet 2014, par Erik de Castro Lopo
    Add project files for Visual Studio 2010 and later.
    

    Also allows building for x86-64 Windows.

    Patch-from : lvqcl <lvqcl.mail@gmail.com>

    • [DH] FLAC-vs2010.sln
    • [DH] examples/c/decode/file/example_c_decode_file.vcxproj
    • [DH] examples/c/decode/file/example_c_decode_file.vcxproj.filters
    • [DH] examples/c/encode/file/example_c_encode_file.vcxproj
    • [DH] examples/c/encode/file/example_c_encode_file.vcxproj.filters
    • [DH] examples/cpp/decode/file/example_cpp_decode_file.vcxproj
    • [DH] examples/cpp/decode/file/example_cpp_decode_file.vcxproj.filters
    • [DH] examples/cpp/encode/file/example_cpp_encode_file.vcxproj
    • [DH] examples/cpp/encode/file/example_cpp_encode_file.vcxproj.filters
    • [DH] src/flac/flac.vcxproj
    • [DH] src/flac/flac.vcxproj.filters
    • [DH] src/flac/iffscan.vcxproj
    • [DH] src/flac/iffscan.vcxproj.filters
    • [DH] src/libFLAC++/libFLAC++_dynamic.vcxproj
    • [DH] src/libFLAC++/libFLAC++_dynamic.vcxproj.filters
    • [DH] src/libFLAC++/libFLAC++_static.vcxproj
    • [DH] src/libFLAC++/libFLAC++_static.vcxproj.filters
    • [DH] src/libFLAC/libFLAC_dynamic.vcxproj
    • [DH] src/libFLAC/libFLAC_dynamic.vcxproj.filters
    • [DH] src/libFLAC/libFLAC_static.vcxproj
    • [DH] src/libFLAC/libFLAC_static.vcxproj.filters
    • [DH] src/metaflac/metaflac.vcxproj
    • [DH] src/metaflac/metaflac.vcxproj.filters
    • [DH] src/plugin_common/plugin_common_static.vcxproj
    • [DH] src/plugin_common/plugin_common_static.vcxproj.filters
    • [DH] src/share/getopt/getopt_static.vcxproj
    • [DH] src/share/getopt/getopt_static.vcxproj.filters
    • [DH] src/share/grabbag/grabbag_static.vcxproj
    • [DH] src/share/grabbag/grabbag_static.vcxproj.filters
    • [DH] src/share/replaygain_analysis/replaygain_analysis_static.vcxproj
    • [DH] src/share/replaygain_analysis/replaygain_analysis_static.vcxproj.filters
    • [DH] src/share/replaygain_synthesis/replaygain_synthesis_static.vcxproj
    • [DH] src/share/replaygain_synthesis/replaygain_synthesis_static.vcxproj.filters
    • [DH] src/share/utf8/utf8_static.vcxproj
    • [DH] src/share/utf8/utf8_static.vcxproj.filters
    • [DH] src/share/win_utf8_io/win_utf8_io_static.vcxproj
    • [DH] src/share/win_utf8_io/win_utf8_io_static.vcxproj.filters
    • [DH] src/test_grabbag/cuesheet/test_cuesheet.vcxproj
    • [DH] src/test_grabbag/cuesheet/test_cuesheet.vcxproj.filters
    • [DH] src/test_grabbag/picture/test_picture.vcxproj
    • [DH] src/test_grabbag/picture/test_picture.vcxproj.filters
    • [DH] src/test_libFLAC++/test_libFLAC++.vcxproj
    • [DH] src/test_libFLAC++/test_libFLAC++.vcxproj.filters
    • [DH] src/test_libFLAC/test_libFLAC.vcxproj
    • [DH] src/test_libFLAC/test_libFLAC.vcxproj.filters
    • [DH] src/test_libs_common/test_libs_common_static.vcxproj
    • [DH] src/test_libs_common/test_libs_common_static.vcxproj.filters
    • [DH] src/test_seeking/test_seeking.vcxproj
    • [DH] src/test_seeking/test_seeking.vcxproj.filters
    • [DH] src/test_streams/test_streams.vcxproj
    • [DH] src/test_streams/test_streams.vcxproj.filters
    • [DH] src/utils/flacdiff/flacdiff.vcxproj
    • [DH] src/utils/flacdiff/flacdiff.vcxproj.filters
    • [DH] src/utils/flactimer/flactimer.vcxproj
    • [DH] src/utils/flactimer/flactimer.vcxproj.filters