Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (64)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (4661)

  • doc/filters : Document OpenCL program filters

    3 janvier 2018, par Mark Thompson
    doc/filters : Document OpenCL program filters
    

    Include some example programs.

    • [DH] doc/filters.texi
  • Linker errors when building a simple c++ program with ffmpeg

    15 février 2023, par Serban Stoenescu

    I have this c++ program :

    


    #include <iostream>&#xA;&#xA;extern "C"&#xA;{&#xA;    #include <libavcodec></libavcodec>avcodec.h>&#xA;    #include <libavformat></libavformat>avformat.h>&#xA;    #include <libswscale></libswscale>swscale.h>&#xA;&#xA;}&#xA;&#xA;namespace hrean::ffmpeg&#xA;{&#xA;namespace detail&#xA;{&#xA;    &#xA;}//namespace detail&#xA;&#xA;void testFFmpeg()&#xA;{&#xA;    AVFormatContext *avFormatContext = avformat_alloc_context();&#xA;    //I can comment out the rest of the function, the error is the same&#xA;&#xA;} //testFFmpeg()&#xA;&#xA;} //namespace hrean::ffmpeg&#xA;&#xA;&#xA;int main(int argc, char **argv)&#xA;{&#xA;    try&#xA;    {&#xA;        hrean::ffmpeg::testFFmpeg();&#xA;    }&#xA;    catch(const std::runtime_error&amp; e)&#xA;    {&#xA;        std::cerr &lt;&lt; "Error! " &lt;&lt; e.what() &lt;&lt; &#x27;\n&#x27;;&#xA;        return -1;&#xA;    }&#xA;    catch(...)&#xA;    {&#xA;        std::cerr &lt;&lt; "Unknown error\n";&#xA;        return -1;&#xA;    }&#xA;    &#xA;    return 0;&#xA;}&#xA;</iostream>

    &#xA;

    The CMakeLists.txt for this is :

    &#xA;

    cmake_minimum_required(VERSION 3.13)&#xA;project(hrean)&#xA;&#xA;add_subdirectory(lib/ffmpeg-module)&#xA;&#xA;message("[temp] FFMPEG_INCLUDE_DIRS = ${FFMPEG_INCLUDE_DIRS}")&#xA;message("[temp] FFMPEG_LIBRARIES = ${FFMPEG_LIBRARIES}")&#xA;add_executable(hrean-app src/main.cpp)&#xA;target_include_directories(hrean-app PUBLIC ${FFMPEG_INCLUDE_DIRS})&#xA;target_link_libraries(hrean-app PUBLIC ${FFMPEG_LIBRARIES})&#xA;

    &#xA;

    The CMakeLists.txt for lib/ffmpeg-module contains only

    &#xA;

    find_package(FFmpeg REQUIRED MODULE)&#xA;

    &#xA;

    The CMake output is :

    &#xA;

    -- The C compiler identification is GNU 11.3.0&#xA;-- The CXX compiler identification is GNU 11.3.0&#xA;-- Detecting C compiler ABI info&#xA;-- Detecting C compiler ABI info - done&#xA;-- Check for working C compiler: /usr/bin/cc - skipped&#xA;-- Detecting C compile features&#xA;-- Detecting C compile features - done&#xA;-- Detecting CXX compiler ABI info&#xA;-- Detecting CXX compiler ABI info - done&#xA;-- Check for working CXX compiler: /usr/bin/c&#x2B;&#x2B; - skipped&#xA;-- Detecting CXX compile features&#xA;-- Detecting CXX compile features - done&#xA;-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") &#xA;-- Checking for module &#x27;libavcodec&#x27;&#xA;--   Found libavcodec, version 60.2.100&#xA;-- Checking for module &#x27;libavformat&#x27;&#xA;--   Found libavformat, version 60.2.100&#xA;-- Checking for module &#x27;libavdevice&#x27;&#xA;--   Found libavdevice, version 60.0.100&#xA;-- Checking for module &#x27;libavutil&#x27;&#xA;--   Found libavutil, version 58.1.100&#xA;-- Checking for module &#x27;libavfilter&#x27;&#xA;--   Found libavfilter, version 9.1.100&#xA;-- Checking for module &#x27;libswscale&#x27;&#xA;--   Found libswscale, version 7.0.100&#xA;-- Checking for module &#x27;libpostproc&#x27;&#xA;--   Found libpostproc, version 57.0.100&#xA;-- Checking for module &#x27;libswresample&#x27;&#xA;--   Found libswresample, version 4.9.100&#xA;-- Found FFmpeg: /home/serban/ffmpeg_build/lib/libavcodec.a;/home/serban/ffmpeg_build/lib/libavformat.a;/home/serban/ffmpeg_build/lib/libavutil.a  &#xA;[temp] FFMPEG_INCLUDE_DIRS = /home/serban/ffmpeg_build/include&#xA;[temp] FFMPEG_LIBRARIES = /home/serban/ffmpeg_build/lib/libavcodec.a;/home/serban/ffmpeg_build/lib/libavformat.a;/home/serban/ffmpeg_build/lib/libavutil.a&#xA;-- Configuring done&#xA;-- Generating done&#xA;-- Build files have been written to: /home/serban/Work/hrean/build&#xA;

    &#xA;

    When I run make, I get the following errors. The problem is, this worked perfectly yesterday and I changed nothing. I create a new Ubuntu virtual machine, everything fresh and I still get the same problem. The output is 1000+ lines long, here is some of it :

    &#xA;

    [ 50%] Building CXX object CMakeFiles/hrean-app.dir/src/main.cpp.o&#xA;[100%] Linking CXX executable hrean-app&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(amvenc.o): in function `amv_write_packet&#x27;:&#xA;/home/serban/ffmpeg/libavformat/amvenc.c:356: undefined reference to `av_packet_unref&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg/libavformat/amvenc.c:357: undefined reference to `av_packet_ref&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(amvenc.o): in function `amv_deinit&#x27;:&#xA;/home/serban/ffmpeg/libavformat/amvenc.c:209: undefined reference to `av_packet_free&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(amvenc.o): in function `amv_init&#x27;:&#xA;/home/serban/ffmpeg/libavformat/amvenc.c:111: undefined reference to `avcodec_get_name&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg/libavformat/amvenc.c:117: undefined reference to `avcodec_get_name&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg/libavformat/amvenc.c:188: undefined reference to `av_new_packet&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg/libavformat/amvenc.c:196: undefined reference to `av_packet_alloc&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_read_close&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1413: undefined reference to `av_packet_free&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_read_single_payload&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1119: undefined reference to `av_new_packet&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_read_packet&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1388: undefined reference to `av_packet_move_ref&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `reset_packet&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1030: undefined reference to `av_packet_unref&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_deinterleave&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1313: undefined reference to `av_packet_unref&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg/libavformat/asfdec_o.c:1314: undefined reference to `av_packet_from_data&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_read_replicated_data&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1043: undefined reference to `av_new_packet&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_read_timestamp&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1463: undefined reference to `av_packet_alloc&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `reset_packet&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1030: undefined reference to `av_packet_unref&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(asfdec_o.o): in function `asf_read_timestamp&#x27;:&#xA;/home/serban/ffmpeg/libavformat/asfdec_o.c:1512: undefined reference to `av_packet_unref&#x27;&#xA;

    &#xA;

    Any idea how to debug this ?

    &#xA;

    Later edit :&#xA;This is the find script I am using : FindFFmpeg.cmake&#xA;I changed the way I link to the libraries, this way causes the least amount of errors :

    &#xA;

    set(ORDERED_FFMPEG_LIBRARIES ${AVFORMAT_LIBRARIES} ${AVCODEC_LIBRARIES} ${AVUTIL_LIBRARIES})&#xA;message("[temp] ORDERED_FFMPEG_LIBRARIES=${ORDERED_FFMPEG_LIBRARIES}")&#xA;add_executable(hrean-app src/main.cpp)&#xA;&#xA;target_include_directories(hrean-app PUBLIC ${FFMPEG_INCLUDE_DIRS})&#xA;target_link_libraries(hrean-app PUBLIC ${ORDERED_FFMPEG_LIBRARIES})&#xA;

    &#xA;

    The errors are similar, but they seem to point to other locations :

    &#xA;

    [100%] Linking CXX executable hrean-app&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(mov.o): in function `mov_read_cmov&#x27;:&#xA;/home/serban/ffmpeg/libavformat/mov.c:5578: undefined reference to `uncompress&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(swfdec.o): in function `swf_read_packet&#x27;:&#xA;/home/serban/ffmpeg/libavformat/swfdec.c:393: undefined reference to `uncompress&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(swfdec.o): in function `swf_read_header&#x27;:&#xA;/home/serban/ffmpeg/libavformat/swfdec.c:161: undefined reference to `inflateInit_&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(swfdec.o): in function `zlib_refill&#x27;:&#xA;/home/serban/ffmpeg/libavformat/swfdec.c:134: undefined reference to `inflate&#x27;&#xA;/usr/bin/ld: /home/serban/ffmpeg_build/lib/libavformat.a(swfdec.o): in function `swf_read_close&#x27;:&#xA;/home/serban/ffmpeg/libavformat/swfdec.c:557: undefined reference to `inflateEnd&#x27;&#xA;

    &#xA;

    Do I have to link to anything else ?

    &#xA;

    Regards,&#xA;Serban

    &#xA;

  • I'm trying to use FFmpeg with command prompt in my python program, but it doesnt execute [on hold]

    26 mai 2018, par MilkToast

    I’ve tried to do it a bunch of different ways but each time it execute. The line works fine in the command prompt, but I cant get it to work from python.

    check_output(r"ffmpeg -i C:\Users\jared\Desktop\Rev\videosnshit\howto.mp4 -vn -ar 44100 -ac 1 -b:a 32k -f wav audio.wav", shell=True)

    // This is the bit that works fine in command prompt :

    ffmpeg -i C:\Users\jared\Desktop\Rev\videosnshit\howto.mp4 -vn -ar 44100 -ac 1 -b:a 32k -f wav audio.wav

    I’m probably being dumb, so any help would be great ! thanks !