Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (80)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (9369)

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

  • Python-ffmpeg video metadata editing script - Error splitting the argument list : Option not found

    16 janvier, par maric193

    I have been updating a simple script that allows me to mass edit video files metadata (in a specific folder) and save them with a new filename (inside the same folder). I have been bouncing around different forums and decided to try python-ffmpeg.&#xA;For some reason right now I am getting the below FFmpegInvalidCommand exception

    &#xA;

    Error splitting the argument list: Option not found

    &#xA;

    I am not quite sure what I am doing wrong here, so I am wondering if someone can give me a fresh set of eyes to determine what the problem is. Apologies in advance, there may be some leftover code that I have not cut out yet. Thanks in advance !

    &#xA;

    import os&#xA;import re&#xA;import sys&#xA;from pathlib import Path&#xA;from ffmpeg import FFmpeg, FFmpegFileNotFound, FFmpegInvalidCommand&#xA;#Project looks through a folder, checks all the files in there, then edits metadata (and filename)&#xA;#and returns a new file for each file inside the folder&#xA;&#xA;video = &#x27;Anime&#x27; #Movie/TVSeries/Anime/etc...&#xA;name = &#x27;Sword Art Online (2012)&#x27;&#xA;extension = &#x27;.mkv&#x27;&#xA;season = &#x27;01&#x27;&#xA;episode = 1&#xA;&#xA;try:&#xA;    folder = r&#x27;D:\ServerTransfer\Update Server\%s\%s\S%s\\&#x27; % (video, name, season)&#xA;&#xA;    #Check current file names&#xA;    print(&#x27;Current names are: &#x27;)&#xA;    res = os.listdir(folder)&#xA;    print(res)&#xA;    &#xA;    # episode increase by 1 in each iteration&#xA;    # iterate all files from a directory&#xA;    for file_name in os.listdir(folder):&#xA;        # Construct old file name&#xA;        source = folder &#x2B; file_name&#xA;        try:&#xA;            title = &#x27;&#x27;&#xA;            if episode &lt; 100:&#xA;                # Adding the season &amp; episode #&#x27;s&#xA;                destination = folder &#x2B; name &#x2B; &#x27;.S&#x27; &#x2B; season &#x2B; &#x27;E0&#x27; &#x2B; str(episode) &#x2B; extension&#xA;                title = name &#x2B; &#x27;.S&#x27; &#x2B; season &#x2B; &#x27;E0&#x27; &#x2B; str(episode)&#xA;##            elif episode &lt; 100:&#xA;##                # Adding the season &amp; episode #&#x27;s&#xA;##                destination = folder &#x2B; name &#x2B; &#x27;.S&#x27; &#x2B; season &#x2B; &#x27;.E0&#x27; &#x2B; str(episode) &#x2B; extension&#xA;            else:&#xA;                # Adding the season &amp; episode #&#x27;s&#xA;                destination = folder &#x2B; name &#x2B; &#x27;.S&#x27; &#x2B; season &#x2B; &#x27;E&#x27; &#x2B; str(episode) &#x2B; extension&#xA;                title = name &#x2B; &#x27;.S&#x27; &#x2B; season &#x2B; &#x27;E&#x27; &#x2B; str(episode)&#xA;            # Renaming the file&#xA;            if file_name.endswith(extension):&#xA;                ffmpeg = FFmpeg(executable=r&#x27;c:\FFmpeg\bin\ffmpeg.exe&#x27;).option("y").input(source).output(destination,codec="copy",title=title)&#xA;                ffmpeg.execute()&#xA;        except FFmpegFileNotFound as exception:&#xA;            print("An FFmpegFileNotFound exception has been occurred!")&#xA;            print("- Message from ffmpeg:", exception.message)&#xA;            print("- Arguments to execute ffmpeg:", exception.arguments)&#xA;        except FFmpegInvalidCommand as exception:&#xA;            print("An FFmpegInvalidCommand exception has been occurred!")&#xA;            print("- Message from ffmpeg:", exception.message)&#xA;            print("- Arguments to execute ffmpeg:", exception.arguments)&#xA;        except Exception as err:&#xA;            print(f&#x27;Unexptected {err=}, {type(err)=}&#x27;)&#xA;            raise&#xA;        episode &#x2B;= 1&#xA;    print(&#x27;All Files Renamed&#x27;)&#xA;    print(&#x27;New Names are&#x27;)&#xA;    # verify the result&#xA;    res = os.listdir(folder)&#xA;    print(res)&#xA;except OSError as err:&#xA;    print(&#x27;OS error:&#x27;, err)&#xA;except Exception as err:&#xA;    print(f&#x27;Unexptected {err=}, {type(err)=}&#x27;)&#xA;    raise&#xA;

    &#xA;

    Here is what one of my print statements in the exception says is being executed

    &#xA;

    - Arguments to execute ffmpeg: [&#x27;c:\\FFmpeg\\bin\\ffmpeg.exe&#x27;, &#x27;-y&#x27;, &#x27;-i&#x27;, &#x27;D:\\ServerTransfer\\Update Server\\Anime\\Sword Art Online (2012)\\S01\\\\[Kosaka] Sword Art Online - 01 - The World of Swords (1080p AV1 10Bit BluRay OPUS) [73066623].mkv&#x27;, &#x27;-codec&#x27;, &#x27;copy&#x27;, &#x27;-title&#x27;, &#x27;Sword Art Online (2012).S01E01&#x27;, &#x27;D:\\ServerTransfer\\Update Server\\Anime\\Sword Art Online (2012)\\S01\\\\Sword Art Online (2012).S01E01.mkv&#x27;]&#xA;

    &#xA;

    I have tried different variations of trying to run ffmpeg via python including using subprocess and shlex libraries. I also tried moviepy, however no one has answered me back on their page.

    &#xA;

  • Matomo will now pay researchers 5,000 USD for a critical security vulnerability

    7 mai 2020, par Matomo Core Team

    Matomo Analytics is the leading open-source web analytics solution, designed to give you conclusive insights while respecting your user’s privacy, and keeping your data secure. We’re so proud Matomo is trusted with the analytics data of more than 1 million sites worldwide.

    Although we have had an excellent security track record so far, we recognise security is an ongoing challenge and requires constant vigilance. With this announcement we’re showing our commitment to reward those who help us maintain the highest security in Matomo.

    New bounty of 5,000 USD for a CRITICAL security issue responsibly disclosed to us

    We’re now paying 5,000 USD or 4,700 EUR for each critical vulnerability found, and responsibly disclosed to us. (Previously this bounty was less than 1,000USD.) 

    A Critical Issue in Matomo means an issue in our latest official release at : builds.matomo.org/latest.zip as installed on a typical server (and possibly using any of our official plugins by Matomo or InnoCraft from the Marketplace).

    If you can gain remote code execution on the server (i.e. RCE), or if you’re able to delete data with an HTTPS request (i.e. SQL Injection), this may qualify as a Critical Issue. Please report it on Hackerone.

    Matomo keeps your data secure

    The Matomo team has always been committed to achieving the highest standard of security. For example, Matomo was one of the first open-source projects in the world to launch a public bug bounty in January 2011. Every year many researchers, users and customers review the Matomo source code, and overall we’ve rewarded dozens of researchers over the years for their work in keeping Matomo data safe.

    How to make your Matomo server even more secure ?

    Check out our recommendations in How to configure Matomo for Security