Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (48)

  • 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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6076)

  • Linking ffmpeg's libswresample from MacOS X 10.9 with C++

    8 janvier 2014, par user2530102

    I am trying to link to ffmpeg's libswresample from a C++ application. I have installed ffmpeg through Homebrew on Mac OS X 10.9. A simple test application links if it's compiled as C, but not if it's compiled as C++. Here is the sample code :

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

    int main()
    {
     swr_alloc();
     printf("Hello world\n");
     return 0;
    }

    When compiled as C with clang -I/usr/local/include -L/usr/local/lib -lswresample -o hello hello.c this creates the application as expected. When compiled with C++ using clang++ -I/usr/local/include -L/usr/local/lib -lswresample -o hello hello.cc it results in an error like the following :

    Undefined symbols for architecture x86_64:
     "swr_alloc()", referenced from:
         _main in hello-9jqOY4.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    But running nm -a /usr/local/lib/libswresample.dylib includes 000000000000d8a9 T _swr_alloc and file /usr/local/lib/libswresample.dylib shows /usr/local/lib/libswresample.dylib: Mach-O 64-bit dynamically linked shared library x86_64 which I assume is expected. I have the same issue compiling the example with gcc/g++, and I also have the same issue when compiling ffmpeg with either clang or gcc, which leads me to think that there is just something I don't know about linking that should be obvious, but I haven't found any references suggesting that it should be different linking a library in C++ vs. C, and linking other libraries (sox, for example) presents no difficulties with an identical setup.

    I have seen posts related to linking issues in Mac OS X 10.9 because of the change from libstdc++ to libc++, but adding -stdlib=libstdc++ or -stdlib=libc++ seems to make no difference. It also makes no difference to add -mmacosx-version-min=10.6 or 10.9.

    Any help is greatly appreciated.

  • Extract subtitle by language code via ffmpeg

    7 mai 2023, par TrustFound

    I have a simple task - extract subtitle for exact language from tvshows.&#xA;For example, I want to extract English subtitles from Netflix's show.&#xA;As you know there're a few different types of subtitles : forced, full and SDH.&#xA;So I want to extract all of them if it has eng language code.

    &#xA;

    To extract 1 subtitle from file I used this code for windows :

    &#xA;

    FOR %%i IN (*.mkv) DO (ffmpeg.exe -i "%%i" -map 0:s:m:language:eng -c copy "%%~ni".eng.srt)&#xA;

    &#xA;

    It worked fine with 1 english subtitle per file. But if it contains 2, ffmpeg shows error

    &#xA;

    &#xA;

    SRT supports only a single subtitles stream

    &#xA;

    &#xA;


    &#xA;

    MI is...

    &#xA;

      &#xA;
    • Stream #0:2(eng) : Subtitle : subrip
    • &#xA;

    • Stream #0:3(eng) : Subtitle : subrip
    • &#xA;

    • Stream #0:4(ara) : Subtitle : subrip
    • &#xA;

    • ...
    • &#xA;

    &#xA;


    &#xA;

    So I should set 2 or more output files. I tried to figure out how to do this and found similar threads on reddit and stacksoverflow. They said there's no way to do this without ffprobe.&#xA;So I used ffprobe to parse all subtitle tracks and their language code.

    &#xA;

    FOR %%i IN (*.mkv) DO (ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 -i %%i > subs.txt)&#xA;

    &#xA;

    File contains this info :

    &#xA;

      &#xA;
    • 2,eng
    • &#xA;

    • 3,eng
    • &#xA;

    • 4,ara
    • &#xA;

    • ...
    • &#xA;

    &#xA;


    &#xA;

    As I understand I should use integers and set them values 2 and 3. I want to get output like this

    &#xA;

    &#xA;
      &#xA;
    • MovieName.2.eng.srt
    • &#xA;

    • MovieName.3.eng.srt
    • &#xA;

    &#xA;

    &#xA;

    If it easier to extract all subs, let it be. I tried to do this too but I dont know how to set integers and use them :(&#xA;So what I should do ?&#xA;Thanks in advance

    &#xA;

  • DWT of frames by FFMPEG API

    13 mars 2015, par Vaigard

    How can I spend the DWT Y component is considered of H.264 video frame ? Do not quite understand the principle of filling the structure DWTContext and its schema. And is not a matter of AVFrame->data[0][x] values are already converted, for example by DCT ?

    Thanks and sorry for my English=)