Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (73)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12142)

  • "Undefined Reference" when compiling FFMPEG with librtmp on Android

    5 mars 2019, par elBradford

    I have searched, and while Building FFMPEG with librtmp for android answered part of my question, I ran into other issues further along in the compilation process.

    First, I am trying to use the script in this github repo, changing the flags to include

     --enable-librtmp \
     --extra-cflags=-I/home/bradford/Development/FFMPEG/rtmp/rtmpdump/librtmp/ \
     --extra-ldflags=-L/home/bradford/Development/FFMPEG/rtmp/rtmpdump/librtmp"

    I build librtmp with polarSSL following S74ck3r’s instructions on his github repo and stream-recorder thread. That appears to work correctly, and I have a librtmp.so, librtmp.a and rtmp.h

    When I try to compile ffmpeg with librtmp, I get the error

    ERROR: librtmp not found

    This SO question helped, and I modified ffmpeg’s config file so that it wouldn’t look at pkg-config for librtmp (even though pkg-config was aware of librtmp...) :

    #enabled librtmp    && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket

    When I build now, it starts successfully, and I get the hopeful line :

    librtmp enabled           yes

    And later on I see more good news :

    ...
    Enabled protocols:
    applehttp       http            mmsh
    cache           httpproxy       mmst
    concat          librtmp         mmsu
    crypto          librtmpe        pipe
    fd          librtmps        rtp
    file            librtmpt        tcp
    gopher          librtmpte       udp
    hls         md5
    ...

    but finally, after compiling everything and during the installation phase, I get these types of errors :

    INSTALL   libavutil/libavutil.pc
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_get_file_handle:libavformat/librtmp.c:190: error: undefined reference to 'RTMP_Socket'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_read_seek:libavformat/librtmp.c:180: error: undefined reference to 'RTMP_SendSeek'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_read_pause:libavformat/librtmp.c:161: error: undefined reference to 'RTMP_Pause'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_close:libavformat/librtmp.c:64: error: undefined reference to 'RTMP_Close'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_write:libavformat/librtmp.c:145: error: undefined reference to 'RTMP_Write'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_read:libavformat/librtmp.c:153: error: undefined reference to 'RTMP_Read'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:96: error: undefined reference to 'RTMP_LogSetLevel'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:97: error: undefined reference to 'RTMP_LogSetCallback'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:118: error: undefined reference to 'RTMP_Init'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:119: error: undefined reference to 'RTMP_SetupURL'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:127: error: undefined reference to 'RTMP_Connect'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:127: error: undefined reference to 'RTMP_ConnectStream'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:125: error: undefined reference to 'RTMP_EnableWrite'
    collect2: ld returned 1 exit status

    And I can’t get past them. It sounds like it can’t find rtmp.h, which includes references to those functions, but that is present where it should be (afaik).

    Also, my project requires librtmp - the built-in rtmp features of ffmpeg are not sufficient because I require the authentication features of librtmp.

  • "Undefined Reference" when compiling FFMPEG with librtmp on Android

    4 février 2014, par elBradford

    I have searched, and while Building FFMPEG with librtmp for android answered part of my question, I ran into other issues further along in the compilation process.

    First, I am trying to use the script in this github repo, changing the flags to include

     --enable-librtmp \
     --extra-cflags=-I/home/bradford/Development/FFMPEG/rtmp/rtmpdump/librtmp/ \
     --extra-ldflags=-L/home/bradford/Development/FFMPEG/rtmp/rtmpdump/librtmp"

    I build librtmp with polarSSL following S74ck3r's instructions on his github repo and stream-recorder thread. That appears to work correctly, and I have a librtmp.so, librtmp.a and rtmp.h

    When I try to compile ffmpeg with librtmp, I get the error

    ERROR: librtmp not found

    This SO question helped, and I modified ffmpeg's config file so that it wouldn't look at pkg-config for librtmp (even though pkg-config was aware of librtmp...) :

    #enabled librtmp    && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket

    When I build now, it starts successfully, and I get the hopeful line :

    librtmp enabled           yes

    And later on I see more good news :

    ...
    Enabled protocols:
    applehttp       http            mmsh
    cache           httpproxy       mmst
    concat          librtmp         mmsu
    crypto          librtmpe        pipe
    fd          librtmps        rtp
    file            librtmpt        tcp
    gopher          librtmpte       udp
    hls         md5
    ...

    but finally, after compiling everything and during the installation phase, I get these types of errors :

    INSTALL   libavutil/libavutil.pc
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_get_file_handle:libavformat/librtmp.c:190: error: undefined reference to 'RTMP_Socket'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_read_seek:libavformat/librtmp.c:180: error: undefined reference to 'RTMP_SendSeek'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_read_pause:libavformat/librtmp.c:161: error: undefined reference to 'RTMP_Pause'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_close:libavformat/librtmp.c:64: error: undefined reference to 'RTMP_Close'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_write:libavformat/librtmp.c:145: error: undefined reference to 'RTMP_Write'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_read:libavformat/librtmp.c:153: error: undefined reference to 'RTMP_Read'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:96: error: undefined reference to 'RTMP_LogSetLevel'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:97: error: undefined reference to 'RTMP_LogSetCallback'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:118: error: undefined reference to 'RTMP_Init'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:119: error: undefined reference to 'RTMP_SetupURL'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:127: error: undefined reference to 'RTMP_Connect'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:127: error: undefined reference to 'RTMP_ConnectStream'
    /tmp/FFMPEG/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: libavformat/librtmp.o: in function rtmp_open:libavformat/librtmp.c:125: error: undefined reference to 'RTMP_EnableWrite'
    collect2: ld returned 1 exit status

    And I can't get past them. It sounds like it can't find rtmp.h, which includes references to those functions, but that is present where it should be (afaik).

    Also, my project requires librtmp - the built-in rtmp features of ffmpeg are not sufficient because I require the authentication features of librtmp.

  • MSVC fatal error LNK1120 : 1 unresolved externals with FFMPEG libs

    16 août 2019, par Jared

    I am trying to utilize the ffmpeg libraries in a program of my own and am having trouble linking them. Specifically, In my a basic program I am receiving fatal error LNK1120: 1 unresolved externals errors. The program is :

    #include <iostream>
    #include <libswresample></libswresample>swresample.h>

    int main()
    {
       std::cout &lt;&lt; "Hello World!\n";
       struct SwrContext* swr_ctx = swr_alloc();
       if (!swr_ctx) {
           std::cout &lt;&lt; "Could not allocate resampler context";
       }
    }
    </iostream>

    I downloaded prebuild libraries from https://ffmpeg.zeranoe.com/builds/, specifically the Windows x64 dev package which includes the .def/.lib as well as .dll files.

    I originally tried (and intend to ultimately use) cmake to generate the MSVC sln files. The cmake file is :

    cmake_minimum_required(VERSION 3.5)

    project(ffmpeg_jni)

    # Find the JNI bits
    find_package(JNI)

    # Search for the ffmpeg libraries
    set(ffmpeg_include_hint "ffmpeg-dev/include")
    set(ffmpeg_lib_hint "ffmpeg-dev/lib")

    find_path(SWRESAMPLE_INCLUDE_DIR libswresample/swresample.h PATHS ${ffmpeg_include_hint})
    find_library(SWRESAMPLE_LIBRARY swresample PATHS ${ffmpeg_lib_hint})
    add_library(swresample SHARED IMPORTED)
    set_target_properties(swresample PROPERTIES
       IMPORTED_LOCATION "${SWRESAMPLE_LIBRARY}"
       IMPORTED_IMPLIB "${SWRESAMPLE_LIBRARY}"
       INTERFACE_INCLUDE_DIRECTORIES "${SWRESAMPLE_INCLUDE_DIR}"
    )

    # Setup basic include dirs
    set(includeDIRS
           src/main/cpp
           ${JAVA_INCLUDE_PATH})

    # Setup windows specific includes
    set(includeDIRS
           ${includeDIRS}
           ${JAVA_INCLUDE_PATH}/Win32)

    include_directories(${includeDIRS})

    set(WRAPPER_SRC
           src/main/cpp/logging.c
           src/main/cpp/logging.h
           src/main/cpp/main.cpp)

    add_library(ffmpeg_jni SHARED ${WRAPPER_SRC})
    target_link_libraries(ffmpeg_jni PRIVATE swresample)

    The generated solution compiles and has proper access to the include files (Visual Studio can even take me to the declarations). The issue comes in the linking phase of the build where I receive :

    error LNK2019 : unresolved external symbol "struct SwrContext * __cdecl
    swr_alloc(void)" (?swr_alloc@@YAPEAUSwrContext@@XZ) referenced in
    function main

    Thinking that I perhaps had something wrong in cmake since I am still pretty new with it I tried making a simple demo as a pure visual studio project following what I have found in countless online demos for adding an external library to a project. Specifically this included :

    • Adding the directory containing the header files to Properties->C/C++->General->Additional Include Directories
    • Adding the directory containing the .lib files to Properties->Linker->General->Additional Library Directories (Note that the cmake path did not do this but instead added the lib file via a relative path)
    • Adding the .lib file to Properties->Linker->Input->Additional Dependencies

    At this point any searching efforts I undertake show me different people doing the same things which tells me I’ve been looking at this too long to find the answer myself and its something trivial that I’m missing/not understanding.