Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7450)

  • What does "Error in the pull function" mean while executing ffmpeg command ?

    8 avril 2022, par Alex Rypun

    I'm trying to generate a video from multiple video sources (https urls).

    


    If I use say 8 video sources it works as expected. But if I need say 30 sources, it starts to work as expected, but at some moment a lot of errors appear.

    


    enter image description here

    


    I believe the main one is Error in the pull function..

    


    Such a video-source appears in the output file but not a full requested part (e.g., I set trim=0:5, but ffmpeg generates only 3 seconds).

    


    I tried different videos, different cropped parts, loaded sources to aws s3, but can't identify a "bad case", it's reproduced with different options.

    


    My command looks like this :

    


    ffmpeg -y
-i "https://player.vimeo.com/external/399541658.hd.mp4?s=5432956383527af00bb74b41c120bbb84ff3ac5e&profile_id=175&oauth2_token_id=57447761"
...
-i "https://player.vimeo.com/external/464966383.hd.mp4?s=648aa8277259c499f1d05d6330f9922932c080a6&profile_id=175&oauth2_token_id=57447761"
-i "https://test.com/development/videos/dc3c32cf9a194db1bb52/sources/5q5e3j2h57.mp3"
-filter_complex "[0:v]trim=0:5.64,setpts=PTS-STARTPTS,scale=1920x1080,setdar=16/9[v0];[1:v]trim=0:8,setpts=PTS-STARTPTS,scale=1920x1080,setdar=16/9,loop=0:32767[v1]; ... [10:v]trim=0:13,setpts=PTS-STARTPTS,scale=1920x1080,setdar=16/9[v10];[v0] ... [v10] concat=n=11:v=1 [video];[11:a] atrim=0:99.29 [audio]"
-vsync 2 -map [video] -map [audio] output.mp4


    


    When I downloaded all sources to my local machine and tried to use them in the ffmpeg command it worked fine without errors.

    


    Also, I figured out that it depends on the CPU. When I restricted my CPU the errors appeared earlier. And some commands might produce errors with a restricted CPU but finished successfully with no CPU restriction.

    


    As I understand, for some reason, ffmpeg fails to receive a particular part of a file data, but I believe it should retry to receive lost packages (it's https).

    


    And I don't understand, how it could be related to CPU or sources quantity.

    


    By not understanding the core of evil, I can think about 2 ways (both ugly) :

    


      

    1. to download all sources and generate the final video from local files ;
    2. 


    3. to chunk sources, generate intermediate outputs for each chunk (and save locally), and concatenate them into the final one.
    4. 


    


    Any better suggestions or at least where to seek ?

    


  • "Undefined referance to function" while linking ffmpeg [duplicate]

    19 mai 2022, par user19068953

    I'm trying to link ffmpeg on ubuntu, i downloaded ffmpeg source and added to my lib/ffmpeg library then ran ./configure, i created a cmake on my project directory and one inside ffmpeg dir. The cmake compiles just fine but when i run make it just gives me an error saying Undefined referance to avformat_alloc_context(), it says this for all functions but the structs, typedefs and defines compile just fine. Here are my files :

    


    ./cmake :

    


    cmake_minimum_required(VERSION 3.14)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(Interview C CXX)

add_definitions(-DGL_SILENCE_DEPRECATION)

SET(EXECUTABLE_OUTPUT_PATH ${dir}/bin )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin )

file(GLOB_RECURSE SOURCE_FILES 
    ${CMAKE_SOURCE_DIR}/src/*.c
    ${CMAKE_SOURCE_DIR}/src/*.cpp
    # last resort
    ${CMAKE_SOURCE_DIR}/lib/ffmpeg/*/*.c
)
    
# Add header files
file(GLOB_RECURSE HEADER_FILES 
    ${CMAKE_SOURCE_DIR}/src/*.h
    ${CMAKE_SOURCE_DIR}/src/*.hpp
    # last resort
    ${CMAKE_SOURCE_DIR}/lib/ffmpeg/*/*.h
)

list(APPEND SOURCES
    src/main.cpp
    src/vipch.h
    src/VideDecoder.cpp
    src/VideoDecoder.h
    src/Application.cpp
    src/Application.h
    src/OpenGLRender.cpp
    src/OpenGLRender.h
    src/Layer.h
    src/Layer.cpp

    # last resort
    lib/ffmppeg/*/*.h
    lib/ffmppeg/*/*.c
)
add_executable(Interview src/main.cpp)

# ffmpeg linking -----------------------------------------------


add_library(ffmpeg STATIC IMPORTED)
add_subdirectory(lib/ffmpeg)

target_include_directories(Interview PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/ffmpeg)

link_directories(${CMAKE_SOURCE_DIR}/lib)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")


    


    The cmake files are a bit messy since i am trying to figure this out.
./lib/ffmpeg/cmake :

    


    cmake_minimum_required(VERSION 3.14)
project(ffmpeg)

list(APPEND SOURCES
    libavformat/avformat.h
    libavformat/avformat.c
)

file(GLOB_RECURSE SOURCE_FILES 
    ${CMAKE_SOURCE_DIR}/*/*.c
)   
# Add header files
file(GLOB_RECURSE HEADER_FILES 
    ${CMAKE_SOURCE_DIR}/*/*.h
)

include_directories(${CMAKE_SOURCE_DIR}/libavformat)
link_directories(${CMAKE_SOURCE_DIR}/libavformat)


    


    and my main file that i run my test src/main.cpp :

    


      extern "C"{&#xA;    #include <libavformat></libavformat>avformat.h>&#xA;}&#xA;&#xA;#include <iostream>&#xA;int main(int argc, char* argv[]) {&#xA;    AVFormatContext* context; &#xA;    context = avformat_alloc_context();&#xA;    std::cout &lt;&lt; context &lt;&lt; std::endl;&#xA;}&#xA;</iostream>

    &#xA;

    Again, no problem when using type's like AVFormatContext and defines but when i use a function like avformat_alloc_context it gives of this error (the source files are inside ffmpeg, i can inspect them with ctrl right-click on VSCode) :

    &#xA;

     /usr/bin/ld: CMakeFiles/Interview.dir/src/main.cpp.o: in function main&#x27;: main.cpp: &#xA;   (.text&#x2B;0x4e): undefined reference to avformat_alloc_context&#x27; collect2: error: ld returned 1 &#xA;   exit status make[2]: *** [CMakeFiles/Interview.dir/build.make:84: bin/Interview] Error 1 &#xA;   make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/Interview.dir/all] Error 2 make: *** &#xA;   [Makefile:84: all] Error 2&#xA;

    &#xA;

    Edit :&#xA;I edited the cmake file but now im getting a different error :

    &#xA;

    find_path(AVCODEC_INCLUDE_DIR NAMES "avformat.h" PATHS &#xA;${CMAKE_CURRENT_SOURCE_DIR}/lib/ffmpeg/libavformat)&#xA;find_library(AVCODEC_LIBRARY avformat)&#xA;&#xA;link_directories(${CMAKE_SOURCE_DIR}/lib)&#xA;&#xA;add_executable(Interview src/main.cpp)&#xA;&#xA;target_include_directories(Interview PRIVATE ${AVCODEC_INCLUDE_DIR})&#xA;target_link_libraries(Interview PRIVATE avformat)&#xA;&#xA;add_library(ffmpeg STATIC IMPORTED)&#xA;add_subdirectory(lib/ffmpeg)&#xA;&#xA;target_include_directories(Interview PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/ffmpeg)&#xA;&#xA;set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")&#xA;

    &#xA;

    Note : AVCODEC_LIBRARY returns notfound cmake error but just using avcodec in target_link_libraries somehow doesn't result in a cmake error, however when i run make like this it gives this error :

    &#xA;

    usr/bin/ld: cannot find -lavformat collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/Interview.dir/build.make:84: bin/Interview] Error 1 make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/Interview.dir/all] Error 2 make: *** [Makefile:84: all] Error 2&#xA;

    &#xA;

  • FFprobeKit command not showing the specific error when it fails to execute

    8 septembre 2022, par sandulasanth-7

    I'm getting the video duration of a video in react native by using FFMpegkit library and by running bellow code

    &#xA;

    const getVideoDuration = async (uri: string): Promise<void> => {&#xA;      try {&#xA;      await FFprobeKit.executeAsync(&#xA;        `-v error -select_streams v:0 -show_entries stream=duration -of default=noprint_wrappers=1:nokey=1 ${uri}`,&#xA;      ).then(async information => {&#xA;        const failStackTrace = await information.getFailStackTrace();&#xA;        console.log(failStackTrace);&#xA;        await information.getOutput().then(output => {&#xA;          const value = parseFloat(output.toString());&#xA;          const time = value * 1000;&#xA;          setInputVideoDuration(time);&#xA;        });&#xA;      });&#xA;    } catch (error) {&#xA;      console.log(error);&#xA;    }&#xA;  };&#xA;</void>

    &#xA;

    The issue is that the the code isn't executing sometimes. And it's like sporadic. I want to trigger the exact error given when failing this code. The exact error is not given by the library logs but it produce other command executing logs. Is there any way to get the exact error or the exception ?

    &#xA;

    Currently the error shows like this in the logs but it doesn't have any information. also failStackTrace isn't producing any logs either

    &#xA;

     libswscale      6.  1.102 /  6.  1.102&#xA; LOG    libswresample   4.  0.100 /  4.  0.100&#xA; LOG  ReturnCode.ERROR&#xA;

    &#xA;