Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (71)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7747)

  • Can't link FFMPEG dynamically to VS 2019 project

    10 février 2021, par Maya Sela

    I downloaded the source code of FFMPEG 3.4.8 and built with MSVC as such :
    
After unzipping, open x86_x64 Cross Tools Command Prompt for VS 2019 and run msys2_shell.cmd. From there, run
    
./configure --toolchain=msvc --arch=x86_64 --enable-yasm --enable-asm --enable-shared --disable-static
and
make

    
I then created a new project in VS 2019.
    
In Properties > C/C++ > General > Additional Include Directories :
    
(Where all the headers are)

    


    E:\ffmpeg-3.4.8\libavutil
E:\ffmpeg-3.4.8\libavcodec
E:\ffmpeg-3.4.8\libavdevice
E:\ffmpeg-3.4.8\libavfilter
E:\ffmpeg-3.4.8\libavresample
E:\ffmpeg-3.4.8\libpostproc
E:\ffmpeg-3.4.8\libswscale
E:\ffmpeg-3.4.8\libswresample
E:\ffmpeg-3.4.8\libavformat


    


    In Properties > Linker > General > Additional Library Directories :
    
(Where the .lib files are)

    


    E:\ffmpeg-3.4.8\libavutil
E:\ffmpeg-3.4.8\libavcodec
E:\ffmpeg-3.4.8\libavdevice
E:\ffmpeg-3.4.8\libavfilter
E:\ffmpeg-3.4.8\libavresample
E:\ffmpeg-3.4.8\libpostproc
E:\ffmpeg-3.4.8\libswscale
E:\ffmpeg-3.4.8\libswresample
E:\ffmpeg-3.4.8\libavformat


    


    In Properties > Linker > Input > Additional Dependencies :

    


    avcodec.lib
avdevice.lib
avfilter.lib
avformat.lib
swresample.lib
swscale.lib


    


    For good measure, I copied the .dll files of each library to the Release folder of the project. There is one source file I am trying to build and run :

    


    &#xA;extern "C" {&#xA;#include <libavformat></libavformat>avformat.h>&#xA;}&#xA;&#xA;int main() {&#xA;    AVFormatContext* pFormatContext = avformat_alloc_context();&#xA;}&#xA;

    &#xA;

    The result is as follows :

    &#xA;

    1>------ Build started: Project: FFMPEG_example, Configuration: Release x64 ------&#xA;1>Source.cpp&#xA;1>Source.obj : error LNK2001: unresolved external symbol avformat_alloc_context&#xA;1>C:\Users\maya.s\source\repos\FFMPEG_example\x64\Release\FFMPEG_example.exe : fatal error LNK1120: 1 unresolved externals&#xA;1>Done building project "FFMPEG_example.vcxproj" -- FAILED.&#xA;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&#xA;

    &#xA;

    Does anyone have an idea ?
    &#xA;Thanks !

    &#xA;

  • CMake specifies link libraries in wrong order [duplicate]

    18 janvier 2021, par Jamie Royer

    I'm following a youtube video on building a project with CMake and FFmpeg. The author is using a Mac and I'm using Ubuntu 20.04. I've been following along successfully until hitting this problem. cmake —version returns 3.16.3

    &#xA;

    For some reason it is specifying the libraries too early so nothing is imported :

    &#xA;

    ~/video-app/build# cmake ..&#xA;~/video-app/build# make VERBOSE=1&#xA;...&#xA;/usr/bin/c&#x2B;&#x2B; \&#xA;   -lavcodec -lavformat \                            # &lt;&lt; Too early&#xA;   CMakeFiles/video-app.dir/src/main.cpp.o \&#xA;   CMakeFiles/video-app.dir/src/load_frame.cpp.o \&#xA;   -o video-app \                                    # &lt;&lt; Should be here&#xA;   lib/glfw/src/libglfw3.a \&#xA;   -lGL -lGLU -lpthread /usr/lib/x86_64-linux-gnu/librt.so -lm -ldl&#xA;

    &#xA;

    If I manually run the command with the -l (dash ell) reordered, it compiles successfully.

    &#xA;

    Here is the contents of the two CMakeLists.txt files.

    &#xA;

    # video-app/CMakeLists.txt&#xA;cmake_minimum_required(VERSION 3.14)&#xA;project(video-app C CXX)&#xA;set(CMAKE_CXX_STANDARD 14)&#xA;add_subdirectory(lib/glfw)&#xA;add_subdirectory(lib/FFmpeg)&#xA;list(APPEND EXTRA_LIBS "-lGL -lGLU")&#xA;list(APPEND SOURCES src/main.cpp src/load_frame.cpp)&#xA;add_executable(video-app ${SOURCES})&#xA;target_link_libraries(video-app FFmpeg glfw ${EXTRA_LIBS})&#xA;

    &#xA;

    # video-app/lib/CMakeLists.txt&#xA;cmake_minimum_required(VERSION 3.14)&#xA;project(FFmpeg)&#xA;find_package(PkgConfig REQUIRED)&#xA;# There are seven libraries in original - only two shown here for brevity.&#xA;pkg_check_modules(AVCODEC   REQUIRED IMPORTED_TARGET libavcodec)&#xA;pkg_check_modules(AVFORMAT  REQUIRED IMPORTED_TARGET libavformat)&#xA;add_library(FFmpeg INTERFACE IMPORTED GLOBAL)&#xA;target_include_directories(FFmpeg INTERFACE&#xA;    ${AVCODEC_INCLUDE_DIRS}&#xA;    ${AVFORMAT_INCLUDE_DIRS})&#xA;target_link_options(FFmpeg INTERFACE&#xA;    ${AVCODEC_LDFLAGS}&#xA;    ${AVFORMAT_LDFLAGS})&#xA;

    &#xA;

    I tried :

    &#xA;

      &#xA;
    • Changing the order of target_link_libraries in top CMake file. Funny thing is, it worked once.
    • &#xA;

    • I tried adding target_link_libraries to FFmpeg CMake file.
    • &#xA;

    • Searching for stackover.com for answers and reading CMake documentation.
    • &#xA;

    &#xA;

  • lld-link error compiling chromium with ffmpeg additional calls

    1er décembre 2020, par michal-b

    After adding some calls to ffmpeg from the ffmpeg_decoding_loop, I have errors when compiling on Windows (both directly on Windows and when cross-compiling from linux).
    &#xA;What I don't understand is that it works without an issue on linux/macos.

    &#xA;

    I have multiple calls to ffmpeg code but let's boil it down to a representative example.

    &#xA;

    I call this :

    &#xA;

    const AVFilter *buffer_src = avfilter_get_by_name("buffer");&#xA;

    &#xA;

    On linux/macos : no problems.
    &#xA;On windows :

    &#xA;

    lld-link: error: undefined symbol: avfilter_get_by_name&#xA;>>> referenced by .\..\..\media\ffmpeg\ffmpeg_decoding_loop.cc:111&#xA;>>>               obj/media/ffmpeg/ffmpeg/ffmpeg_decoding_loop.obj:(public: void __cdecl media::FFmpegDecodingLoop::InitFilterGraph(struct AVFrame *))&#xA;>>> referenced by .\..\..\media\ffmpeg\ffmpeg_decoding_loop.cc:112&#xA;>>>               obj/media/ffmpeg/ffmpeg/ffmpeg_decoding_loop.obj:(public: void __cdecl media::FFmpegDecodingLoop::InitFilterGraph(struct AVFrame *))&#xA;&#xA;

    &#xA;

    Is there some additional configuration to be made on windows ?
    &#xA;I use visual studio 2019, windows 10.0.19041.0 sdk, llvm 10.0.0.

    &#xA;